WaitAll limited to 64?

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.
 
W

Willy Denoyette [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top