Home > DeveloperSection > Interviews > What is the difference between notify() and notifyAll()?

Posted on    May-10-2015 11:54 PM

 Java Java  Thread 
Ratings:
 1 Answer(s)
  439  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    May-10-2015 11:54 PM

The notify() is used to unblock one waiting thread whereas notifyAll() method is used to unblock all the threads in waiting state.

Don't want to miss updates? Please click the below button!

Follow MindStick