Click here to Skip to main content
12,998,892 members (31,552 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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 7-Feb-13 8:51am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 7 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100