Please let me know that where i can find the suitable and simple example to use wait(),notify() and notifyall() metods in java.....
Asked
Active
Viewed 567 times
-1
-
As said by @Vladimir Ivanov, search before asking. Downvoted. – Laurent Pireyn Apr 26 '11 at 15:51
-
possible duplicate of [A simple scenario using wait() and notify() in java](http://stackoverflow.com/questions/2536692/a-simple-scenario-using-wait-and-notify-in-java) – Sebastian Paaske Tørholm Apr 26 '11 at 15:51
2 Answers
1
Is this homework? If not, don't use them is my advice. Use the newer concurrency libraries which were added in 2004.

Peter Lawrey
- 525,659
- 79
- 751
- 1,130