- UID
- 816
- 阅读权限
- 100
- 帖子
- 4826
- 精华贴数
- 3
- 技术排名
- 200
- 技术积分
- 9663
- 社区排名
- 3619
- 社区积分
- 197
- 注册时间
- 2001-10-9
- 精华贴数
- 3
- 技术积分
- 9663
- 社区积分
- 197
- 注册时间
- 2001-10-9
- 论坛徽章:
- 23
|
发表于 2004-10-25 11:18:56
|显示全部楼层
Re: QSlice的替代品,显示Windows进程中的线程情况
最初由 Kamus 发布
[B]前天在上海的咖啡馆
说起QSlice的Bug
eygle说有替代品
不过居然卖关子死活不说是什么
哼哼
那就Google
结果找到PStat
还是微软的resouce kit中的东西
QSlice是GUI的,而PStat是命令行的
...
[/B]
If I remember right, David Solomon's "Inside Windows NT" (may have newer version now called something like "Inside Windows 2000" etc) has a chart comparing the capabilities of various Windows process monitoring tools but it's missing Process Explorer (from sysinternals.com). Each tool shows a subset of process and thread information. But in the chart, it looks like the kernel debugger gives the most complete information. For instance, what a thread is actually waiting on is only available in that tool. Resource kit tlist does a pretty good job. It tells you what state a thread is in.
Since kernel debugger is not easy to use (normally it requires a serial cable connected from a separate PC), I highly recommend Sysinternals's Process Explorer. It shows pretty much everything you can get by doing Win32 programming.
Some information is simply not available in Windows. For instance, a thread has no name. Therefore you can't tell which thread is SMON or PMON from outside Oracle (on UNIX you can ps -ef | grep pmon). But if you insist, I can tell you a trick by using bindview.com's strace utility.
Yong Huang |
|