Question
Which of these method is used to avoid polling in Java?
Answer: Option D
Was this answer helpful ?
Polling is a usually implemented by looping in CPU is wastes CPU's time, one thread
being executed depends on other thread output and the other hread depends on the
response on the data given to the first thread. In such situation CPU's time is wasted,
in Java this is avoided by using methods wait(), notify() and notifyAll().
Was this answer helpful ?
Submit Solution