Discussion: Scheduling - PowerPoint PPT Presentation

1 / 15
About This Presentation
Title:

Discussion: Scheduling

Description:

Optimum fixed priority scheduler rate monotonic scheduling ... A5: Nonperiodic tasks have no deadlines. EE 249, Fall 2002. 5. Outline ... – PowerPoint PPT presentation

Number of Views:72
Avg rating:3.0/5.0
Slides: 16
Provided by: EEC8
Category:

less

Transcript and Presenter's Notes

Title: Discussion: Scheduling


1
Discussion Scheduling
  • Haibo Zeng
  • Amit Mahajan

2
Outline
  • Problem multi-program scheduling on a single
    processor
  • Optimum fixed priority scheduler rate
    monotonic scheduling
  • Optimum dynamic scheduling algorithm deadline
    driven scheduling
  • Mixed scheduling algorithm

3
Introduction
  • Environment
  • hard-real-time vs. soft-real-time
  • Scheduling
  • Preemptive and priority driven
  • Fixed priority vs. dynamic

4
Assumption of environment
  • A1 The requests for all tasks with hard
    deadlines are periodic
  • A2 Task deadline is its next request
  • A3 The tasks are independent
  • A4 Run-time for each task is constant
  • A5 Nonperiodic tasks have no deadlines

5
Outline
  • Problem multi-program scheduling on a single
    processor
  • Optimum fixed priority scheduler rate
    monotonic scheduling
  • Optimum dynamic scheduling algorithm deadline
    driven scheduling
  • Mixed scheduling algorithm

6
Rate Monotonic Scheduling
  • According to their request rates only
  • Higher request rates, higher priorities
  • Optimum fixed priority scheduling feasible if
    any feasible fixed priority assignment exists
  • Proof
  • Use the concept critical instant to analyze the
    case of scheduling two tasks

7
RMS (contd)
  • Proof
  • Use the concept critical instant to analyze the
    case of scheduling two tasks
  • Result assign higher priorities to task
    with shorter request period independent of
    their run-times.
  • Generalize this result to m tasks

8
RMS (contd)
  • Available Processor Utilization can be as low as
  • Analysis
  • Right hand side of the inequality is monotonic
    decreasing with m

9
RMS (contd)
  • Question
  • Why utilization factor cant reach 100?
  • Answer
  • Processor idle time example
  • Question
  • How to relax the utilization bound?
  • Answer
  • For i1,2,,m-1,
  • Better choice dynamic priority assignment

10
Outline
  • Problem multi-program scheduling on a single
    processor
  • Optimum fixed priority scheduler rate
    monotonic scheduling
  • Optimum dynamic scheduling algorithm deadline
    driven scheduling
  • Mixed scheduling algorithm

11
Deadline Driven Scheduling
  • According to their request rates earliest
    deadline first (EDF)
  • No processor idle time before overflow
  • Schedulable iff processor use is less than 1
  • Optimum scheduling algorithm feasible if any
    feasible assignment exists

12
Outline
  • Problem multi-program scheduling on a single
    processor
  • Optimum fixed priority scheduler rate
    monotonic scheduling
  • Optimum dynamic scheduling algorithm deadline
    driven scheduling
  • Mixed scheduling algorithm

13
Mixed scheduling algorithm
  • Nice for many applications
  • Interrupt hardware fixed priority scheduler
  • Other software tasks dynamic priority scheduler
  • Scheduling algorithm
  • K tasks of shortest periods RMS
  • Remaining slower paced tasks EDF

14
Mixed scheduling algorithm (contd)
  • Comparison with RMS and EDF
  • Still cant reach 100 utilization
  • But much better than RMS
  • Example with 3 tasks
  • T13, T24, T35
  • C11, C21, C31(rate-monotonic), 2(mixed)
  • RMS U 1/3 1/4 1/5 78.3
  • Mixed scheduling algorithm
    U 1/3 1/4 2/5 98.3

15
Questions
  • Overhead we ignored?
  • Dynamic scheduling
  • Preemption
  • If programs are nonterminating, how about the
    resources?
  • Are the assumptions about environment always
    fine?
  • If A1 or A4 dont hold, what do we do?
  • Is A3 suitable for embedded systems?
Write a Comment
User Comments (0)
About PowerShow.com