Threading and Conditions

Ken Seehof kens at sightreader.com
Wed Mar 22 08:45:50 EST 2000


I apparently don't understand how conditions work.

Both notify() and wait() require a thread lock.  By my understanding,
this
means that a notify cannot occur while a wait is in progress (i.e. until
we are
done waiting for the notify), which means I'll be waiting a very long
time :-).
What's my confusion?

Unfortunately, the documentation is inadequate.  Does anyone know of a
whole sample program using conditions?

Is the Threading module the right thing to use for multi-threading?

- Ken





More information about the Python-list mailing list