
15 Sep
2005
15 Sep
'05
4:13 p.m.
Roland Schwarz wrote: [...]
3) a new waiter arrives while the gate still is closed he will block on the gate and not increment nWaitersBlocked yet
4) a signal arrives, while gate still is closed Now is 0 < nWaitersToUnblock < N, correct? But 0 == nWaitersBlocked the signal results in a NO-OP and consequently the waiter from 3) will never get it to see - hence it is lost ??
I am studying the pthread_cond_wait.c pseudo code taken from SNAPSHOT 2004-05-16.
What do I miss here?
http://www.opengroup.org/onlinepubs/007908799/xsh/pthread_cond_wait.html regards, alexander.