Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
How do we perform a parallel folder copy in java??
To be more exact
I have a src-folder which has a set of folders.
I need to copy the src-folder to the destination-folder and the src-folder should be broken into parallel threads so that the copy task goes on quickly in JAVA.
HOW do i do this??
Posted
Updated 13-Nov-11 8:31am
v2
Comments
DaveAuld 13-Nov-11 14:36pm    
If you are doing this operation on a single disk, do not parallel copy, you have nothing to gain and will probably slow things down. The disk can only do a single task at a time, and having to accommodate multiple thread requests will slow things down as the head moves back and forth between files in between each allocated timeslice.
Sergey Alexandrovich Kryukov 13-Nov-11 16:14pm    
Good point.
--SA

1 solution

NIO: High Performance File Copying[^]

this might help ya.
 
Share this answer
 
v3
Comments
Anshul4u 14-Nov-11 5:30am    
Could you please elaborate in case of folders TorstenH
TorstenH. 14-Nov-11 7:24am    
...that's called development and should be done by yourself. I would have to charge you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900