Vidyalelo
Java Programming · Q67

Threads

Programming · Java Programming · question 67

Q67

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()
Answer
B.
notify()
C.
notifyAll()
D.
sleep()

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board