imak
imak

Reputation: 6699

!threads command showing XXX thread id

When I run the !threads command, in the left most columns for few threads i see id as XXX. My understanding is that this mean dead threads. Does this includes any threads that exited (gracefully or ungracefully) or is it for any threads that didn't exit gracefully and were killed via APIs like Abort or Interrupt

Upvotes: 4

Views: 1882

Answers (1)

seva titov
seva titov

Reputation: 11920

You are right, threads marked as XXXX are dead threads - i.e. they are no longer exist from the prospective of OS. CLR keeps information about threads a bit longer than OS, that is why you see dead threads in output.

Yes, both normally terminated and forcibly killed threads appear with XXXX in output.

Upvotes: 3

Related Questions