4 ms·
> 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://
by ignoramous 12d ago
> 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://victoriametrics.com/blog/go-sync-mutex / https://archive.vn/BIb7F https://archive.vn/BIb7F
- jmgao 12d agoOptimistically spinning for a bit before falling back to futex or equivalent is very different from a spinlock.