Dan,
This depends on a number of factors. First, what is the connection of
the FTP server? Can it accept as much data at the same time as you want to
throw at it (in other words, what is the connection speed on the other end).
Also, what is the connection speed of the machine you are sending the files
from? If you try and send out 100 files at the same time, each connection
might transfer very slowly because your pipe going out isn't that wide.
Also, when it comes to performing processing on another thread, you
generally should take advantage of the ThreadPool class, which will allow
you to queue requests and then have them executed when there are enough
resources. The reason for this is that the ThreadPool would manage the
number of threads based on the number of processors and current system
resources.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Dan" <dd*****@fnisolutions.com> wrote in message
news:00****************************@phx.gbl...
All,
I have an application that transfers files from one
machine to another machine (in a remote location) via FTP.
My question is in regards to the performance of the FTP
transfer. Am I better to run a single thread and transfer
one file at a time to the remote machine or am I better to
have a few threads running each transfering a file to that
machine? I have not been able to find any data regarding
such a situation. Any insight would be much appreciated.
Thanks!