This project is read-only.

ParallelFox: Issues with Creating Workers

Aug 13, 2011 at 10:15 PM


We have an prg running on Microsoft Windows Server 2003 R2, Standard x64 Edition, Service Pack 2.  The computer is Intel Xeon CPU E5530 @2.40 GHz.  It shows 8 processors in the task manager performance tab.  When we run the prg in debug mode it only creates one worker.  We also have Terminal services loaded on this machine.   We have tried it running the prg from both a RDP connection and a logmein to the administrator console. Either one - same result - one worker. 

Any ideas?

Thank you,


Aug 14, 2011 at 7:12 PM

Hi Mike,

On Terminal Servers, ParallelFox purposely defaults to one worker.  Otherwise, each user would have 8 workers on the server, potentially allowing one user to use all of the available CPU power and slowing down other users.  That's usually not desirable in a Terminal Server environment, but you can override the default.  Before you start the workers, call:

Parallel.SetWorkerCount(Parallel.CPUCount, Parallel.CPUCount)

The second parameter applies to Terminal Servers.