標籤:des style http io ar for sp on 代碼
進程狀態碼及說明:
| STATE代碼 |
說明 |
| D |
不可中斷的睡眠. 通常是處於I/O之中. |
| R |
運行中/可運行. 正處於運行隊列中. |
| S |
可中斷的睡眠. 等待某事件發生. |
| T |
已停止. 可能是因為shell作業控制或進程正被調試. |
| W |
分頁中. 不適用於核心2.6.xx及以後的版本. |
| X |
死亡. 再也不會出現. |
| Z |
死/殭屍進程. |
| < |
高優先順序任務. |
| N |
低優先順序任務. |
| L |
有分頁記憶體被鎖定到記憶體中. 用於即時任務和自訂I/O. |
| s |
會話期首進程. |
| l |
屬多線程進程. 就像pthreads那樣的複製線程. |
| + |
處於前台進程組. |
英語原文:
PROCESS STATE CODES Here are the different values that the s, stat and state output specifiers (header "STAT" or "S") will display to describe the state of a process:
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
For BSD formats and when the stat keyword is used, additional characters may be displayed:
< 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
|
參考:
1. 線上手冊: http://man7.org/linux/man-pages/man1/ps.1.html
Linux進程狀態 ( Linux Process State Codes)