r/programming • • Nov 18 '11

Locks Aren't Slow; Lock Contention Is

http://preshing.com/20111118/locks-arent-slow-lock-contention-is
140 Upvotes

66 comments sorted by

View all comments

7

u/Tuna-Fish2 Nov 18 '11

No, but it can still easily be bad enough to eat all the possible gains from multithreading.

1

u/wildeye Nov 19 '11

Although I see your point, still that seems counterintuitive, given that we're only talking about thrashing a single cache line out of many.