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



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. Sir, can you give me an example of Isalnum in java
View Tutorial          By: Angeline at 2011-07-13 06:43:54

2. great explaination !!!
View Tutorial          By: aman at 2012-10-02 06:55:55

3. when i trying this code . i am getting this error<
View Tutorial          By: sharath at 2010-04-06 00:58:29

4. super article for freshers and good
View Tutorial          By: santhosh at 2011-11-03 14:32:44

5. this code works for incoming call but not for inco
View Tutorial          By: iman at 2013-08-20 16:21:48

6. Your solution is really helped me. Thanks for your
View Tutorial          By: Rajakumar at 2010-05-31 06:05:53

7. Sorry, please disregard my previous comment... Tha
View Tutorial          By: choco at 2010-01-03 02:21:09

8. It work fine with message below 160 chars. How can
View Tutorial          By: Milind at 2011-12-15 06:20:33

9. It is throwing exception....Image is not displayin
View Tutorial          By: Aswin at 2012-02-12 08:07:41

10. hello can u send me the code in java to send and r
View Tutorial          By: somanath at 2011-02-17 01:28:40