Reducing Lock Contention

Lock contention is the time spent waiting in one thread for a lock to be released while another thread is holding that lock.

You can reduce Lock contention by using different locks for unrelated data when you convert to a parallel framework.

For more complete information about compiler optimizations, see our Optimization Notice.