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