This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes Thread methods? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Thread methods?" Watch "Thread methods?" New topic
Author

Thread methods?

prakash Venugopal
Greenhorn

Joined: Dec 28, 2011
Posts: 8
wait(),notify(),notifyAll() methods are highly used in Threading. But theses 3 methods are in java.lang.Object class. not in Thread class .why?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

Please SearchFirst. I can't even remember how often this question has been asked already.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

Additionally, if you understand what there methods are for and how to use them, you'll understand why they must be defined on Object and not just on Thread.
 
GeeCON Prague 2014
 
subject: Thread methods?