Process States
100%

Processes · Lesson 9

Process States

Learn how to interpret common Linux process-state codes in `ps` snapshots.

A Linux task moves between execution states as it runs, waits, stops, and exits. The STAT field from ps captures one moment, so repeated observations are more useful than a single letter when diagnosing behavior.

$ ps -o pid,ppid,stat,wchan:24,cmd

The first character in STAT is the primary state. Additional characters are modifiers describing properties such as session leadership or foreground process-group membership. Consult the local ps manual for the complete set.

Running and Interruptible Sleep

  • R means running or runnable. The task is executing on a CPU or waiting in a run queue for CPU time.
  • S means interruptible sleep. The task is waiting for an event and can be awakened by an appropriate signal or event.

Sleeping is normal. Interactive programs and services spend much of their time waiting for input, timers, network traffic, locks, or other events rather than consuming CPU continuously.

What does primary state R mean?

Which primary state represents interruptible sleep?

Uninterruptible Sleep

D means uninterruptible sleep, commonly while the task waits in a kernel operation such as some storage or network-filesystem I/O. The task does not act on ordinary signals until it leaves that wait; a signal can remain pending in the meantime.

A brief D state can be normal. Persistent or numerous D tasks can indicate slow, unavailable, or faulty I/O, but the state alone does not identify the cause. Inspect the wait channel, kernel logs, storage and network health, and the relevant subsystem before drawing conclusions.

Which primary state denotes uninterruptible sleep?

Stopped and Zombie States

  • T normally means stopped by job-control action, such as SIGTSTP, or by SIGSTOP. Some tools use lowercase t for a tracing stop.
  • Z means zombie: the process has exited, but its parent has not yet collected the termination record.

Resume a job-control stop with SIGCONT when appropriate. A zombie cannot be resumed or killed because it is no longer executing; its parent or an adopting reaper must collect it.

What does primary state Z identify?

Reading States in Context

State codes are observations, not diagnoses. Combine them with elapsed time, CPU use, wait channels, parent relationships, logs, and repeated samples. A task can switch states between the instant the kernel reports it and the instant you read the screen.

Lesson complete

You finished Process States

You can now interpret the most common primary process states.

  • Read R as running or runnable and S as interruptible sleep.

  • Investigate persistent D as a wait symptom rather than a diagnosis.

  • Distinguish stopped T from exited, unreaped Z.

  • Use repeated observations and surrounding evidence.

Keep your learning progress

Create a free account to save this lesson and continue learning on any device.

Create a free account
Next Lesson
Back to Processes