Busy-wait
A pattern where a thread repeatedly checks a condition in a loop rather than sleeping, which wastes CPU but can minimize latency.
Busy-waiting (or "spinning") is the naive approach: a thread runs a tight loop reading a memory location over and over, checking if the value has changed. While the loop runs, the thread consumes CPU at maximum rate — possibly wastefully, just to wait. For very short durations, this can be faster than sleeping (which requires a system call and a context switch), but for longer waits it's just burning power.
Busy-wait is almost always wrong — use a spinlock or a condition variable instead. It is used intentionally in hard real-time systems where predictable, sub-microsecond latencies matter more than energy efficiency, but the trade-off is explicit and expensive.