Originally posted by Bob Graffagnino:
I think calling aSharedObj.notify() will only put another thread into a "seeking lock" state. Once it sees that another thread still has the object, it will go back into a wait() state.[/QB]
Which of the following may pause/stop the current thread?
(possible answer?): calling someObject.notify();
SCJP2. Please Indent your code using UBB Code
notify/notifyAll() : These methods simply release the locks and other thread which are waiting on them become "read to run". But CPU may or may not schedule them.
I'm dying to post the question
Rob
SCJP 1.4
SCJP2. Please Indent your code using UBB Code
I've read about this kind of thing at the checkout counter. That's where I met this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|