Spinlock
A lock that waits by spinning in a loop and asking again — burning CPU instead of sleeping.
Putting a thread to sleep and waking it costs context switches. If the critical section is shorter than that cost, it pays to simply wait actively. Spinlocks are therefore standard inside the kernel, where sections are often a few instructions long.
Two things make them dangerous. On a single-core machine a spinlock is pointless unless the lock holder can run concurrently — the spinning blocks the very process you are waiting for. And in user space the scheduler can take the CPU from the lock holder at any moment, whereupon the waiters spin away their entire time slices. So there you use a mutex, which takes the fast path anyway via futex.