Which of these method is used to tell the calling thread to give up a monitor and go to sleep until some other thread enters the same monitor?
(a) wait()
(b) notify()
(c) notifyAll()
(d) sleep()
I had been asked this question in quiz.
My query is from Creating Threads topic in division Multithreading of Java
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)