Process States in OS

Process : A process is a program at the time of execution. A process is more than the program code. It includes the program counter, the process stack, and the contents of the process register, etc.

Process States : When a process executes, it changes the state, generally the state of process is determined by the current activity of the process.
process states
Each process may be in one of the following states :

  • New : The process is being created.
  • Running : The process is been executing.
  • Waiting : The process is waiting for some event to occurs.
  • Ready : The process is waiting to be assigned to a processor.
  • Terminate : The process has finished execution.