SlideShare a Scribd company logo
3
Most read
5
Most read
9
Most read
Operating systems
By Faizan Iftikhar(F2019376016)
Process State Model
Process State:
Process state defines current State of process. The process states are new,
ready, running, waiting, suspended waiting, terminated etc.
 There are various process state models in Os.
Two State Process Model:
“Basically this process state tells whether the process is executing
or not”. It may be in two states:
1. Running
2. Not Running
Two State Process Model:
Explanation:
 There will be two conditions in this state.When we start processing,if there will be pause
for some reason (i-e I/O,Time Out), then it will go towards “Not Running” procedure
which will be named as first condition.
 When dispatcher put this process and execution goes complete,then it will go towards
“Running” procedure which is second condition.
Note:
Here we are talking about “Uni-processor”(that deals one process at a time)
Five State Process Model
In this state,process is considered to be either in all five states.
 New State:
whenever particular process is created or initialized or programmed in system,kept in new
state.
 Ready State:
The process that is admitted to be execute.
 Running State:
Current executing process.
Five State Process Model:
Exit State:
The process that is terminated due to some reason or issue.
Blocked State:
Process waiting for some event such as I/O operations, waiting for other
processes etc.
Five State Process Model:
Diagram:
Five State Process Model:
Explanation:
 Initially programs are in Secondary Memory(New) then it transfers in Main memory
(Ready). Dispatch transfer programs to “Running” phase for execution.During
execution,when timeout appears (eg: 10 or 20 sec) it movee from running to ready phase.
 Whenever process need I/O, then process moves in blocked state (e.g) waits for event
occurrence.Whenever particular event goes complete,it go towards “Ready” phase.There
it checks or complete task in fixed given time and go in”Running” phase.After
completion,it releases or move towards “Exit” procedure.
Seven State Process Model:
“It is commonly known as Five state process model with two suspended
states”.
Seven State Process Model:
To avoid this, we divide the suspend state into 2 states:
Blocked/Suspend:
The process is in secondary memory but not yet ready for execution.
Ready/Suspend:
The process is in secondary memory and ready for execution.
THE END

More Related Content

PPTX
Process state in OS
PPTX
Interfacing With High Level Programming Language
PPTX
Functional and non functional
PPTX
Semophores and it's types
PPTX
Metrics for project size estimation
PPTX
SCHEDULING ALGORITHMS
PPTX
Inter Process Communication
PDF
Common air protocol
Process state in OS
Interfacing With High Level Programming Language
Functional and non functional
Semophores and it's types
Metrics for project size estimation
SCHEDULING ALGORITHMS
Inter Process Communication
Common air protocol

What's hot (20)

PPTX
Interrupts
PPTX
System calls
PPTX
Operating system memory management
DOCX
Complete Operating System notes
PPT
Agile development, software engineering
PPT
deadlock avoidance
PPTX
COCOMO Model in software project management
PPTX
Process , Process states , Process Control Block in Operating Systems
PPTX
Process scheduling
PPT
Applet life cycle
PPTX
Batch operating system
PPTX
Segmentation in operating systems
PPTX
Operating System Operations ppt.pptx
PPTX
2 phase locking protocol DBMS
PPTX
Filehandling
PPTX
System program
PPT
concurrency-control
PPTX
PPTX
SDLC Models
Interrupts
System calls
Operating system memory management
Complete Operating System notes
Agile development, software engineering
deadlock avoidance
COCOMO Model in software project management
Process , Process states , Process Control Block in Operating Systems
Process scheduling
Applet life cycle
Batch operating system
Segmentation in operating systems
Operating System Operations ppt.pptx
2 phase locking protocol DBMS
Filehandling
System program
concurrency-control
SDLC Models
Ad

Similar to process State Models (20)

PDF
Process Management in operating system. Pdf
PPT
its about os process states dfdf dfdfdfdf
PPTX
Operating System
PPTX
Program control board in Operating System
PPTX
Unit 1 process management operating system.pptx
PPTX
52bf066dbfcc4d739fa99d255dba287a.pptx
PDF
Process And Scheduling Algorithms in os
PPTX
unit 2- process management of Operating System
PDF
Lecture 2- Processes.pdf
PPTX
Operating Systems chap 2_updated2 (1).pptx
PPTX
Operating Systems chap 2_updated2.pptx
PDF
OperatingSystem-Unit2_Process Management
PPTX
presentation on cpu process state for btech bca.pptx
PPTX
process state presentation by Deepak Thakur
PPTX
Process and thread Management Operating system
PDF
OPERATING SYSTEMS and types of operating system
PPTX
Processing management
PDF
Step by step SAP ABAP system monitoring.
PPTX
OS (1).pptx
PPTX
process synchronization topic of operating system
Process Management in operating system. Pdf
its about os process states dfdf dfdfdfdf
Operating System
Program control board in Operating System
Unit 1 process management operating system.pptx
52bf066dbfcc4d739fa99d255dba287a.pptx
Process And Scheduling Algorithms in os
unit 2- process management of Operating System
Lecture 2- Processes.pdf
Operating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2.pptx
OperatingSystem-Unit2_Process Management
presentation on cpu process state for btech bca.pptx
process state presentation by Deepak Thakur
Process and thread Management Operating system
OPERATING SYSTEMS and types of operating system
Processing management
Step by step SAP ABAP system monitoring.
OS (1).pptx
process synchronization topic of operating system
Ad

Recently uploaded (20)

PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Encapsulation theory and applications.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
A Presentation on Touch Screen Technology
PPTX
TLE Review Electricity (Electricity).pptx
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
August Patch Tuesday
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
project resource management chapter-09.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Programs and apps: productivity, graphics, security and other tools
A novel scalable deep ensemble learning framework for big data classification...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
NewMind AI Weekly Chronicles - August'25-Week II
WOOl fibre morphology and structure.pdf for textiles
Encapsulation theory and applications.pdf
MIND Revenue Release Quarter 2 2025 Press Release
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
A Presentation on Touch Screen Technology
TLE Review Electricity (Electricity).pptx
Group 1 Presentation -Planning and Decision Making .pptx
SOPHOS-XG Firewall Administrator PPT.pptx
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
OMC Textile Division Presentation 2021.pptx
August Patch Tuesday
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
project resource management chapter-09.pdf
A comparative study of natural language inference in Swahili using monolingua...
Encapsulation_ Review paper, used for researhc scholars
Programs and apps: productivity, graphics, security and other tools

process State Models

  • 1. Operating systems By Faizan Iftikhar(F2019376016)
  • 2. Process State Model Process State: Process state defines current State of process. The process states are new, ready, running, waiting, suspended waiting, terminated etc.  There are various process state models in Os.
  • 3. Two State Process Model: “Basically this process state tells whether the process is executing or not”. It may be in two states: 1. Running 2. Not Running
  • 4. Two State Process Model: Explanation:  There will be two conditions in this state.When we start processing,if there will be pause for some reason (i-e I/O,Time Out), then it will go towards “Not Running” procedure which will be named as first condition.  When dispatcher put this process and execution goes complete,then it will go towards “Running” procedure which is second condition. Note: Here we are talking about “Uni-processor”(that deals one process at a time)
  • 5. Five State Process Model In this state,process is considered to be either in all five states.  New State: whenever particular process is created or initialized or programmed in system,kept in new state.  Ready State: The process that is admitted to be execute.  Running State: Current executing process.
  • 6. Five State Process Model: Exit State: The process that is terminated due to some reason or issue. Blocked State: Process waiting for some event such as I/O operations, waiting for other processes etc.
  • 7. Five State Process Model: Diagram:
  • 8. Five State Process Model: Explanation:  Initially programs are in Secondary Memory(New) then it transfers in Main memory (Ready). Dispatch transfer programs to “Running” phase for execution.During execution,when timeout appears (eg: 10 or 20 sec) it movee from running to ready phase.  Whenever process need I/O, then process moves in blocked state (e.g) waits for event occurrence.Whenever particular event goes complete,it go towards “Ready” phase.There it checks or complete task in fixed given time and go in”Running” phase.After completion,it releases or move towards “Exit” procedure.
  • 9. Seven State Process Model: “It is commonly known as Five state process model with two suspended states”.
  • 10. Seven State Process Model: To avoid this, we divide the suspend state into 2 states: Blocked/Suspend: The process is in secondary memory but not yet ready for execution. Ready/Suspend: The process is in secondary memory and ready for execution.