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



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. How can I save the canvas edited by the user from
View Tutorial          By: pavan at 2014-10-14 08:26:55

2. I have download that 5 files .But how to run this
View Tutorial          By: Unnati at 2011-07-07 06:07:26

3. I am getting the error below.

Tue J

View Tutorial          By: ganesh at 2008-07-01 05:35:31

4. very nice and good introduction for beginners.
View Tutorial          By: annie at 2011-11-23 06:50:32

5. DOBN'T USE THIS SHIT
IT IS STRONGLY DISCOUR

View Tutorial          By: DD at 2011-09-13 13:00:30

6. The arraycopy in a System is static native method
View Tutorial          By: Ashwinkumar.vj at 2011-07-19 09:25:02

7. This example is very good, but it doesnt work in M
View Tutorial          By: soma at 2010-04-13 04:34:00

8. IN the above program at the line in ineerclass's p
View Tutorial          By: Narasimha at 2009-10-14 06:30:26

9. is there any port filter/block api for java?
View Tutorial          By: edwin at 2010-08-12 03:16:44

10. please send me the code of this movable clock and
View Tutorial          By: dafi at 2008-05-14 05:06:08