Linux進程狀態 ( Linux Process State Codes)

來源:互聯網
上載者:User

標籤: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)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.