Overview

Polling is the alternative to interrupt-driven I/O. Instead of the device signaling the CPU, the CPU 'asks' the device in a loop: 'Are you ready yet?'

Pros and Cons

  • Pros: Simple to implement; no need for complex interrupt hardware or context switching.
  • Cons: Extremely inefficient; wastes CPU cycles that could be used for other tasks (often called 'busy waiting').

Use Case

Polling is sometimes used in very high-speed networking or storage where the overhead of an interrupt is greater than the time spent polling.