发现了一个诡异的问题。。。
Tofloor
poster avatar
crazya
deepin
2020-05-05 19:18
Author
top命令中Tasks这一行running+sleeping
Reply Favorite View the author
All Replies
avatar
jingle
deepin
2020-05-05 19:30
#1
  1. 第2行:Tasks 进程相关信息
  2. 第1段:进程总数,例如:Tasks: 231 total, 表示总共运行231个进程
  3. 第2段:正在运行的进程数,例如:1 running,
  4. 第3段:睡眠的进程数,例如:230 sleeping,
  5. 第4段:停止的进程数,例如:0 stopped,
  6. 第5段:僵尸进程数,例如:0 zombie
Copy the Code



介个。。。
Reply View the author
avatar
xiamingyu
deepin
2020-05-05 21:43
#2
本帖最后由 xiamingyu 于 2020-5-5 13:46 编辑

top不会报告所有状态,而只会报告较大列表中的选定数字,进程状态要比“正在运行”和“睡眠”要多。
Reply View the author
avatar
xiamingyu
deepin
2020-05-05 21:44
#3
D Uninterruptible sleep (usually IO)
R Running or runnable (on run queue)
S Interruptible sleep (waiting for an event to complete)
T Stopped, either by a job control signal or because it is being traced.
W paging (not valid since the 2.6.xx kernel)
X dead (should never be seen)
Z Defunct ("zombie") process, terminated but not reaped by its parent.
Reply View the author
avatar
xiamingyu
deepin
2020-05-05 21:44
#4
< high-priority (not nice to other users)
N low-priority (nice to other users)
L has pages locked into memory (for real-time and custom IO)
s is a session leader
l is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
+ is in the foreground process group
Reply View the author
avatar
xiamingyu
deepin
2020-05-05 21:45
#5
你可以在PS手册页里查看到这些内容。
Reply View the author