This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Why wait(),notify() and notifyAll() in Object class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why wait(),notify() and notifyAll() in Object class?" Watch "Why wait(),notify() and notifyAll() in Object class?" New topic
Author

Why wait(),notify() and notifyAll() in Object class?

monica jindal
Greenhorn

Joined: May 01, 2009
Posts: 5
Hi Everyone,

This is my first post .
My doubt is why wait(),notify() and notifyAll() are in Object class why not in Thread class.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19724
    
  20

Please search first. This question has been asked several times before:
http://www.coderanch.com/t/410405/Beginning-Java/java/Why-Wait-notify-notifyAll-Object
http://www.coderanch.com/t/233770/Threads-Synchronization/java/wait-notify-notifyAll-Object
and several more


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39478
    
  28
And welcome to JavaRanch
monica jindal
Greenhorn

Joined: May 01, 2009
Posts: 5
Thanks a lot
 
Consider Paul's rocket mass heater.
 
subject: Why wait(),notify() and notifyAll() in Object class?