spinwaits
Spinwaits are a synchronization technique in which a thread waiting for a condition to become true repeatedly tests the condition in a tight loop, rather than sleeping or blocking. They are closely related to busy-waiting and are often used in low-level code that requires very low latency or where the expected wait time is short.
In practice, a spinwait loops while the condition is not satisfied, optionally performing a pause or backoff
Spinwaits are commonly used to wait for lightweight events such as a flag becoming visible, a lock
In practice, spinwaits are often complemented with blocking synchronization as a fallback: if the wait exceeds