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



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. Very nice tutorial.It helped me a lot cos i am a b
View Tutorial          By: Fara at 2011-07-01 10:53:44

2. hiiiii
View Tutorial          By: hiiiiii at 2010-07-28 14:08:50

3. site is very good explanation is very clear throug
View Tutorial          By: sridevi at 2013-03-20 15:26:29

4. Quite Helpful.....
^_^

View Tutorial          By: Alfred_Septio at 2012-09-26 12:38:47

5. very nicely explained,
thank you

View Tutorial          By: Amin at 2010-04-14 09:40:30

6. can someone explain above example in detail
View Tutorial          By: neha at 2012-03-24 05:57:34

7. very simple to understand
View Tutorial          By: chermaraja at 2010-05-26 00:00:05

8. s1==s2 is not true. its false. run the program and
View Tutorial          By: arpita at 2009-05-18 23:50:11

9. Thnx. Very Useful Code...
View Tutorial          By: Ankur Pandya at 2010-09-27 05:14:35

10. thanks for all samples..
View Tutorial          By: 珠洲市 at 2013-03-01 09:47:46