
17 Jun
2009
17 Jun
'09
8:26 p.m.
Ion GaztaƱaga wrote:
A semaphore post only increases a waiting thread if count was 0. That's the behaviour of a semaphore. Not of Dijkstra's design it isn't. Conceptually a waiting consumer is immediately given the token and woken up, and further tokens will wake more consumers whether they are already waiting or not.
Looks like a bug to me. James