Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by ignoramous

12 hours 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://archive.vn/BIb7F

1 comment

ignoramous

Reply

jmgao  11 hours ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities