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



Ask a Question

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Awesome One....... Thanx...... m new to java...and
View Tutorial          By: jayanta at 2010-02-05 04:35:34

2. About the javax.comm.* error, you need to include
View Tutorial          By: Nicolas Tourne at 2011-12-18 15:11:05

3. more daitlled coding for me
View Tutorial          By: fred at 2008-07-15 05:56:49

4. the correct 255's binary representation is:

View Tutorial          By: SD.Plox at 2008-12-30 17:51:39

5. You should add the mime type as follows:

View Tutorial          By: Anonymous at 2009-03-19 08:30:35

6. I have followed all steps but it is giving null po
View Tutorial          By: she at 2013-01-14 06:02:27

7. Hi,
I have loaded all 5 java classes and i

View Tutorial          By: DurgaPrasad at 2011-11-24 06:02:19

8. Hi Ramalak,
My modem is connected to COM3 p

View Tutorial          By: divya at 2008-04-30 23:19:26

9. Hi sir just send me the code sir .... i am interes
View Tutorial          By: maruthi at 2013-10-30 05:14:15

10. Thanx.. it helps me a lot, now.. i have 1 more que
View Tutorial          By: GuzZpaWn at 2012-01-15 17:19:29