by arielby · 11y ago · 0 comments
The problem with locks is that people don't want one thread per object, and instead use one lock per object. This has the effect of making all object operations synchronous, which turns some potential race-conditions into deadlocks.
Now, in the face of contention, they don't scale as well as a lock. However, this falls under "optimize when you have data".