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



Comment Added by : Chintan

Comment Added at : 2013-11-21 03:42:32

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

Since both the methods in the code which implement the Q class are Synchronized.

The threads will never be able to access it concurrently.
So the wait() method will never be called explicitly.

pls Correct me if i am wrong.


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. it was very useful to me
View Tutorial          By: balaji at 2012-01-09 22:50:25

2. I wont to know about every thing of java
View Tutorial          By: susantha at 2009-10-11 09:35:40

3. ya its correct but tell me where is main method???
View Tutorial          By: kashiNATH MOKASHI at 2011-08-20 05:33:19

4. I have writtent this code in my jdbc program,

View Tutorial          By: yeshdeep kumar at 2014-11-12 07:46:46

5. Sir , I am doing MSc(swe) . I want to know more ab
View Tutorial          By: guru prakash at 2009-10-15 09:10:05

6. pls give us aprogram of postfix and infix using st
View Tutorial          By: lost_hope1111 at 2009-02-13 01:48:37

7. how to downlow the different 5 files please !!
View Tutorial          By: Agnin at 2009-06-24 05:29:09

8. how to execute all these five programms tell me st
View Tutorial          By: shweta at 2008-09-24 07:35:22

9. thanks. worked.
View Tutorial          By: che at 2010-03-10 11:29:10

10. good
View Tutorial          By: Sudip Khatiwara at 2010-04-23 00:52:58