[cs33211] Project

Mikhail Nesterenko mikhail at cs.kent.edu
Sat Oct 13 19:55:27 EDT 2012


Mikhail Nesterenko wrote:
>
> > This might be the same answer but if I have 3 sleeping W threads, W1 W2 and
> > W3 and I notify them all, how to I make sure W1 is first?
> 
> you don't. You wake them all up and make sure the wrong ones are
> blocked again.

Alternatively, make them block on different condition variables.

Thanks,
-- 
Mikhail


More information about the cs33211 mailing list