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.
Joined: Apr 14, 2001
I think option 2 is correct.
Joined: Oct 06, 2000
Hi Riju ! I also agree with Ash.the answer is 2 only. Check RHE page 234 for more detailed explanation.