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. can I ask question? how to make a complete program
View Tutorial          By: manuel at 2012-08-13 10:06:24

2. the DomParserExample.java shows MAlformedURLExcept
View Tutorial          By: dipesh at 2011-12-09 09:53:46

3. thnx for the nice tutorial. but i need to create a
View Tutorial          By: sharath at 2013-09-07 16:29:19

4. You have mentioned that
to use this program

View Tutorial          By: Naasik at 2012-08-05 00:15:57

5. Hi,
Very Nice explanation ,I tried both mem

View Tutorial          By: Harsh Verma at 2013-01-30 13:43:05

6. Thanks for good atricle. But this code will always
View Tutorial          By: Binod Suman at 2009-05-28 09:40:48

7. Excellent work mate! works like a charm! Lifesaver
View Tutorial          By: jmcg at 2015-01-29 02:31:56

8. really good
View Tutorial          By: ammu at 2009-11-04 05:07:14

9. Good example. However as someone said, it would be
View Tutorial          By: Neo Cambell at 2010-03-10 11:02:06

10. Can you tught me matrix function and friend functi
View Tutorial          By: Shiv pratap singh at 2013-01-12 06:46:46