Causes the current thread to wait until either another thread invokes the notify() method or the notifyAll() method for this object, or a specified amount of time has elapsed.
Вызывает текущий поток ждать, пока либо другой поток не вызывает метод Notify () или метод notifyAll () для этого объекта, или определенное количество времени прошло.