A
spin-wait is a kind of
blocking synchronization mechanism used to control access to a
resource by multiple
threads of control.
Polling for an event in a loop is called a
spin-wait. It is also called a
busy-wait because the CPU stays busy executing the loop.
When a thread of control must wait for an event to occur, it normally