Two State Process Model in operating systems

process model

What is Two state process model?

In this model, we consider two main states of the process. These two states are

State 1: Process is Running on CPU
State 2: Process is Not Running on CPU

New: First of all when a new process is created, then it is in Not Running State. Suppose a new process P2 is created then P2 is in NOT Running State.

CPU: When the CPU becomes free, Dispatcher allows the P2 to use the CPU. Before this P2 was in waiting for the state in a waiting queue.

Dispatcher: Dispatcher is a program that gives the CPU to the process selected by the CPU scheduler. Suppose dispatcher allows P2 to execute on CPU.

Running: When the dispatcher allows P2 to execute on the CPU then P2 starts its execution. Here we can say that P2 is in running state.

Now, according to priority scheduling, if any process with high priority wants to execute on CPU, Suppose P3 with high priority, then P2 should be the pause or we can say that P2 will be in waiting state and P3 will be in running state.
Now, when P3 terminates then P2 again allows the dispatcher to execute on CPU.

process model
Figure: Two-State Process Model

Video Lecture

Download Slides (Powerpoint Presentation) and PDF of Process Model

  1. Download Two states, Five state and 7 state process model Slides Presentation
  2. Download Two states, Five states and 7 state process model PDF File

You must know the 7 state diagram in os | queuing diagram for the seven-state process model | five state process model in operating system ppt | implementation of the process in os | explain the different process states.

By:Prof. Fazal Rehman Shamil
CEO @ T4Tutorials
Last Modified: April 12, 2020

2 thoughts on “Two State Process Model in operating systems

  1. To state model we have to consider that there are two stairs of the CPU one is the running state and the other is not running state, At the start when the process is created it is not in the running state. The dispatcher allows the process to be executed during the execution we can see that the process is in the running state.

Leave a Reply

Your email address will not be published. Required fields are marked *