signal() & signalAll()
Home ] Up ] The Condition Interface ] await() ] [ signal() & signalAll() ] An Example ]

 

 

void signal()
Wakes up one waiting thread.

If any threads are waiting on this condition then one is selected for waking up. That thread must then re-acquire the lock before returning from await.

void signalAll()
Wakes up all waiting threads.

If any threads are waiting on this condition then they are all woken up. Each thread must re-acquire the lock before it can return from await.

 
The page was last updated February 19, 2008