logoalt Hacker News

ignoramousyesterday at 9:46 PM1 replyview on HN

> had not heard of anyone actually using a spinlock in production code

Go stdlib sync.Mutex uses spins: https://victoriametrics.com/blog/go-sync-mutex / https://archive.vn/BIb7F


Replies

jmgaoyesterday at 10:33 PM

Optimistically spinning for a bit before falling back to futex or equivalent is very different from a spinlock.