Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

spinlock

A lock that a waiting thread keeps checking in a tight loop until it is free, instead of going to sleep.

A spinlock is a mutual-exclusion lock acquired by an atomic exchange or compare-and-swap of a flag and released by a store; waiters spin, ideally reading the flag until it looks free before retrying the atomic (test-and-test-and-set) and executing pause/yield in the loop.

Read the full section →