WHAT IS THE DIFFERENCE BETWEEN NOTIFY() AND NOTIFYALL()?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
Java  Thread 
 657  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is the difference between notify() and notifyAll()?

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!