3 ms·
> Atomic operations have a fixed cost. Spinlocks only really have a cost when contention is high. You're making it sound like spinlocks don't need atomic opera
by haberman 11y ago
> Atomic operations have a fixed cost. Spinlocks only really have a cost when contention is high.
You're making it sound like spinlocks don't need atomic operations. I'm pretty sure locking a spinlock requires an atomic operation.