web-dev-qa-db-fra.com

Que signifie ce processus STAT?

enter image description here

Si vous cochez la case STAT column dans l'image ci-dessus, vous verrez Ss S S< SN and R+ Qu'est-ce que cela indique? Process states. Si oui, alors quelle est la signification de 'Ss S< SN and R+'?

49
mr_eclair

Ce sont en effet les états du processus. Les processus indiquent que ps indique que:

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.

et les caractères supplémentaires sont:

< 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 

Vous pouvez également trouver tout cela en consultant la page de manuel pour ps, en particulier la PROCESS STATE CODES section.

84
Goez