I want to output the number of context switches that are performed by the windows OS while executing my program.
You can use Performance-counter for this purpose.
From : http://msdn.microsoft.com/en-us/library/aa373083%28VS.85%29.aspx
You can view context switch data in two ways:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With