States of a process

States of a process are as following:

 

 

 

§  New (Create) – In this step process is about to create but not yet created, it is the program which is present in secondary memory that will be picked up by OS to create the process.

§  Ready – New -> Ready to run. After creation of process, the process enters the ready state i.e. into the main memory. The process here is ready to run and is waiting to get the CPU time for its execution.

§  Run – The process is running in the main memory.

§  Blocked or wait – Whenever the process requests the I/O it enters the blocked or wait state. It is executed in the main memory and it doesn’t require CPU. Once the I/O operation is completed the process goes to ready state.

§  Terminated or completed – Process is killed as well as PCB is deleted.

§  Suspend ready – Set of process that were initially in ready state but lack of main memory caused them to go to suspend ready, it is a secondary memory.

§  Suspend wait or suspend blocked – Similar to suspend ready but uses the process which was performing I/O operation and lack of main memory caused them to move to secondary memory.

§  When work is finished it may go to suspend ready.