Home » JAVA Programming » Multithreading » Question
  1. Which of these method wakes up all the threads?
    1. notifyAll()
    2. start()
    3. notify()
    4. wakeAll()
    5. None of these
Correct Option: A

notifyAll() wakes up all the threads that called wait() on the same object. The highest priority thread will run first.



Your comments will be displayed only after manual approval.