Programming Tutorials

Comment on Tutorial - wait(), notify() and notifyAll() in Java - A tutorial By Jagan



Comment Added by : Yellappa

Comment Added at : 2010-06-11 05:49:15

Comment on Tutorial : wait(), notify() and notifyAll() in Java - A tutorial By Jagan
I have one doubt regarding this code,
if the producer thread is already synchronized on 'this' how does the consumer can enter get method which is again synchronized on 'this'.
And also in general i want to know why is wait(),notify() and notifyAll() are there in Object class.


View Tutorial