2

I know the managed thread id of thread (obtained fr.om a locked object) I also know that this threadis causing a deadlock. Is it possible to identify the windows thread id? is there any utility available for identifying this.

Maanu
  • 5,093
  • 11
  • 59
  • 82

1 Answers1

3

The Threads Window in VS2010 displays both the managed and the native ID.

EDIT in reply to comment: I don't believe the information is available in VS2005/8, but you can get it during debugging by loading SOS through the immediate window.

  • To load SOS use the .load sos command in the immediate window.
  • To get the thread IDs use the !threads SOS command. The ID column holds the managed ID for the thread.
Brian Rasmussen
  • 114,645
  • 34
  • 221
  • 317