What should be the ideal number of parallel java threads for copying a large set of files from a qua

Posted by ukgenie on Stack Overflow See other posts from Stack Overflow or by ukgenie
Published on 2010-04-15T10:56:19Z Indexed on 2010/04/15 11:53 UTC
Read the original article Hit count: 333

What should be the ideal number of parallel java threads for copying a large set of files from a quad core linux box to an external shared folder? I can see that with a single thread it is taking a hell lot of time to move the files one by one. Multiple threads is improving the copy performance, but I don't know what should be the exact number of threads.

I am using Java executor service to create the thread pool.

© Stack Overflow or respective owner

Related posts about java

Related posts about concurrency