Explain Polling

Polling: It is the process of repeatedly testing until a situation becomes true. Polling can be incompetent when the time between tests is little compared with the time it will take for the condition to become true or right. A polling thread must sleep between consecutive tests in order to give other threads a possibility to run. An alternative approach to polling is to assemble for an interrupt to be sent whenever the condition is true, or to utilize the wait and notify mechanism related with threads.

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.