Producer/consumer Queue "trick"

Paul Rubin http
Sat Jan 15 10:35:00 CET 2005

Evan Simpson <evan at> writes:
> wakes up the producer, which has been blocked waiting to add a board
> to the Queue.  It sets about generating the next board, and the
> consumer doesn't get to run again until the producer blocks again or
> is preempted.

That's weird.  Preemption should happen every few dozen milliseconds
unless you've purposely increased the preemption delay.

More information about the Python-list mailing list