Programming Tutorials

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



Comment Added by : Chintan

Comment Added at : 2013-11-21 03:42:32

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

Since both the methods in the code which implement the Q class are Synchronized.

The threads will never be able to access it concurrently.
So the wait() method will never be called explicitly.

pls Correct me if i am wrong.


View Tutorial