Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 898545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:03:40+00:00 2026-05-15T15:03:40+00:00

What is the best way, to develop a multi threaded program, to delete certain

  • 0

What is the best way, to develop a multi threaded program, to delete certain characters from multiple text files that are passed in as parameters?

Thus, when someone passes as a.out axvc f1 f2 f3 f4 , the goal is to delete all occurences of the characters a,x,v,c from the file f1, f2, f3 and f4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:03:41+00:00Added an answer on May 15, 2026 at 3:03 pm

    Are you not able to just make use of normal utilities like sed to help you do this?

    Even if you aren’t, are you sure that the CPU use is a significant enough portion of the processing time that it wouldn’t be dwarfed by the file I/O? Most likely doing it in multiple threads won’t save you much time at all vs doing it serially in one thread.

    Otherwise probably the easiest mechanism would be to have the main thread doing the I/O and dispatching work to a pool of worker threads that do the character removal. It gets trickier if I/O speed actually improves when being done from multiple threads.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand that the best way to develop a free and paid version of
What is the best way to develop a rails application that has special views
I would like to develop a way for sending text messages (SMS) from Microsoft
What is the best way to develop on SQL Server 2005 machine locally while
I am interested to know the best way to develop en JS. If I
What is best way to develop for nokia phones ? symbian programing or html
What do you think is the best way to develop iphone apps on windows?
What is the best way to design screen size, when develop mobile web app?
Possible Duplicate: What's the best way to develop a sideswipe menu like the one
i am new in developer of joomla. which is the best way to develop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.