title: How do I identify the thread in application that takes 100% CPU usage in PerfMon?
body: <p><a href="https://i.stack.imgur.com/DANOJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DANOJ.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/JvH0a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JvH0a.png" alt="enter image description here"></a></p>
  
  <p>Trying to fine-tune/optimize my <strong>C#</strong> application. Been running <strong>PerfMon</strong> and I consistently get a spike of 100% on some operations. I can get the thread instance number from PerfMon but from <strong>Visual Studio 2015's thread window</strong> when debugging, how do I know which thread is the corresponding one?</p>
  
  <p>Or am I going about it the wrong way? I want to find out the identity of the thread that's spiking in CPU usage from time to time. Thanks in advance SO!</p>