| Author |
thread calls wait and no other thread calls notifyAll or notify
|
Moni Patil
Greenhorn
Joined: Feb 03, 2005
Posts: 9
|
|
|
What happens when a thread calls wait and no other thread calls notifyAll or notify
|
 |
Tom Hill
Ranch Hand
Joined: Aug 24, 2003
Posts: 115
|
|
Hi there! The thread will keep waiting until it is notified. And if it isnt notified, it will attempt to wait forever. So youll probably kill the process by some means. Tom
|
 |
Layne Lund
Ranch Hand
Joined: Dec 06, 2001
Posts: 3061
|
|
In at any time, all threads call wait() without calling notify() or notifyAll(), then it is called a deadlock. The process will continue to run without doing anything, so this should be avoided at all costs. Layne
|
Java API Documentation
The Java Tutorial
|
 |
 |
|
|
subject: thread calls wait and no other thread calls notifyAll or notify
|
|
|