aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Thread Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Thread" Watch "Thread" New topic
Author

Thread

Riju Pahwa
Greenhorn

Joined: Apr 30, 2001
Posts: 1
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
I think option 2 is correct.
nachiket deshpande
Ranch Hand

Joined: Oct 06, 2000
Posts: 114
Hi Riju !
I also agree with Ash.the answer is 2 only.
Check RHE page 234 for more detailed explanation.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Thread
 
Similar Threads
wait and notify
waiting thread is invoked without calling notify()
Threads - What will be the correct explination?
How to Monitor Threads?
notify() method