« * K @alexrios.me

Alex Rios @alexrios.me

2026-10-22 21:38 UTC

Fair question! sync.Mutex doesn’t know whether the holder is running either. Its advantage, AFAIK, is access to live scheduler state. In other words, before each bounded spin, it checks the current processor’s run queue and whether other processors are doing useful work.

Link: - The Go Programming Language (go.dev/src/runtime/proc.go\#L7989)](<https://go.dev/src/run…)

A reply in a thread.

0 likes, 0 reposts, 1 replies

3 Next post4 More from @alexrios.meBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup