process state
What a process is doing at a moment: running, sleeping while it waits for something, stopped, or finished but not yet collected (zombie).
In more detail
ps shows it as a letter, such as R running, S sleeping, D waiting on disk, T stopped and Z zombie. A state is a snapshot: a sleeping worker may be running a moment later. Record the time with the observation rather than treating one state as permanent.
Example
pid=42 state=sleeping fds=2 memory=18M describes a waiting worker with two open file descriptors.Related terms
- process — A program that is currently running, with its own memory and a numeric identifier.
- CPU scheduler — The part of the kernel that decides which runnable thread gets a processor next and for how long.
- job control — The shell feature for managing the commands it started: listing them with jobs, and moving them between foreground and background with fg and bg.
Taught in
- What A Process Is — Linux Fundamentals & Systems Administration