Python threading (was: Re: global interpreter lock not working as it should)
anton.wilson at camotion.com
Wed Aug 7 00:06:59 CEST 2002
On Tuesday 06 August 2002 02:45 pm, Tim Peters wrote:
> [Armin Steinhoff]
> > 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.
This is true. On my *posix-compliant* system, it wakes up one OR two python
threads and sticks them on the queue.
More information about the Python-list