Busy waiting (source code)

= Busy waiting

= Busy-wait
{synonym}

<Busy waiting> repeatedly tests a condition while keeping the processor occupied. A delay based only on instruction counts also depends on instruction timing and time spent handling <interrupts>. Polling a <hardware timer> avoids that calibration dependence but still occupies the processor.