WaitAll limited to 64?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any way to increase the number of events the function System.Threading.ManualResetEvent.WaitAll can accept? It is currently 64. Thank you.
 
No. This is a design constraint of the Windows OS kernel. Each thread has
a block of wait handle pointers in its KTHREAD structure, and that block has
a finite length.
Why do you need more than that, in general it's an indication of bad
application design.

Willy.
 
Back
Top