Programming Tutorials

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



Comment Added by : Shrihas

Comment Added at : 2012-01-07 14:12:48

Comment on Tutorial : wait(), notify() and notifyAll() in Java - A tutorial By Jagan
Excellent example Jagan. By the way I have a question.
isn't the synchronized get() and synchronized put(...) methods will cause deadlock? Should they be synchronized? Can you explain why they need to be synchronized??
Thanks


View Tutorial