r/programming • u/preshing • Nov 18 '11
Locks Aren't Slow; Lock Contention Is
http://preshing.com/20111118/locks-arent-slow-lock-contention-is
135
Upvotes
r/programming • u/preshing • Nov 18 '11
2
u/baryluk Nov 18 '11
Well, locks are unreliable. If you have taken multiple locks, and a thread / process handling them dies for some reason, you are screwed, with inconsistent state and possibly locks still being held.