Spinwait
A loop that repeatedly reads the same memory address instead of blocking and yielding the CPU.
Instead of telling the OS "I'm done, schedule something else and wake me when my event arrives," a spinwait burns CPU cycles in a tight loop: while (flag == 0) {}. The processor spins on the same instructions, heating up, consuming power, but avoiding OS overhead. Often paired with a PAUSE instruction that tells the CPU this is a spinloop—yield some pipeline resources so other instructions can proceed.
Spinwait is only worthwhile when the wait is very short—sub-millisecond. For longer waits, it is electricity wasted. Lock-free structures often use spinwait with backoff: spin briefly the first time, longer the next, then give up and truly block.