Forums Register Login

wait ,notify and notifyAll

+Pie Number of slices to send: Send
wait(),notfy() and notifyAll()
methods defined in object class, and come into picture only when we deals with Thread, i agree we have main thread eventhough class doesnt implements Runnable or extends Thread,

so whats the purpose of definfinf these methods in Object class and not in Runnable or Tread , isnt is unnecessary avilbale to anyclass in java
+Pie Number of slices to send: Send
read this FAQ entry
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 585 times.
Similar Threads
why does the Object class have methods such as wait,notify,notifyall?
Why wait(), notify(), notifyAll() declared in Object class?
Threads
simple question
Interview q
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 22:05:24.