SlideShare a Scribd company logo
L-5 BCEProcess management.ppt
 Process State
 Process Control Block
 Operations on Processes
 Process Scheduling
 Process Synchronisation
 Interprocess Communication
 An operating system executes a variety of programs:
Batch system – jobs
Time-shared systems – user programs or tasks
 Process – a program in execution;
process execution must progress in
sequential fashion
 CPU executes a single process at a time instance.
 Process related terminology
Process code : set of instruction at a time instance.
Process associated data
Process Components: Resources required for execution.
Process state
 As a process executes, it changes state
◦ new: The process is being created
◦ running: Instructions are being executed
◦ waiting: The process is waiting for some event to occur
◦ ready: The process is waiting to be assigned to a
processor
◦ terminated: The process has finished execution
L-5 BCEProcess management.ppt
Information associated with each process
(also called task control block)
 Process state – running, waiting, etc
 Program counter – location of
instruction to next execute
 CPU registers – contents of all process-
centric registers
 CPU scheduling information-
priorities, scheduling queue pointers
 Memory-management information –
memory allocated to the process
 Accounting information – CPU used,
clock time elapsed since start, time
limits
 I/O status information – I/O devices
allocated to process, list of open files
 Maximize CPU use, quickly switch processes onto CPU
for time sharing
 Process scheduler selects among available processes for
next execution on CPU
 Maintains scheduling queues of processes
◦ Job queue – set of all processes in the system
◦ Ready queue – set of all processes residing in main
memory, ready and waiting to execute
◦ Device queues – set of processes waiting for an I/O
device
◦ Processes migrate among the various queues
 Short-term scheduler (or CPU scheduler) – selects which process
should be executed next and allocates CPU.
 READY RUNNING
 Long-term Scheduler (or job scheduler) – selects which processes
should be brought into the ready queue.
 NEW READY
 RUNNING TERMINATING
 Mid-Term Scheduler-Moves process from main memory to secondary
memory during waiting state and vice versa
RUNNING WAITING
WAITING READY
 System must provide mechanisms for:
◦ process creation,
◦ process termination,
◦ and so on as detailed next
 Parent process create children processes,
which, in turn create other processes, forming
a tree of processes
 Generally, process identified and managed via
a process identifier (pid)
 Resource sharing options
◦ Parent and children share all resources
◦ Children share subset of parent’s resources
◦ Parent and child share no resources
 Execution options
◦ Parent and children execute concurrently
◦ Parent waits until children terminate
init
pid = 1
sshd
pid = 3028
login
pid = 8415
kthreadd
pid = 2
sshd
pid = 3610
pdflush
pid = 200
khelper
pid = 6
tcsch
pid = 4005
emacs
pid = 9204
bash
pid = 8416
ps
pid = 9298
 Processes within a system may be independent or
cooperating
 Cooperating process can affect or be affected by other
processes, including sharing data
 Reasons for cooperating processes:
◦ Information sharing
◦ Computation speedup
◦ Modularity
◦ Convenience
 Cooperating processes need interprocess communication
(IPC)
 Two models of IPC
◦ Shared memory
◦ Message passing
(a) Message passing. (b) shared memory.
Multiple process wait for each other to free up resources
and all the process remains in halt (waiting state)

More Related Content

PPTX
Operating system 18 process creation and termination
PPT
OS_Unit_II_Ch3 Process and CPU Scheduling
PDF
Process Management.pdf
PPTX
OS_Unit II - Process Management_CATI.pptx
PDF
process.pdfzljwiyrouyaeutoaetodtusiokklhh
PPT
Ch03- PROCESSES.ppt
PPTX
operating system module 2 presentation notes
DOCX
Process concept
Operating system 18 process creation and termination
OS_Unit_II_Ch3 Process and CPU Scheduling
Process Management.pdf
OS_Unit II - Process Management_CATI.pptx
process.pdfzljwiyrouyaeutoaetodtusiokklhh
Ch03- PROCESSES.ppt
operating system module 2 presentation notes
Process concept

Similar to L-5 BCEProcess management.ppt (20)

PPT
PDF
OS-Process.pdf
PPT
Operating System
PPTX
Os unit 3 , process management
PDF
unit-2.pdf
PPTX
Unit 1 process management operating system.pptx
PDF
operating systems classification university lec 2
PPTX
Processes
PPTX
ch2nvbjdvsbjbjfjjfjf j Process Mangement.pptx
PDF
UNIT - 3 PPT(Part- 1)_.pdf
PPTX
UNIT I-Processes.pptx
PPTX
Process management1
PDF
Cs8493 unit 2
PPTX
Operating System Periodic Test 1 Answers.pptx
PPTX
Operating System Periodic test answers t
PPTX
Operating System Periodic Test 1 Answers
PPTX
UNIT 2 OS.pptx Introduction of Operating System
PDF
Chapter 3.pdf
PPTX
Operating Systems - Lecture processmanagement.pptx
PPTX
Operating system 17 process management
OS-Process.pdf
Operating System
Os unit 3 , process management
unit-2.pdf
Unit 1 process management operating system.pptx
operating systems classification university lec 2
Processes
ch2nvbjdvsbjbjfjjfjf j Process Mangement.pptx
UNIT - 3 PPT(Part- 1)_.pdf
UNIT I-Processes.pptx
Process management1
Cs8493 unit 2
Operating System Periodic Test 1 Answers.pptx
Operating System Periodic test answers t
Operating System Periodic Test 1 Answers
UNIT 2 OS.pptx Introduction of Operating System
Chapter 3.pdf
Operating Systems - Lecture processmanagement.pptx
Operating system 17 process management

More from Kirti Verma (20)

PPTX
WORD SENSE DISAMIGUITION, methods to resolve WSD, wordnet,
PPTX
Probabilistic parsing, Parsing In NLP ,Context Free grammer
PPTX
feature structure and unification NLP,what is Unification, Feture structure i...
PPTX
Grammar rules in English, Dependency Parsing, Shallow parsing
PPTX
Role of Parser Words & Word Groups Parsing in NL, Types of parsing, Parsing A...
PPTX
Words _Transducers Finite state transducers in natural language processing
PPTX
Regular-expressions in NLP and regular expression with example
PPTX
NLP Introduction , applications, NLP Pipeline, Steps in NLP
PPT
L-3 BCE OS FINAL.ppt
PPT
L-4 BCE Generations of Computers final.ppt
PPT
L-1 BCE computer fundamentals final kirti.ppt
PPT
BCE L-4 Data Type In C++.ppt
PPT
BCE L-3 overview of C++.ppt
PPT
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
PPTX
BCE L-1 Programmimg languages.pptx
PPTX
BCE L-1 networking fundamentals 111.pptx
PPTX
BCE L-2 e commerce.pptx
PPTX
BCE L-3omputer security Basics.pptx
PPTX
L 5 Numpy final learning and Coding
PPTX
L 2 Introduction to Data science
WORD SENSE DISAMIGUITION, methods to resolve WSD, wordnet,
Probabilistic parsing, Parsing In NLP ,Context Free grammer
feature structure and unification NLP,what is Unification, Feture structure i...
Grammar rules in English, Dependency Parsing, Shallow parsing
Role of Parser Words & Word Groups Parsing in NL, Types of parsing, Parsing A...
Words _Transducers Finite state transducers in natural language processing
Regular-expressions in NLP and regular expression with example
NLP Introduction , applications, NLP Pipeline, Steps in NLP
L-3 BCE OS FINAL.ppt
L-4 BCE Generations of Computers final.ppt
L-1 BCE computer fundamentals final kirti.ppt
BCE L-4 Data Type In C++.ppt
BCE L-3 overview of C++.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-1 Programmimg languages.pptx
BCE L-1 networking fundamentals 111.pptx
BCE L-2 e commerce.pptx
BCE L-3omputer security Basics.pptx
L 5 Numpy final learning and Coding
L 2 Introduction to Data science

Recently uploaded (20)

PDF
Classroom Observation Tools for Teachers
PPTX
Cell Types and Its function , kingdom of life
PDF
Basic Mud Logging Guide for educational purpose
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
master seminar digital applications in india
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Cell Structure & Organelles in detailed.
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
Complications of Minimal Access Surgery at WLH
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Institutional Correction lecture only . . .
Classroom Observation Tools for Teachers
Cell Types and Its function , kingdom of life
Basic Mud Logging Guide for educational purpose
Anesthesia in Laparoscopic Surgery in India
Module 4: Burden of Disease Tutorial Slides S2 2025
master seminar digital applications in india
VCE English Exam - Section C Student Revision Booklet
Microbial disease of the cardiovascular and lymphatic systems
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Cell Structure & Organelles in detailed.
human mycosis Human fungal infections are called human mycosis..pptx
RMMM.pdf make it easy to upload and study
Complications of Minimal Access Surgery at WLH
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
01-Introduction-to-Information-Management.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Institutional Correction lecture only . . .

L-5 BCEProcess management.ppt

  • 2.  Process State  Process Control Block  Operations on Processes  Process Scheduling  Process Synchronisation  Interprocess Communication
  • 3.  An operating system executes a variety of programs: Batch system – jobs Time-shared systems – user programs or tasks  Process – a program in execution; process execution must progress in sequential fashion  CPU executes a single process at a time instance.  Process related terminology Process code : set of instruction at a time instance. Process associated data Process Components: Resources required for execution. Process state
  • 4.  As a process executes, it changes state ◦ new: The process is being created ◦ running: Instructions are being executed ◦ waiting: The process is waiting for some event to occur ◦ ready: The process is waiting to be assigned to a processor ◦ terminated: The process has finished execution
  • 6. Information associated with each process (also called task control block)  Process state – running, waiting, etc  Program counter – location of instruction to next execute  CPU registers – contents of all process- centric registers  CPU scheduling information- priorities, scheduling queue pointers  Memory-management information – memory allocated to the process  Accounting information – CPU used, clock time elapsed since start, time limits  I/O status information – I/O devices allocated to process, list of open files
  • 7.  Maximize CPU use, quickly switch processes onto CPU for time sharing  Process scheduler selects among available processes for next execution on CPU  Maintains scheduling queues of processes ◦ Job queue – set of all processes in the system ◦ Ready queue – set of all processes residing in main memory, ready and waiting to execute ◦ Device queues – set of processes waiting for an I/O device ◦ Processes migrate among the various queues
  • 8.  Short-term scheduler (or CPU scheduler) – selects which process should be executed next and allocates CPU.  READY RUNNING  Long-term Scheduler (or job scheduler) – selects which processes should be brought into the ready queue.  NEW READY  RUNNING TERMINATING  Mid-Term Scheduler-Moves process from main memory to secondary memory during waiting state and vice versa RUNNING WAITING WAITING READY
  • 9.  System must provide mechanisms for: ◦ process creation, ◦ process termination, ◦ and so on as detailed next
  • 10.  Parent process create children processes, which, in turn create other processes, forming a tree of processes  Generally, process identified and managed via a process identifier (pid)  Resource sharing options ◦ Parent and children share all resources ◦ Children share subset of parent’s resources ◦ Parent and child share no resources  Execution options ◦ Parent and children execute concurrently ◦ Parent waits until children terminate
  • 11. init pid = 1 sshd pid = 3028 login pid = 8415 kthreadd pid = 2 sshd pid = 3610 pdflush pid = 200 khelper pid = 6 tcsch pid = 4005 emacs pid = 9204 bash pid = 8416 ps pid = 9298
  • 12.  Processes within a system may be independent or cooperating  Cooperating process can affect or be affected by other processes, including sharing data  Reasons for cooperating processes: ◦ Information sharing ◦ Computation speedup ◦ Modularity ◦ Convenience  Cooperating processes need interprocess communication (IPC)  Two models of IPC ◦ Shared memory ◦ Message passing
  • 13. (a) Message passing. (b) shared memory.
  • 14. Multiple process wait for each other to free up resources and all the process remains in halt (waiting state)