in JAVA Synchronized methods, Java provides wait() and notify( constructs. This is the example of
Answers
Answered by
1
Answer:
The wait() method causes the current thread to wait until another thread invokes the notify() or notifyAll() methods for that object. The notify() method wakes up a single thread that is waiting on that object's monitor. The notifyAll() method wakes up all threads that are waiting on that object's monitor
Similar questions