Maanu
Maanu

Reputation: 5203

windows thread id from managed thread id

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.

Upvotes: 2

Views: 1254

Answers (1)

Brian Rasmussen
Brian Rasmussen

Reputation: 116401

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.

Upvotes: 3

Related Questions