Java Threads Question:

What is the purpose of the wait(), notify(), and notifyAll() methods?

Tweet Share WhatsApp

Answer:

The wait(), notify() and notifyAll() methods are used to provide an efficient way for thread inter-communication.

Download Java Threads PDF Read All 38 Java Threads Questions
Previous QuestionNext Question
What invokes a threads run() method?What is thread? What are the high-level thread states?
Or
What are the states associated in the thread?