Locking code
- Monitor.TryEnter, lock, using, and Deadlock
- Jeffrey Richter has an article on why the ReaderWriterLock isn't the best option
- Low-Lock Techniques in action: Implementing a Reader-Writer lock
- Analysis of Reader-Writer lock
- Concurrent Affairs: Performance-Conscious Thread Synchronization
Jeffrey Richter on the performance costs of various thread synchronization primitives (Thread.SpinWait, Interlocked.Increment, SwitchToThread, Thread.Sleep, and ManualResetEvent). Strangely, he did not try out Lock statement.

Leave a comment