logoalt Hacker News

loeg • today at 6:30 AM • 1 reply • view on HN

I've seen certain MSFT engineers get a lock ordering warning from taking mutexes in a wrong order and "fix" it by using a spin loop + try lock instead.


Replies

senderista • today at 7:37 AM

I work on a commercial database marketed as "lock-free" and I can't tell you how many CAS spin loops I've seen with no backoff or iteration bounds.