The resource loading... loading...

wait

The wait() function is used to make a thread wait under certain designed conditions.

wait()

Please refer to the ThreadCondition.notify() section for examples.

The wait() function releases the thread lock and reacquires the thread lock when woken up.

{@fun/Threads/ThreadCondition/notify notify}, {@fun/Threads/ThreadCondition/notifyAll notifyAll}, {@fun/Threads/ThreadCondition/acquire acquire}, {@fun/Threads/ThreadCondition/release release}

notifyAll acquire