Python threading (was: Re: global interpreter lock not working as it should)
tim.one at comcast.net
Tue Aug 6 20:45:59 CEST 2002
> No ... only the first thread in the waiting queue get the state
> 'runnable'! You have probably pthread_cond_broadcast in mind ....
No. Read the spec:
If the meaning of "at least one" in
The pthread_cond_signal() function shall unblock at least one of the
threads that are blocked on the specified condition variable cond (if
any threads are blocked on cond).
isn't clear to you, the Rationale at the bottom explains it at some length.
More information about the Python-list