Workaround for the WaitHandle.WaitAll 64 handle limit?

Posted by James on Stack Overflow See other posts from Stack Overflow or by James
Published on 2010-04-23T23:31:53Z Indexed on 2010/04/23 23:33 UTC
Read the original article Hit count: 920

Filed under:
|
|
|

My application spawns loads of different small worker threads via ThreadPool.QueueUserWorkItem. I have never had any issues before, however, as my application is coming under more load i.e. more threads being created, I am now beginning to get this exception:

WaitHandles must be less than or equal to 64 - missing documentation

What is the best alternative solution to this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about multithreading