Understanding Process State Diagram

For Complete YouTube Video: Click Here

In this class, we will try Understanding Process State Diagram.

We have already discussed the concept of multiprogramming in our previous class.

Understanding Process State Diagram

Understanding Process state Diagram is very important.

When a process is getting executed, the process will be in one of the states as shown below.

In the above image, we have seven states.

The states are.

  1. New
  2. Ready
  3. Run
  4. Terminate
  5. Wait or Block
  6. Suspend Wait
  7. Suspend Ready

New: Whenever we want to execute a program or application, the program stored on the hard disk will convert into a process. This state of the process is called New State.

Ready: The process in the new state will get shifted to the RAM. The process waiting for its turn to get executed on the CPU is in the ready state.

Run: The process executing instructions on the CPU is running.

Terminate: The process whose instructions got executed is in a terminate state.

Wait or Block State: The process which is waiting to complete its IO operations is in a wait or block state.

Suspend Wait: If a process in a running state wants to execute IO operations, it will get shifted to wait or block state. If there is no room for the process in the wait state, then one of the processes waiting for the most prolonged time will get suspended to the suspend-wait state.

If the IO operation of the suspend-ready process is completed and there is still no room in the wait state, the process will get shifted to the suspend-ready state.

Both suspend-ready and suspend-wait states are in secondary memory or hard disk.

Suspend-Ready: If the ready queue is full and a new process with high priority is willing to get executed, then one of the processes in the ready state will get shifted to the suspend-ready state.

Once there is room for a process, the processes in the suspend-ready state will get shifted to the ready state.

For the detailed explanation click the YouTube link provided on the top.