SlideShare ist ein Scribd-Unternehmen logo
1 von 17
WHAT IS SCHEDULING?????
Scheduling is a set of
policies and
mechanisms to control
the order of work to be
performed by the
system.
SCHEDULER AND DISPATCHER
SCHEDULER:                        DISPATCHER:
The part of an operating system   The operating system component
which assigns resources to        which moves one task at a time
processes, or tasks.              from a ready queue to the run state.
                                  The dispatcher is also referred to as
                                  the short term scheduler.
Fairness: A scheduler makes sure that each process gets
its fair share of the CPU and no process can suffer
indefinite postponement.

Response time: The length of time it takes to react to
a given stimulus or event.

Efficiency:    A level of performance that describes a
process that uses the lowest amount of inputs to create
the greatest amount of outputs.
Turnaround: The process of completing or the time
needed to complete a task, esp. one involving receiving
something, processing it, and sending it.


Throughput: The amount of material or items
passing through a system or process.

Policy Enforcement: The scheduler has to make
sure that system's policy is enforced. For example, if
the local policy is safety then the safety control
processes must be able to run whenever they want to.
Process States
   New                                 Terminated




          Ready              Running




                  Waiting




                  Swapping
Continued….
 New: A file is loaded from storage to memory.
 Ready: Process has been loaded into main
  memory and is awaiting execution on a CPU.
 Running: A process moves into the running
  state when it is chosen for execution.
 Swapping: Moving the process from main
  memory to virtual memory.
 Terminated: Either from the "running" state
  by completing its execution or by explicitly being
  killed.
SCHEDULING LEVELS
LONG TERM SCHEDULER:
The part of an operating system which
places new tasks into the ready state.


SHORT TERM SCHEDULER:
The short-term scheduler, decides which of
the ready in-memory processes are to be
executed next.
It makes decisions more frequently than
long term scheduler
PREEMPTIVE & NONPREEMPTIVE SCHEDULING
PREEMPTIVE SCHEDULING:
Operating system act of interrupting a
running task, removing it from the run
state, and placing it in the ready state.
Modern operating systems are typically
preemptive. In this type of scheduling the
priority of a process is gradually reduced
while it is running.

NON PREEMPTIVE SCHEDULING:
When process gets into CPU, it keeps it until
it goes into Wait or terminates. It allows a
task to remain in the run state until it
voluntarily blocks or completes.
Priority


   Shortest                              Priority
  Remaining                               Aging
    Time




                    Scheduling
                    Algorithms
 Fair
                                               FIFO
Share




                                 Round
              SJF                Robin
Priority……

 Processes scheduling in which
  the scheduler selects tasks to run based on
  their priority.
 A danger of priority scheduling is starvation,
  in which processes with lower priorities are
  not given the opportunity to run.
Types of Priorities
A priority which is not
automatically adjusted by the
system. It can be changed by a
User or Super user.


A priority which is adjusted
automatically by the system
according to task behavior and
system loading. It improves
response time and eliminate
indefinite postponent.
Shortest Remaining Time: A scheduling policy which
  schedules tasks in ascending order of estimated
  remaining processing time.

FIFO (First In First Out): A scheduling policy which
  schedules tasks in the same order in which they enter
  the ready state.

Round Robin: A scheduling policy which scheduleses
  tasks in a fixed circular order. It is used for time
  sharing users.
Priority Aging: A process which dynamically raises the
  priority of a task according to the time it has been
  waiting in the ready queue.

SJF (Shortest Job First): A scheduling policy which
  schedules tasks in ascending order of estimated
  processing time.

Fair Share: A scheduling policy which assigns tasks to
  groups, and allocates a percentage of CPU time to
  each group.
Real Time Scheduling
A system which must respond in real
time to changing conditions. Real
time systems are used for
controlling industrial processes, cars,
robots, and other time critical
applications. They have fixed sets of
tasks. Reliability is also an important
goal for real time systems.
Presentation by: Mubeen Furqan Ahmed

Weitere ähnliche Inhalte

Was ist angesagt?

Operating System-Process Scheduling
Operating System-Process SchedulingOperating System-Process Scheduling
Operating System-Process SchedulingShipra Swati
 
Operating System
Operating SystemOperating System
Operating SystemGowriLatha1
 
OPERATING SYSTEM-"Scheduling policies"
OPERATING SYSTEM-"Scheduling policies"OPERATING SYSTEM-"Scheduling policies"
OPERATING SYSTEM-"Scheduling policies"Ankit Surti
 
Process scheduling algorithms
Process scheduling algorithmsProcess scheduling algorithms
Process scheduling algorithmsShubham Sharma
 
Operating System Scheduling
Operating System SchedulingOperating System Scheduling
Operating System SchedulingVishnu Prasad
 
cpu scheduling by shivam singh
cpu scheduling by shivam singhcpu scheduling by shivam singh
cpu scheduling by shivam singhshivam71291
 
Processor management
Processor managementProcessor management
Processor managementdev3993
 
Operating system 28 fundamental of scheduling
Operating system 28 fundamental of schedulingOperating system 28 fundamental of scheduling
Operating system 28 fundamental of schedulingVaibhav Khanna
 
Srt algorithm
Srt algorithmSrt algorithm
Srt algorithmdianne10
 
CSI-503 - 2. Processor Management
CSI-503 - 2. Processor ManagementCSI-503 - 2. Processor Management
CSI-503 - 2. Processor Managementghayour abbas
 
Operating System-Concepts of Process
Operating System-Concepts of ProcessOperating System-Concepts of Process
Operating System-Concepts of ProcessShipra Swati
 
Real Time Operating Systems for Embedded Systems
Real Time Operating Systems for Embedded SystemsReal Time Operating Systems for Embedded Systems
Real Time Operating Systems for Embedded SystemsAditya Vichare
 
Process concept
Process conceptProcess concept
Process conceptjangezkhan
 

Was ist angesagt? (19)

Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Operating System-Process Scheduling
Operating System-Process SchedulingOperating System-Process Scheduling
Operating System-Process Scheduling
 
Operating System
Operating SystemOperating System
Operating System
 
OPERATING SYSTEM-"Scheduling policies"
OPERATING SYSTEM-"Scheduling policies"OPERATING SYSTEM-"Scheduling policies"
OPERATING SYSTEM-"Scheduling policies"
 
Process scheduling algorithms
Process scheduling algorithmsProcess scheduling algorithms
Process scheduling algorithms
 
Operating System Scheduling
Operating System SchedulingOperating System Scheduling
Operating System Scheduling
 
Processing management
Processing managementProcessing management
Processing management
 
Process state in OS
Process state in OSProcess state in OS
Process state in OS
 
cpu scheduling by shivam singh
cpu scheduling by shivam singhcpu scheduling by shivam singh
cpu scheduling by shivam singh
 
Processor management
Processor managementProcessor management
Processor management
 
Operating system 28 fundamental of scheduling
Operating system 28 fundamental of schedulingOperating system 28 fundamental of scheduling
Operating system 28 fundamental of scheduling
 
Srt algorithm
Srt algorithmSrt algorithm
Srt algorithm
 
OS Chapter03
OS Chapter03OS Chapter03
OS Chapter03
 
CSI-503 - 2. Processor Management
CSI-503 - 2. Processor ManagementCSI-503 - 2. Processor Management
CSI-503 - 2. Processor Management
 
Operating System-Concepts of Process
Operating System-Concepts of ProcessOperating System-Concepts of Process
Operating System-Concepts of Process
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Real Time Operating Systems for Embedded Systems
Real Time Operating Systems for Embedded SystemsReal Time Operating Systems for Embedded Systems
Real Time Operating Systems for Embedded Systems
 
Process concept
Process conceptProcess concept
Process concept
 
Real time system tsp
Real time system tspReal time system tsp
Real time system tsp
 

Ähnlich wie Computer System Scheduling

LM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesLM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesmanideepakc
 
Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Shreya Kumar
 
Chapter 2 (Part 2)
Chapter 2 (Part 2) Chapter 2 (Part 2)
Chapter 2 (Part 2) rohassanie
 
CSI-503 - 13. Scheduler and Dispatcher
CSI-503 - 13. Scheduler and Dispatcher CSI-503 - 13. Scheduler and Dispatcher
CSI-503 - 13. Scheduler and Dispatcher ghayour abbas
 
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...ApurvaLaddha
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.pptansariparveen06
 
In computing, scheduling is the action .
In computing, scheduling is the action .In computing, scheduling is the action .
In computing, scheduling is the action .nathansel1
 
Processor / CPU Scheduling
Processor / CPU SchedulingProcessor / CPU Scheduling
Processor / CPU SchedulingIzaz Roghani
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Real time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CSReal time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CSThanveen
 
Process scheduling.pptx
Process scheduling.pptxProcess scheduling.pptx
Process scheduling.pptxMSivani
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentationusmankiyani1
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process managementArnav Chowdhury
 

Ähnlich wie Computer System Scheduling (20)

LM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesLM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processes
 
Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.
 
Lecture 4 process cpu scheduling
Lecture 4   process cpu schedulingLecture 4   process cpu scheduling
Lecture 4 process cpu scheduling
 
scheduling
schedulingscheduling
scheduling
 
Chapter 2 (Part 2)
Chapter 2 (Part 2) Chapter 2 (Part 2)
Chapter 2 (Part 2)
 
CSI-503 - 13. Scheduler and Dispatcher
CSI-503 - 13. Scheduler and Dispatcher CSI-503 - 13. Scheduler and Dispatcher
CSI-503 - 13. Scheduler and Dispatcher
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.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...
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.ppt
 
pscheduling.ppt
pscheduling.pptpscheduling.ppt
pscheduling.ppt
 
In computing, scheduling is the action .
In computing, scheduling is the action .In computing, scheduling is the action .
In computing, scheduling is the action .
 
Processor / CPU Scheduling
Processor / CPU SchedulingProcessor / CPU Scheduling
Processor / CPU Scheduling
 
Osy ppt - Copy.pptx
Osy ppt - Copy.pptxOsy ppt - Copy.pptx
Osy ppt - Copy.pptx
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
Real time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CSReal time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CS
 
Process scheduling.pptx
Process scheduling.pptxProcess scheduling.pptx
Process scheduling.pptx
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
 
OS-Process.pdf
OS-Process.pdfOS-Process.pdf
OS-Process.pdf
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
 

Kürzlich hochgeladen

Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 

Kürzlich hochgeladen (20)

Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 

Computer System Scheduling

  • 1.
  • 2. WHAT IS SCHEDULING????? Scheduling is a set of policies and mechanisms to control the order of work to be performed by the system.
  • 3. SCHEDULER AND DISPATCHER SCHEDULER: DISPATCHER: The part of an operating system The operating system component which assigns resources to which moves one task at a time processes, or tasks. from a ready queue to the run state. The dispatcher is also referred to as the short term scheduler.
  • 4.
  • 5. Fairness: A scheduler makes sure that each process gets its fair share of the CPU and no process can suffer indefinite postponement. Response time: The length of time it takes to react to a given stimulus or event. Efficiency: A level of performance that describes a process that uses the lowest amount of inputs to create the greatest amount of outputs.
  • 6. Turnaround: The process of completing or the time needed to complete a task, esp. one involving receiving something, processing it, and sending it. Throughput: The amount of material or items passing through a system or process. Policy Enforcement: The scheduler has to make sure that system's policy is enforced. For example, if the local policy is safety then the safety control processes must be able to run whenever they want to.
  • 7. Process States New Terminated Ready Running Waiting Swapping
  • 8. Continued….  New: A file is loaded from storage to memory.  Ready: Process has been loaded into main memory and is awaiting execution on a CPU.  Running: A process moves into the running state when it is chosen for execution.  Swapping: Moving the process from main memory to virtual memory.  Terminated: Either from the "running" state by completing its execution or by explicitly being killed.
  • 9. SCHEDULING LEVELS LONG TERM SCHEDULER: The part of an operating system which places new tasks into the ready state. SHORT TERM SCHEDULER: The short-term scheduler, decides which of the ready in-memory processes are to be executed next. It makes decisions more frequently than long term scheduler
  • 10. PREEMPTIVE & NONPREEMPTIVE SCHEDULING PREEMPTIVE SCHEDULING: Operating system act of interrupting a running task, removing it from the run state, and placing it in the ready state. Modern operating systems are typically preemptive. In this type of scheduling the priority of a process is gradually reduced while it is running. NON PREEMPTIVE SCHEDULING: When process gets into CPU, it keeps it until it goes into Wait or terminates. It allows a task to remain in the run state until it voluntarily blocks or completes.
  • 11. Priority Shortest Priority Remaining Aging Time Scheduling Algorithms Fair FIFO Share Round SJF Robin
  • 12. Priority……  Processes scheduling in which the scheduler selects tasks to run based on their priority.  A danger of priority scheduling is starvation, in which processes with lower priorities are not given the opportunity to run.
  • 13. Types of Priorities A priority which is not automatically adjusted by the system. It can be changed by a User or Super user. A priority which is adjusted automatically by the system according to task behavior and system loading. It improves response time and eliminate indefinite postponent.
  • 14. Shortest Remaining Time: A scheduling policy which schedules tasks in ascending order of estimated remaining processing time. FIFO (First In First Out): A scheduling policy which schedules tasks in the same order in which they enter the ready state. Round Robin: A scheduling policy which scheduleses tasks in a fixed circular order. It is used for time sharing users.
  • 15. Priority Aging: A process which dynamically raises the priority of a task according to the time it has been waiting in the ready queue. SJF (Shortest Job First): A scheduling policy which schedules tasks in ascending order of estimated processing time. Fair Share: A scheduling policy which assigns tasks to groups, and allocates a percentage of CPU time to each group.
  • 16. Real Time Scheduling A system which must respond in real time to changing conditions. Real time systems are used for controlling industrial processes, cars, robots, and other time critical applications. They have fixed sets of tasks. Reliability is also an important goal for real time systems.
  • 17. Presentation by: Mubeen Furqan Ahmed