进程是否会出现top
实际上被卡住的情况?
另外,我还看过一个帖子这里ps -o s= -p <pid>
如果输出为 ,则命令可以显示已停止的进程T
。
我用各种 pid 尝试了该命令,并给了我输出R
和S
.
T
知道和R
是什么S
意思吗?
谢谢。
答案1
man ps 将为您提供更多详细信息:
D uninterruptible sleep (usually IO)
R running or runnable (on run queue)
S interruptible sleep (waiting for an event to complete)
T stopped by job control signal
t stopped by debugger during the tracing
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