P
puzzlecracker
The argument is that calling wait prior to loop me cause a thread never
to be aweken (given that notify[all] has been called prior)
How does waiting in the loop prevent that:
while(a condition){
obj.wait();
}
and notify has been called prior to wait, indefinite sleep is
guaranteed.
what is the argument for calleding after the loop.
thanks
to be aweken (given that notify[all] has been called prior)
How does waiting in the loop prevent that:
while(a condition){
obj.wait();
}
and notify has been called prior to wait, indefinite sleep is
guaranteed.
what is the argument for calleding after the loop.
thanks