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



Comment Added by : ron

Comment Added at : 2010-03-30 01:37:12

Comment on Tutorial : wait(), notify() and notifyAll() in Java - A tutorial By Jagan
Really a great article!
I have some questions/suggestions:
Shouldn't be the wait-calls be inside a loop to account for spurious wakeups? (see http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait())
Also, I would put the rest of the code after the wait() also into the try-block, because i wouldn't want it to be executed after an InterruptedException.


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 usefull.....thanks :)
View Tutorial          By: qwerty at 2010-04-04 05:48:07

2. nice tutorial
View Tutorial          By: Rakesh at 2012-05-30 01:13:00

3. Thanks it really works good
Continue

View Tutorial          By: vipul at 2009-07-14 02:21:18

4. Excellent example
View Tutorial          By: Dinesh Patil at 2012-06-19 08:30:48

5. Nice work. Thanks
View Tutorial          By: Karthik at 2009-09-30 08:02:36

6. It was sooo helpful for me
Thanx and keep i

View Tutorial          By: Shan at 2010-04-13 09:41:01

7. good example tnq...........
View Tutorial          By: SaidiReddy at 2012-06-09 12:03:09

8. pls sed total informatio about c++
View Tutorial          By: anu at 2009-07-22 11:13:07

9. hi....
i want to send sms to any mobile by

View Tutorial          By: prerna at 2010-07-09 20:15:48

10. Hi Along with your provided code below, if we are
View Tutorial          By: Roshan at 2011-05-02 12:06:27