Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hn45e7pbij
· 2mo ago · 0 comments
One thing I had to learn the hard way is that a spin lock is a bad fit the moment your threads can be preempted mid critical section. Under oversubscription you're spinning against a thread that isn't even scheduled.
Comments
[–]
dalvrosa
2mo ago
Yeah that's quite right, you shouldn't be using spinlock without pinned threads