Spinning around: Please don't – Common problems with spin locks
created: Jan. 28, 2026, 4:48 p.m. | updated: Jan. 29, 2026, 1:41 a.m.
I’ve been dealing with spinning threads for many years now, and I won’t lie: over the years I’ve been both on the offender and victim side.
nbPauses = nbPauses < maxPauses ?
nbPauses = nbPauses < maxPauses ?
nbPauses = nbPauses < maxPauses ?
Ideally this should be done asynchronously (don’t do it on your application main thread at boot, please).
9 hours, 44 minutes ago: Hacker News