Running multiple wodsftp threads on a multi-core p - WeOnlyDo Discussion board

Running multiple wodsftp threads on a multi-core p (General questions)

by johnag, Wednesday, December 27, 2006, 18:55 (6540 days ago)

I am using the wodSFTP dll from a VB program. By specifing blocking=false I am able to create multiple objects of wodsftp (this is done by multiple set ... = new wodsftp stmts). These connect to the same userid on the same ssh server. I am then able to perform multiple putfile methods (one on each instigated wod object) for different files. The result is very successfull in giving multiple uploads running at the same time with a resultant improvement in overall throughput without having to perform complex TCP tuning. I have noticed however that as the cpu utilisation increases the workload is not distributed across a dual core CPU, and all the workload remains on one CPU. Is each instigated object of wodsftp a separate thread and if so how can I get the workload balanced across a multicore processor.

Re: Running multiple wodsftp threads on a multi-co

by wodSupport, Wednesday, December 27, 2006, 20:00 (6540 days ago) @ johnag

John,

our components are apartment threaded - all the work is done inside one thread only. So, work will not be dispatched to more than one processors at all. You would - in theory - have to spawn separate process and use wodSFTP from them too in order to utilize multiprocessor environments.

Hope I helped.
Kreso