Python threading (was: Re: global interpreter lock not working as it should)

Martin v. Loewis martin at
Tue Aug 6 05:10:16 EDT 2002

a-steinhoff at (Armin Steinhoff) writes:

> > No, this isn't to guard against broken pthread_cond_wait
> > implementations.  The POSIX spec for pthread_cond_signal allows
> > that any number of threads may be signaled;
> No ... only the first thread in the waiting queue get the state
> 'runnable'!

Read the spec:

" Spurious wakeups from the pthread_cond_timedwait() or
pthread_cond_wait() functions may occur."


More information about the Python-list mailing list