title: Is there a simple way to take a thread dump to find cause of thread deadlock?
body: <p>We have an C# console application in production which has intermittent thread deadlock.  I tried to find deadlock by attaching VS 2017 to the running process, but I could not find any way to easily find the cause of the deadlock.  There didn't seem to be any window which identifies which threads are owning which locks. (I tried using the Memory window, but that didn't work at all).</p>
  
  <p>I have also tried using Dump file but found it very hard to make sense of what it shows. (But this was before I knew I was searching for a deadlock.)</p>
  
  <p>I am used to using JStack in Java, a command line utility to run against running Java application, which prints a Thread dump, and identifies deadlocks, and shows in each StackTrace the points where a Thread has locked a monitor.  </p>
  
  <p>Is there some equivalent tool for .NET?</p>