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

Taught in

References