tags:

views:

69

answers:

1
+1  Q: 

Wait and Notify

Hi,

If the main thread quits before child finishes its work, and child tries to notify, what will happen?

Thanks

+3  A: 

If you call notify() on an object that no other thread called wait() on, then the notify call will have no effect.

Joachim Sauer
Thanks Joachim.
Vanathi