What is the five state process model?
This process model contains five states that are involved in the life cycle of a process.
- Blocked / Waiting
When a new process is created, then this new process is in the new state.
A process in the new state tries its best to load into the RAM.
After a new state, a process moves from new to ready state. When the process is in the ready state, it means that it is loaded into the main memory (RAM) and the process is ready for further execution. In the ready state, the process needs to wait for the Processor, when the process response backs the process, then the process moves further for execution by the processor. It is interesting to know that in a multiprogramming environment, many processes can stay in the ready state.
All processes that are running on the CPU are in running state.
Running state shows that the process in running state is coming from a new state and ready state.
If the process is running in its critical section, then other processes need to wait in the Ready state.
All processes that leave the CPU and move to the waiting state are in the blocked state. When CPU becomes free, processes from the blocked state again move to the ready state, and from ready to Running state.
Exit / Terminated:
A process that is terminated from CPU and RAM is in the exit state.
Download Slides (Powerpoint Presentation) and PDF of Process Model
- Download Two states, Five state and 7 state process model Slides Presentation
- Download Two states, Five states and 7 state process model PDF File
You must also see the 7 States of process Model.
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.