http://www.csdn.net/article/2012-09-18/2810047-command-line-tools-to-monitor-linux-perf
Htop是一个更先进的交互性和实时性的Linux进程监控工具。这个命令与top命令非常相似,但它的功能更加丰富,如友好的用户界面进程管理、快捷键、垂直和水平视图进程等。Htop是一个第三方插件工具,你需要使用YUM软件包管理工具在Linux系统上安装才可以使用。
Fedora
For Fedora you should also install Dag Wieers Repository
and then run
yum install htop
Debian and Ubuntu
For these two just run:
apt-get install htop
Once you have it installed, you can invoke it just typing
htop
It will display a screen like this:
说明:
在最上面是显示几个cpu,及cpu使用情况,可以观察到某个进程起的线程,每个线程对应的pid也不同。