Pregunta de entrevista de Netflix

What is difference between notify and notifyall?

Respuesta de la entrevista

Anónimo

12 abr 2012

Notify()/NotifyAll() is used to notify the objects which are in wait() mode so that they can again return back to the runnable mode. Notify() will inform the object to wakes up the current suspended thread. NotifyAll() will inform the object to wake up all the suspended threads