wait (timeout) will return if the thread is still waiting after the timeout expires. This refers to a freeze notification, for polling low-power users, etc. Sleep (timeout) will not wake up before the timeout expires; wait (timeout) - either a call to notify () or a timeout, whichever comes first.
Quote from JavaDoc:
( T) , , . T , :
- , T , .
- notifyAll .
- T.
- . - , .