SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

cpu scheduling by shivam singh
cpu scheduling by shivam singhcpu scheduling by shivam singh
cpu scheduling by shivam singh
shivam71291
 
Srt algorithm
Srt algorithmSrt algorithm
Srt algorithm
dianne10
 
Process concept
Process conceptProcess concept
Process concept
jangezkhan
 

Tendances (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
 

Similaire à Computer System Scheduling

Chapter 2 (Part 2)
Chapter 2 (Part 2) Chapter 2 (Part 2)
Chapter 2 (Part 2)
rohassanie
 
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
 

Similaire à 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
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 

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