enter image description here

如果您在上图中选中STAT column,将会看到Ss S S< SN and R+这表示什么? Process states。如果是,那么'Ss S< SN and R+'的意义是什么?


这些确实是过程状态。 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 部分。