Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

Currently I have an FTP process that grabs as many files that exist on the specific FTP file location and then pulls them down and downloads them. Based on specs changing instead of sending multiple files they are going to send one big file. Is there any suggestions on how to pull these files using threading for asynchronous processing for a certain amount of line items/records, for example 5000 records

any help would be appreciated
Posted

1 solution

You cannot really improve throughput by parallel downloading of the files from the same server. (From different servers, yes, a separate thread per service could help, to certain extent. It depends where is the bottleneck. If you have low local bandwidth, even this may not help.)

But of course, if you have it in some UI, your download code should be executed in a separate thread, not the UI thread.

—SA
 
Share this answer
 

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