recall

← recall

spinlock term

lock that busy-loops instead of sleeping

Wastes CPU but avoids context-switch cost. Right for very short critical sections on multi-core systems. Wrong if held longer than a few microseconds.

topics: concurrency, locks, internals

references: