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

  • Home
  • SEARCH
  • 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 121285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:56:48+00:00 2026-05-11T03:56:48+00:00

Can you make file copying faster through multiple threading? Edit : To clarify, suppose

  • 0

Can you make file copying faster through multiple threading?

Edit: To clarify, suppose you were implementing CopyFile(src, tgt). It seems logical that under certain circumstances you could use multiple threads to make it go faster.

Edit Some more thoughts:

Naturally, it depends on the HW/storage in question.

If you’re copying from one disk to another, for example, it’s pretty clear that you can read/write at the same time using two threads, thus saving the performance cost of the fastest of the two (usually reading). But you don’t really need multiple threads for reading/writing in parallel, just async-IO.

But if async-IO can really speed things up (up to 2x) when reading/writing from different disks, why isn’t this the default implementation of CopyFile? (or is it?)

  • 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. 2026-05-11T03:56:49+00:00Added an answer on May 11, 2026 at 3:56 am

    You can see a benefit particularly if the files are on different devices in which case the I/O can be very effectively overlapped.

    However, there are also cases where where you could easily cause thrashing of the hardware, so I don’t think it’s an optimization that should be taken lightly.

    As far as the additional question you added:

    But if async-IO can really speed things up (up to 2x) when reading/writing from different disks, why isn’t this the default implementation of CopyFile? (or is it?)

    I don’t know the internals of CopyFile(), but I wouldn’t be surprised if they do not do it for a couple reasons:

    1. if they were to implement it using an additional thread (or threads) that might be a bit more intrusive to a process than is appropriate (especially if the process is single threaded to this point)
    2. if they were to try to implement it using asynchronous I/O with a single thread (as ChrisW indicated is a possibility), they might be as likely to cause thrashing problems as improve performance. It might not be easy to generically determine when you’ll get a benefit as opposed to a detriment.

    This is not to say it couldn’t or shouldn’t be done (or even that it isn’t done – I don’t know) – these are just a couple possible reasons why it might not be done.

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

Sidebar

Ask A Question

Stats

  • Questions 189k
  • Answers 190k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer No. Cookie are the normal way to maintain sessions to… May 12, 2026 at 5:53 pm
  • Editorial Team
    Editorial Team added an answer How about? GET /Companies?ticker=MSFT GET /Companies?country=USA GET /Companies?country=USA&industry=software The important… May 12, 2026 at 5:53 pm
  • Editorial Team
    Editorial Team added an answer Actually, what happens is SqlDataReader.Read returns true if it is… May 12, 2026 at 5:53 pm

Related Questions

I'm developing on a Ubuntu 8.04 machine using Eclipse Ganymede. I installed Tomcat 5.5
I would like to write simple scripts in C#. Stuff I would normally use
Not sure if this question is going to make sense or not be here
I normally use scp to copy stuff, but now I'm trying to get used

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.