web-dev-qa-db-ja.com

このプロセスSTATは何を示していますか?

enter image description here

上の画像のSTAT columnを確認すると、Ss S S< SN and R+が表示されます。これは何を示していますか? Process states。はいの場合、'Ss S< SN and R+'の意味は何ですか?

49
mr_eclair

これらは確かにプロセスの状態です。プロセスは、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 

man pageps、具体的にはPROCESS STATE CODES セクション。

84
Goez