When the notify method is called which thread among the waiting threads is notified option 1: the method which first executed wait() option 2: any thread arbitrarily is chosen and notified plz reply immed.
Ash sav
Ranch Hand
Joined: Apr 14, 2001
Posts: 55
posted
0
I think option 2 is correct.
nachiket deshpande
Ranch Hand
Joined: Oct 06, 2000
Posts: 114
posted
0
Hi Riju ! I also agree with Ash.the answer is 2 only. Check RHE page 234 for more detailed explanation.