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



Comment Added by : Sanjeev

Comment Added at : 2010-06-25 00:21:35

Comment on Tutorial : wait(), notify() and notifyAll() in Java - A tutorial By Jagan
Just wanted to ask when the consumer is waiting for the producer to produce. How can produce produce because it cannnot get the key of the put function of Q class because consumer already has key and it is in the wait mode.

Could you clarify this?


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. yes 29 you are correct! 27's example is prone to a
View Tutorial          By: sameendra at 2011-07-24 11:55:54

2. Thanks for the post !
View Tutorial          By: percy at 2011-11-24 08:56:23

3. This example is working fine....I think BillGates
View Tutorial          By: Monoj Rath at 2010-07-15 01:27:51

4. can help me for program in java Tomorrow I have ex
View Tutorial          By: blasm at 2013-06-21 06:59:41

5. Hi can anyone tell me how to use try catch in comm
View Tutorial          By: Gossip Lanka at 2015-04-26 05:00:44

6. Even i got d same error. can u plz tell me where t
View Tutorial          By: Priya at 2011-03-14 12:16:54

7. Whenever i run this program, it terminates immedia
View Tutorial          By: Gopi at 2015-08-19 06:55:41

8. how to display image on gridview from mysql databa
View Tutorial          By: chirag at 2013-03-18 08:12:46

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

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

10. The DirSync sync intervals can be changed.

View Tutorial          By: Nitin at 2012-12-22 16:20:38