Topic "C# PARALLEL PROGRAMMING"

Author Message
coriweb
[View user's profile]

Joined: 2016-02-24
Posts: 2
Location: Treviglio (BG), Italy
Hello,

we're using winscp .NET Assembly to download a very large directory of image files, and the download could take 6 hours for 6600 images (~1GB).
Is it possible to use the parallel programming paradigm to launch N session.GetFiles to obtain my files, but 4/5 at a time?
or the assembly could may not support parallel programming?
If the answer is yes, are there any samples?



thanks in advance
best regards
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
You have to use multiple instances of the Session, each running in its own thread

See http://winscp.net/eng/docs/library_example_parallel_transfers
(though the example is in PowerShell).
coriweb
[View user's profile]

Joined: 2016-02-24
Posts: 2
Location: Treviglio (BG), Italy
prikryl wrote:
You have to use multiple instances of the Session, each running in its own thread

See http://winscp.net/eng/docs/library_example_parallel_transfers
(though the example is in PowerShell).



Thank you, I'm gonna check your thread's link.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License