Question: How does the wait-notify mechanism work in Java?Answer: wait() and notify() are methods used for inter-thread communication. wait() makes a thread wait until another thread invokes notify() or notifyAll(). |
Is it helpful?
Yes
No
Most helpful rated by users: