Process States
The process, from its creation to completion, passes through various states:
New:
A program which is going to be picked up by the OS into the main memory is called a new process.
Ready:
Whenever a process is created, it directly enters in the ready state, in which, it waits for the CPU to be assigned.
Running:
One of the processes from the ready state will be chosen by the OS depending upon the scheduling algorithm.
Block or wait:
From the running state, a process can make the transition to the block or wait state.
Completion or termination:
When a process finishes its execution, it comes in the termination state.
Suspend ready:
A process in the ready state, which is moved to secondary memory from the main memory due to lack of the resources.
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.