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



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. I dont want my client using my application to do a
View Tutorial          By: zaffa at 2011-07-27 06:52:09

2. Excellent information in simple language. Its wort
View Tutorial          By: Rishi at 2011-11-04 05:03:24

3. i like this a lot
View Tutorial          By: raj at 2011-05-06 06:15:36

4. Good job. Very clear and concise and a great help.
View Tutorial          By: Eduardo at 2012-02-08 19:18:50

5. hi friends im the biginer of java
how to co

View Tutorial          By: Rock at 2013-05-14 09:27:19

6. 0
View Tutorial          By: zareen at 2011-08-20 08:27:28

7. This works with inserts but it is very slow for lo
View Tutorial          By: Antonio Pereira at 2011-02-04 08:54:45

8. Thanks :) It works for me :)
View Tutorial          By: Milind at 2011-12-07 10:05:23

9. samples
View Tutorial          By: kamlesh at 2010-11-18 03:33:09

10. Hi. When i click on Install certificate. It tells
View Tutorial          By: jaris at 2011-10-18 11:00:41