Which Of These Method Is Used To Tell The Calling Thread To #917
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?
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Multithreading - Java Threads - Quiz No.1.
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?
wait()
notify()
notifyAll()
sleep()