After invoking the wait method on an Object, Obj1, a
Thread, T1, will remain in the wait set of Obj1 until which of the following occurs?
a. Another Thread invokes the notify method on the Object, Obj1, and T1 is selected to move out of the wait set.
b. Another Thread invokes the notifyAll method on the Object.
c. Another Thread invokes the resume method on Thread T1.
d. Another Thread interrupts Thread T1.
e. The priority of Thread T1 is increased.
f. A specified timeout period has elapsed.
g. Another Thread invokes the join method on Thread T1.
h. None of the above.
Answer : a b d f
Can someone explain why b?
(b) Notify All does not garuntee that this waiting thread will not wait any more right...because another thread could me chosen instead of T1. Shouldnt the choice say
"Another Thread invokes the notifyAll method on the Object and T1 is selected to move out of the wait set"?