What is the difference between notify() and notifyAll()?

Last updated:9/23/2020 2:04:51 AM

1 Answers

Mayank Tripathi
Mayank Tripathi

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

Answer