PS 命令STAT状态
常用的ps命令有:
ps -ef
或者
ps aux
这些命令显示的进程列表头中有一项STAT,其中各个状态字符的解释
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
还可能有额外的字符对进程的状态做补充说明:
< 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
比如,常见的状态有:
Ss:可中断的休眠(待唤醒);会话
Ssl:可中断的休眠(待唤醒);会话;是一个多线程
Ssl+:可中断的休眠(待唤醒);会话;是一个多线程;属于一个前台的进程组
S<:可中断的休眠(待唤醒);高优先级