Parking lot
Lock implementation where blocked threads are efficiently queued instead of spinning.
A parking lot is a userspace lock built on OS primitives like futex or equivalent. Instead of spinning on a lock (wasting CPU), excluded threads are efficiently parked in a queue. When the lock becomes available, one or more waiters wake up from the queue.
This is the standard pattern for lock implementations in standard libraries. It balances fast uncontended acquisitions against good scalability when many threads wait. Parking lots also support timeouts and priority boosting better than pure spinlocks.