Mark As Completed Discussion

Explain the Linux Process States.

A process in Linux is a single instance of a program or command being executed. Every process will be in one of the five states depicted below for as long as it exists.

Explain the Linux Process States.

  • Created/Ready: a new process will be created and then will be ready to run during these states.
  • Running: a new process will enter the running state when it is executed. The process uses a CPU core while it is executing to carry out its logic and code.
  • Waiting: the process is waiting for user input in this state, and if it lacks resources to continue running (memory, file locks, input), it may stay in a waiting or stalled state.
  • Terminated: when a process gets into this state, it means that it has either ended on its own or has been terminated by the operating system.
  • Zombie: when the process is in the zombie state, it means that it has already ended but the process table still contains information about it.