Linux中查看进程的多线程(2)

发表于:2013-11-12来源:不祥作者:linux点击数: 标签:linux
查看源代码 打印?102030405060 1.PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ P COMMAND 2.661 root 20 0 1313m 188m 2752 S 2.3 4.9 0:44.24 3 qemu-sys 3.660 root 20 0 1313m 188m 2752 S 2.0 4.9 0:5

  查看源代码

  打印?·········10········20········30········40········50········60········

  1.PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ P COMMAND

  2.661 root 20 0 1313m 188m 2752 S 2.3 4.9 0:44.24 3 qemu-sys

  3.660 root 20 0 1313m 188m 2752 S 2.0 4.9 0:51.74 0 qemu-sys

  4.874 root 20 0 15260 1284 860 R 0.7 0.0 0:00.32 2 top

  5. 1 root 20 0 19444 1560 1252 S 0.0 0.0 0:00.34 0 init

  6. 2 root 20 0 0 0 0 S 0.0 0.0 0:00.02 1 kthreadd

  更多信息,请 man pstree, man top, man ps 查看帮助文档。

  注: LWP为轻量级进程(即:线程),(light weight process, or thread) 。

原文转自:http://linux.cn/thread/11492/1/1/