Linux status (Linux process state Codes)

Source: Internet
Author: User

Process status Code and Description:

State code Description
D Non-disruptive sleep. is usually in I/O.
R Run-in/can run. is in the running queue.
S Sleep can be interrupted. Wait for an event to occur.
T Has stopped. This may be because the shell job control or process is being debugged.
W The page is paged. Not available for kernel 2.6.xx and later versions.
X Death. Will never appear again.
Z Dead/Zombie process.
< High-priority tasks.
N Low-priority tasks.
L Paging memory is locked into memory. Used for real-time tasks and custom I/O.
S Session first process.
L is a multithreaded process. Cloning threads like Pthreads.
+ In the foreground process group.

English Original:

PROCESS State CODES
Here is the different values that the S, stat and state output specifiers (header "Stat" or "s") would
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 a event to complete)
T stopped, either by a job control signal or because it's 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 are used, additional characters may be displayed:

< High-priority (not nice-to-other users)
N low-priority (Nice-to-other users)
L have pages locked to memory (for real-time and custom IO)
S is a session leader
L was multi-threaded (using Clone_thread, like NPTL pthreads do)
+ is in the foreground process group

Reference:
1. Online Manual: Http://man7.org/linux/man-pages/man1/ps.1.html

Linux status (Linux process state Codes)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.