Actually SetMaxThreads does work, I wasn't testing properly.

If I do : ThreadPool.SetMaxThreads(2, 2);

I can see my threads being queued to the pool, but then they only
complete by batch of two, which is exactly what I would expect :)

I have another question though. I'm using an array of ManualResetEvent
to wait for all threads. Unfortunately they are limited to 64
events !  Is there any other way I can wait for all threads to
complete ?

Thanks

Reply via email to