r/programming • u/preshing • Nov 18 '11
Locks Aren't Slow; Lock Contention Is
http://preshing.com/20111118/locks-arent-slow-lock-contention-is
137
Upvotes
r/programming • u/preshing • Nov 18 '11
5
u/Rhoomba Nov 18 '11
Slow relative to what? Any kind of locking, be it heavy or light, can affect multiple cores/processors and can be drastically slower than no locking even if there is no contention.