Process State Diagram
2 min readJun 6, 2019
- Initially process will be in the New state it means process is under creation and process is being created.
- Once the process is created it will be move down to Ready State and in ready state there will be multiple number of processes.
- One of the process will be dispatched to the Running State.
- When the process in the Running State it means it occupies the CPU and executing the Instructions of the process and performing CPU time.
- In the Running state there will be only one process at any point of time.
- 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.
- The number of processes present in the main memory is called as the Degree of Multiprogramming.
- When the process is in the Ready,Running and Wait State then it is residing in the main memory.
- 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.
- When the process in the Suspended Ready State then it is residing in the Backing Store( Secondary Memory).
- 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.
- 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.
- Each and Every time when the process is moving from one state to other state,the Context of process will change.
- Saving the context of one process and loading the context of another process is called as Context Switching.
- 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.
- If the context of the process is more the the context switching time will increased which is undesirable.
- Context Switching Time is considered as overhead ( Burden or waste of CPU time) for the System.