wait(), notify(), notifyAll(). These three methods required in multithreading. Then Why they belongs to Object class not in Thread class. Please explain this one.
Printable View
wait(), notify(), notifyAll(). These three methods required in multithreading. Then Why they belongs to Object class not in Thread class. Please explain this one.
Hmmm... Obvious to me after I read this. May be this will help you too... Check this link Suresh...
[URL="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html"]http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html[/URL]
Cheers!
Kalayama
Thanks for giving the link kalayama. It helps me to understand the concept.
---------------------
suresh
Anytime Suresh. As I said in another thread, whenever you have to thank someone, press the Thanks button there next to the post...
:D
Cheers!
Kalayama