States of A Process In Operating System

States of a process: In this article, you will learn types of process states. A process passes through various states from it starts to till it get completed.There are following types of states of process:

States of a process diagram:

States of A Process In Operating System
  1. New : – It is the state in which program is to be picked by operating system to be created in main memory.
  2. Ready: – Once the process is created now process goes into ready state, and waiting for CPU time to get executed. Process are maintained in a queue fashion by the CPU. There can be multiple processes in ready state.
  3. Running: – Process is chosen by the CPU for execution based on scheduling algorithm. There can be many processes in running state if there are multiple processors and not single processor.
  4. Block or wait: Sometimes a process may require input/output at that times it goes to wait state or block state. Once it get input/output it goes to ready state.
  5. Termination: When a process is finished it goes to termination state which is deleting of all PCB (process control block).
  6. Suspend ready: A process can be moved back to secondary memory from primary memory when CPU does not have sufficient resources or due to low priority then it is called suspend ready state.
  7. Suspend wait: It is same like suspend ready but when it reaches block or wait state and if the CPU does not have sufficient resource for the process then it is called suspend wait state.

Process State Transitions

  • Running to ready state
  • Waiting to ready
  • Running to waiting
  • Blocked to ready
  • Running to terminated
Shares
facebook sharing button Share
twitter sharing button Tweet
whatsapp sharing button Share
telegram sharing button Share
pinterest sharing button Pin

Leave a Comment