Debugging Lock Contention Performance Issues in C# .NET

added by DotNetKicks
11/19/2019 5:51:52 PM


Lock contention is a state where one thread is waiting for another while trying to acquire a lock. Whatever time spent waiting for the lock is "lost" time that is wasted doing nothing. This can obviously cause major performance problems. In this article, you will see how to detect lock contention problems, debug them with various tools and find the core cause of the issue.