Skip to content

Comment on Locks Aren't Slow; Lock Contention Is

Comments

I just ran across this gem of a sentence:

> I know teams which spent weeks fine-tuning a lock-free algorithm, subjecting it to a battery of tests, only to discover hidden deadlock bugs several months later.

How exactly can you deadlock in a lock-free algorithm?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.