Process States
As a process executes, it changes state. The state of a process is defined as the current activity of the process.
Process can have one of the following five states at a time.
S.N. | State & Description |
---|---|
1 | NewThe process is being created. |
2 | ReadyThe process is waiting to be assigned to a processor. Ready processes are waiting to have the processor allocated to them by the operating system so that they can run. |
3 | RunningProcess instructions are being executed (i.e. The process that is currently being executed). |
4 | WaitingThe process is waiting for some event to occur (such as the completion of an I/O operation). |
5 | TerminatedThe process has finished execution. |