ITFN 2601 Introduction to Operating Systems - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

ITFN 2601 Introduction to Operating Systems

Description:

Real-Time. Threads. Scheduling. Process Conditions. Processor Bound ... Iff the sum of the ratios CPU Time to Period time is less than one. Sum(CPU/Period) = 1 ... – PowerPoint PPT presentation

Number of Views:21
Avg rating:3.0/5.0
Slides: 12
Provided by: daniels80
Category:

less

Transcript and Presenter's Notes

Title: ITFN 2601 Introduction to Operating Systems


1
ITFN 2601Introduction to Operating Systems
  • Lecture 4/5
  • Scheduling

2
Agenda
  • Scheduling
  • Batch
  • Interactive
  • Real-Time
  • Threads

3
Scheduling
  • Process Conditions
  • Processor Bound
  • I/O Bound
  • Scheduling how?
  • Pre-emptive
  • Non-pre-emptive

4
Scheduler Goals
  • Generic Goals
  • Fairness of processor allocation
  • Enforcement of Scheduling Policies
  • Balance of utilization
  • Batch-based Goals
  • Maximize throughput of jobs
  • Minimize turnaround on jobs

5
Scheduler Goals II
  • Interactive System Goals
  • Minimize response time for user I/O
  • User expectations should be met
  • Real-time System Goals
  • Deadlines must be met for Process Completion
  • System Performance must be predictable

6
Scheduling Algorithms(Batch)
  • FIFO (First In First Out) NON-PREEMPTIVE
  • Fairest
  • Low throughput
  • High Turnaround
  • Shortest First NON-PREEMPTIVE
  • High Throughput
  • Low Turnaround
  • Unfair for Large Jobs

7
Scheduling Algorithms(Batch, cont)
  • Shortest Remaining - PREEMPTIVE
  • High Turnaround on Long Jobs
  • Unfair for Large Jobs
  • Multi-Scheduling (CPU or Memory Limited)
  • HIGH Turnaround (disk swaps)
  • Throughput highly variable, probably low
  • Fairness highly variable

8
Scheduling Algorithms(Interactive)
  • Round Robin - PREEMPTIVE
  • Fairest overall
  • Response time variable but finite
  • Priority Scheduling - PREEMPTIVE
  • Fair
  • More Fair for users with higher priorities
  • Response time inverse to priority
  • Windows/Unix typically implement this

9
Round Robin, Example
10
Scheduling Algorithms(Real-Time)
  • Small Jobs
  • High Priority
  • Periodic/Aperiodic
  • Schedulable?
  • Iff the sum of the ratios CPU Time to Period time
    is less than one
  • Sum(CPU/Period) lt 1
  • Static/Dynamic?

11
Summary
  • Scheduler responsible for many goals
  • Scheduling algorithms complex
  • Know your math!
Write a Comment
User Comments (0)
About PowerShow.com