如果您检查STAT column
上图,您会看到Ss S S< SN and R+
这表明什么?Process states
。如果是的话,那么有什么意义呢'Ss S< SN and R+'
?
答案1
这些确实是进程状态。 ps 表示的进程状态是:
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.
附加字符是:
< 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
您还可以通过查看来找到这一切手册页对于ps
,特别是该PROCESS STATE CODES
部分。