Any Windows tool to show details of running threads? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the quest开发者_运维技巧ion so it can be answered with facts and citations.
Closed 5 years ago.
Improve this questionI'm trying to find a tool similar to the Windows Task Manager utility which can show details on all threads running in a given process, such as their names, IDs, etc ..
Windows Task Manager only lists the number of threads running in a given process .. It doesn't give any thread specific information ..
Try using Process explorer. It's much more powerful than task manager and should suit your needs.
You can also try processHacker which is free, Open source and mature.It has more option than ProcessExplorer.
THREAD DETAILS
As darioo has already commented, applications like Process Explorer from Microsoft (previously: System Internals) can provide additional information about an application's threads:
- ThreadId
- Kernel Time
- User Time
- Starting address
- Current State
- Context Switches
- etc.
Process Explorer can be downloaded for free from here.
THREAD NAME
The original question also inquired about determining a thread's name.
It is my understanding that the Windows operating system does not support the concept of a thread having a name. This concept only exists within the Visual Studio development environment.
If this is true, then another option to get a thread's name at run-time is print it out along with your debug/log messages. At the very least, you can use this approach to keep track of thread lifetime. For example:
2015/06/02 14:22:17 CoreEngine Quality Assurance thread is initializing... ThreadId=123
2015/06/02 14:22:17 CoreEngine Quality Assurance thread has initialized successfully. ThreadId=123
...
2015/06/02 16:68:17 CoreEngine Quality Assurance thread is terminating... ThreadId=123
2015/06/02 16:68:18 CoreEngine Quality Assurance thread has terminated successfully. ThreadId=123
Additional References #
- How to set name to a Win32 Thread?
- How to: Set a Thread Name in Native Code
- How to: Set a Thread Name in Managed Code
精彩评论