SlideShare uma empresa Scribd logo
1 de 15
Name - Khushboo Jain
• Program under execution is known as Process.
• Program is passive entity stored on disk
(executable file), process is active.
– Program becomes process when executable file
loaded into memory
• Execution of program started via GUI mouse
clicks, command line entry of its name, etc
 In a multitasking computer system, processes may occupy a
variety of states. These distinct states may not be
recognized as such by the operating system kernel.
However, they are a useful abstraction for the
understanding of processes.
 Execution Condition –
• It should reside in main memory(primary m/m or RAM).
• It should occupy the CPU to execute instruction.
The following typical process states are
possible on computer systems of all kinds.
 In most of these states, processes are
"stored" on main memory.
1. NEW /CREATED
 When a process is first created, it occupies the
"created" or "new" state.
 In this state, the process awaits admission to the
"ready" state.
 Admission will be approved or delayed by a long-
term scheduler (LTS) or job scheduler.
NEW LTS READY
2. READY
 A "ready" or "waiting" process has been loaded
into main memory and is awaiting execution on
a CPU
 In ready state, we will have multiple no. of
processes and one of the processes will be
selected for scheduling on the “running” state.
 Short term scheduler (STS) or CPU scheduler
selects one of the processes from ready state nd
allocates CPU for execution.
READY STS RUNNING
3. RUNNING
 A process moves into the running state when it is
chosen for execution.
 The process is preempted because the OS
decides to schedule some other higher priority
process.
RUNNING READY
4. WAIT OR BLOCK
 The running process , sometimes move to wait or
block state because of following:-
 Process require I/O operation.
 Process request memory and some other resources.
 Process wishes to wait for a specific interval of time.
 Process waits for message or action from some other
process.
RUNNING
I/O
REQUEST
WAIT or
BLOCK
I/O
COMPLETION
READY
STS
5. TERMINATION
 A process may be terminated, either from the
"running" state by completing its execution or by
explicitly being killed.
 The underlying program is no longer executing, but the
process remains in the process table as a zombie
process until its parent process calls the wait system
call to read its exit status, at which point the process is
removed from the process table, finally ending the
process's lifetime.
 If the parent fails to call wait, this continues to
consume the process table entry.
RUNNING TERMINATION
• Two additional states are available for
processes in system.
• In both of these states, processes are "stored"
on secondary memory (typically a hard disk).
1. SUSPEND READY
 When the resources are not sufficient to manage
the processes in ready state then some of the
processes will be suspended and move to
‘Suspend Ready’ state.
 A process may be swapped out, that is, removed
from main memory and placed on external
storage by the Mid term scheduler(MTS).
MAIN
MEMORY
MTS
SECONDARY
MEMORY
2. SUSPEND AND BLOCK
 Also called SWAPPED OUT and BLOCKED.
 In this event the process is both swapped out
and blocked.
 Although in this case, the process will move to
the blocked state, and may still be waiting for a
resource to become available.
Wait or
block
Suspend
wait or
block
Process state in OS
Process state in OS

Mais conteúdo relacionado

Mais procurados

Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9
myrajendra
 

Mais procurados (20)

Peterson Critical Section Problem Solution
Peterson Critical Section Problem SolutionPeterson Critical Section Problem Solution
Peterson Critical Section Problem Solution
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
contiguous memory allocation.pptx
contiguous memory allocation.pptxcontiguous memory allocation.pptx
contiguous memory allocation.pptx
 
Memory management
Memory managementMemory management
Memory management
 
Chapter 3 - Processes
Chapter 3 - ProcessesChapter 3 - Processes
Chapter 3 - Processes
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
 
Memory management
Memory managementMemory management
Memory management
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Process synchronization
Process synchronizationProcess synchronization
Process synchronization
 
Process management os concept
Process management os conceptProcess management os concept
Process management os concept
 
System calls
System callsSystem calls
System calls
 
File handling in c
File handling in cFile handling in c
File handling in c
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9
 
Semophores and it's types
Semophores and it's typesSemophores and it's types
Semophores and it's types
 
Address Binding Scheme
Address Binding SchemeAddress Binding Scheme
Address Binding Scheme
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
 
Process management
Process managementProcess management
Process management
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 

Semelhante a Process state in OS

Operating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - EngineeringOperating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - Engineering
Yogesh Santhan
 
Operating System.ppt
Operating System.pptOperating System.ppt
Operating System.ppt
NitihyaAshwinC
 
Operating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2 (1).pptxOperating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2 (1).pptx
Amanuelmergia
 
Operating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptxOperating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptx
Amanuelmergia
 

Semelhante a Process state in OS (20)

52bf066dbfcc4d739fa99d255dba287a.pptx
52bf066dbfcc4d739fa99d255dba287a.pptx52bf066dbfcc4d739fa99d255dba287a.pptx
52bf066dbfcc4d739fa99d255dba287a.pptx
 
Process management- This ppt contains all required information regarding oper...
Process management- This ppt contains all required information regarding oper...Process management- This ppt contains all required information regarding oper...
Process management- This ppt contains all required information regarding oper...
 
Process , Process states , Process Control Block in Operating Systems
Process , Process states , Process Control Block in Operating SystemsProcess , Process states , Process Control Block in Operating Systems
Process , Process states , Process Control Block in Operating Systems
 
Operating System-Concepts of Process
Operating System-Concepts of ProcessOperating System-Concepts of Process
Operating System-Concepts of Process
 
Process
ProcessProcess
Process
 
Operating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - EngineeringOperating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - Engineering
 
Processing management
Processing managementProcessing management
Processing management
 
OS-Unit-2-Part-1.pptx
OS-Unit-2-Part-1.pptxOS-Unit-2-Part-1.pptx
OS-Unit-2-Part-1.pptx
 
OS-Process.pdf
OS-Process.pdfOS-Process.pdf
OS-Process.pdf
 
The Functions of the Operating System
The Functions of the Operating SystemThe Functions of the Operating System
The Functions of the Operating System
 
Unit 2 part 1(Process)
Unit 2 part 1(Process)Unit 2 part 1(Process)
Unit 2 part 1(Process)
 
Lecture 2- Processes.pdf
Lecture 2- Processes.pdfLecture 2- Processes.pdf
Lecture 2- Processes.pdf
 
Process management1
Process management1Process management1
Process management1
 
UNIT I-Processes.pptx
UNIT I-Processes.pptxUNIT I-Processes.pptx
UNIT I-Processes.pptx
 
Operating System.ppt
Operating System.pptOperating System.ppt
Operating System.ppt
 
Operating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2 (1).pptxOperating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2 (1).pptx
 
Operating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptxOperating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptx
 
Process & Thread Management
Process & Thread  ManagementProcess & Thread  Management
Process & Thread Management
 
Operating system
Operating systemOperating system
Operating system
 
Ch03- PROCESSES.ppt
Ch03- PROCESSES.pptCh03- PROCESSES.ppt
Ch03- PROCESSES.ppt
 

Mais de Khushboo Jain

Mais de Khushboo Jain (6)

Marketing Strategies for an innovative product- customisable antimicrobial be...
Marketing Strategies for an innovative product- customisable antimicrobial be...Marketing Strategies for an innovative product- customisable antimicrobial be...
Marketing Strategies for an innovative product- customisable antimicrobial be...
 
Microeconomic analysis of Samsung
Microeconomic analysis of SamsungMicroeconomic analysis of Samsung
Microeconomic analysis of Samsung
 
stress management by music
stress management by musicstress management by music
stress management by music
 
PPT ON VHDL subprogram,package,alias,use,generate and concurrent statments an...
PPT ON VHDL subprogram,package,alias,use,generate and concurrent statments an...PPT ON VHDL subprogram,package,alias,use,generate and concurrent statments an...
PPT ON VHDL subprogram,package,alias,use,generate and concurrent statments an...
 
Entrepreneurship
EntrepreneurshipEntrepreneurship
Entrepreneurship
 
Hyperloop ppt.
Hyperloop ppt.Hyperloop ppt.
Hyperloop ppt.
 

Último

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 

Último (20)

Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 

Process state in OS

  • 2.
  • 3. • Program under execution is known as Process. • Program is passive entity stored on disk (executable file), process is active. – Program becomes process when executable file loaded into memory • Execution of program started via GUI mouse clicks, command line entry of its name, etc
  • 4.  In a multitasking computer system, processes may occupy a variety of states. These distinct states may not be recognized as such by the operating system kernel. However, they are a useful abstraction for the understanding of processes.  Execution Condition – • It should reside in main memory(primary m/m or RAM). • It should occupy the CPU to execute instruction.
  • 5. The following typical process states are possible on computer systems of all kinds.  In most of these states, processes are "stored" on main memory.
  • 6. 1. NEW /CREATED  When a process is first created, it occupies the "created" or "new" state.  In this state, the process awaits admission to the "ready" state.  Admission will be approved or delayed by a long- term scheduler (LTS) or job scheduler. NEW LTS READY
  • 7. 2. READY  A "ready" or "waiting" process has been loaded into main memory and is awaiting execution on a CPU  In ready state, we will have multiple no. of processes and one of the processes will be selected for scheduling on the “running” state.  Short term scheduler (STS) or CPU scheduler selects one of the processes from ready state nd allocates CPU for execution. READY STS RUNNING
  • 8. 3. RUNNING  A process moves into the running state when it is chosen for execution.  The process is preempted because the OS decides to schedule some other higher priority process. RUNNING READY
  • 9. 4. WAIT OR BLOCK  The running process , sometimes move to wait or block state because of following:-  Process require I/O operation.  Process request memory and some other resources.  Process wishes to wait for a specific interval of time.  Process waits for message or action from some other process. RUNNING I/O REQUEST WAIT or BLOCK I/O COMPLETION READY STS
  • 10. 5. TERMINATION  A process may be terminated, either from the "running" state by completing its execution or by explicitly being killed.  The underlying program is no longer executing, but the process remains in the process table as a zombie process until its parent process calls the wait system call to read its exit status, at which point the process is removed from the process table, finally ending the process's lifetime.  If the parent fails to call wait, this continues to consume the process table entry. RUNNING TERMINATION
  • 11. • Two additional states are available for processes in system. • In both of these states, processes are "stored" on secondary memory (typically a hard disk).
  • 12. 1. SUSPEND READY  When the resources are not sufficient to manage the processes in ready state then some of the processes will be suspended and move to ‘Suspend Ready’ state.  A process may be swapped out, that is, removed from main memory and placed on external storage by the Mid term scheduler(MTS). MAIN MEMORY MTS SECONDARY MEMORY
  • 13. 2. SUSPEND AND BLOCK  Also called SWAPPED OUT and BLOCKED.  In this event the process is both swapped out and blocked.  Although in this case, the process will move to the blocked state, and may still be waiting for a resource to become available. Wait or block Suspend wait or block