Synchronization Context Switches

Synchronization Context Switches metric measures the number of times a thread was switched off a processor because of making an explicit call to thread synchronization API. For example, in case of trying to wait on a synchronization object already occupied by another thread, the number of synchronization context switches will characterize the level of contention between threads.

This metric is available in the Hardware Event Counts viewpoint if you enabled the Collect stacks option during the hardware event-based sampling analysis configuration.

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