Process Management (Cont.)


Process States
The process, from its creation to completion, passes through various states:
  1. New: A program which is going to be picked up by the OS into the main memory is called a new process.

  2. Ready: Whenever a process is created, it directly enters in the ready state, in which, it waits for the CPU to be assigned.
  1. Running: One of the processes from the ready state will be chosen by the OS depending upon the scheduling algorithm.

  2. Block or wait: From the running state, a process can make the transition to the block or wait state.
  1. Completion or termination: When a process finishes its execution, it comes in the termination state.

  2. Suspend ready: A process in the ready state, which is moved to secondary memory from the main memory due to lack of the resources.

  3. Suspend wait: Instead of removing the process from the ready queue, it’s better to remove the blocked process which is waiting for some resources in the main memory.
Review: Process States
    Which process state is to remove the blocked process which is waiting for some resources in the main memory?

      Pause
      Resume
      Suspend ready
      Suspend wait
Result:        




      One day or day one. It’s your decision.