aspose file tools*
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: 19696
    
  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.
 
Consider Paul's rocket mass heater.
 
subject: Thread methods?