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?
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? Correct Answer wait()
wait() 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 helps in avoiding polling and minimizes CPU idle time.
মোঃ আরিফুল ইসলাম
Feb 20, 2025