Process State Diagram

Priyam Goenka
2 min readJun 6, 2019

--

  1. Initially process will be in the New state it means process is under creation and process is being created.
  2. Once the process is created it will be move down to Ready State and in ready state there will be multiple number of processes.
  3. One of the process will be dispatched to the Running State.
  4. When the process in the Running State it means it occupies the CPU and executing the Instructions of the process and performing CPU time.
  5. In the Running state there will be only one process at any point of time.
  6. If the running process requires I/O Operation then it will move onto Wait State,the Wait State also there can be multiple number of classes it means multiple proccesses will perform I/O Operation Simultaneously or Parallely.
  7. The number of processes present in the main memory is called as the Degree of Multiprogramming.
  8. When the process is in the Ready,Running and Wait State then it is residing in the main memory.
  9. When the resources are not sufficient to manage the processes in Ready State then some of the processes will be Suspended. They will move onto Suspended Ready State.
  10. When the process in the Suspended Ready State then it is residing in the Backing Store( Secondary Memory).
  11. The process which requires more amount of CPU time So, it spend more amount of time in Running State these type of process known as CPU Bound Process.
  12. The process which requires more amount of I/O time So, it spend more amount of time in Wait or Block State these type of process known as I/O Bound Process.
  13. Each and Every time when the process is moving from one state to other state,the Context of process will change.
  14. Saving the context of one process and loading the context of another process is called as Context Switching.
  15. In some special cases if there is only one process still it is consider as a Context Switching. Example :- Round Robin Scheduling with one process.
  16. If the context of the process is more the the context switching time will increased which is undesirable.
  17. Context Switching Time is considered as overhead ( Burden or waste of CPU time) for the System.

--

--