[Python-ideas] The async API of the future

Richard Oudkerk shibturn at gmail.com
Sat Nov 3 01:32:00 CET 2012

On 02/11/2012 11:10pm, Sturla Molden wrote:
> So you nest them in a tree, each node having up to 64 children...
> The root allows us to wait for 64 objects, the first branch allows us to wait for 4096, and the second 262144...
> For example, if 4096 wait objects are enough, we can use a pool of 64 threads. Each thread calls WaitForMultipleObjects on up to 64 wait objects, and signals to the master when it wakes up.

Windows already has RegisterWaitForSingleObject() which basically does 
what you describe:



More information about the Python-ideas mailing list