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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. really nice and perfect ! thnak you very much for
View Tutorial By: arash at 2013-07-16 10:58:45
2. Good programs example need for me
View Tutorial By: G.Venugopal at 2009-11-11 08:46:38
3. Hi sir !
I have two Crystal Report
View Tutorial By: Anderson Abad at 2011-07-20 03:34:51
4. I want to change software of micromax x455 mobile
View Tutorial By: Sachin at 2012-12-29 09:39:58
5. Protip: you could add some inline assembly with th
View Tutorial By: Robin Degen at 2011-08-16 23:47:04
6. nice tutorial
View Tutorial By: Amit at 2010-04-16 04:48:52
7. you can use multiple switch statements depending o
View Tutorial By: moshood at 2012-04-01 13:24:41
8. i have created a listview and i have a button in t
View Tutorial By: prateek at 2013-05-19 18:52:47
9. Puedes enviarme ese codigo, ando embolatado
View Tutorial By: Wilson at 2011-10-26 22:45:38
10. thank you sir
View Tutorial By: sivaranjani at 2015-01-30 01:15:40