ECE 695 Embedded Systems Winter 2006 - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

ECE 695 Embedded Systems Winter 2006

Description:

T1k = k * tm ... In reality, it is the time the next scheduled task must start k*tm e1 ... Under certain conditions, can run periodic systems ... – PowerPoint PPT presentation

Number of Views:35
Avg rating:3.0/5.0
Slides: 13
Provided by: johng49
Category:
Tags: ece | embedded | systems | winter

less

Transcript and Presenter's Notes

Title: ECE 695 Embedded Systems Winter 2006


1
ECE 695 Embedded SystemsWinter 2006
  • Session 7

2
Summary to Date
  • Foreground/Background Schedules
  • Clock driven
  • Deterministic
  • Frame based
  • Static
  • Advantages
  • Hard deadline management
  • Best periodic performance
  • Disadvantages
  • Manual schedule development
  • Difficult to develop for large number of tasks
  • Difficult to integrate aperiodic task handling

3
Timing Constraints
  • Release Time
  • Time when task becomes available for execution
  • Foreground/background approach
  • Available at start of minor frame (when scheduled
    in minor frame)
  • E.g. task 1 executes in every minor frame
  • T1k k tm
  • That is, the release time for the kth iteration
    of task 1(T1) is obtained by multiplying the
    minor frame time (tm) by k.
  • Deadline
  • Time when task must be completed
  • In the example above, the absolute deadline is
    the start of the next minor frame (k1) tm
  • In reality, it is the time the next scheduled
    task must startktme1
  • Where e1is the execution time of task 1

4
Timing Constraints (cont)
  • Response time
  • For aperiodic tasks, may be more natural to talk
    about response time
  • Define as length of time between release time and
    completion
  • Maximum allowable response time called relative
    deadline
  • In our class examples, aperiodic events were
    detected and the task was placed in a queue to
    run when there was time
  • Release time is the time it is placed in the
    queue
  • We have not been concerned with response time so
    far.

5
Clock Driven Scheduling
  • Examples drawn from clock driven,
    foreground/background schdules
  • Terms not very useful for scheduling purposes
  • Period and execution time more important
  • Constraints applicable for event driven
    scheduling

6
Consider Event Driven Scheduling
  • Periodic Tasks
  • Assumptions
  • Tasks are independent
  • No aperiodic tasks for now
  • Schedule based on priority
  • Assume static priorities
  • Most current real-time systems use static
    priorities
  • Priority may be assigned apriori or when a task
    is released

7
Periodic ScheduleFrame Based
8
Timing Constraints
  • Release Timetasks in minor frame 5
  • T45 5 tm
  • T25 5 tm e4
  • T15 5 tm e1
  • T155 5 tm e15

9
Priority Scheduling of Periodic Tasks
  • Rate Monotonic Scheduling
  • Priorities assigned based on task period
  • Shorter the period, the higher the priority
  • Since rate is inverse of period, higher rate
    means higher priority

10
Consider the Example
11
Exercise
  • Construct a rate monotonic schedule from this
    example

12
What does all this mean
  • Event driven systems require scheduling software
  • Schedules built on line (as events occur)
  • Under certain conditions, can run periodic
    systems
  • This is usually the realm of the Real-Time
    Operating System (RTOS)
  • We will consider the RTOS next time
Write a Comment
User Comments (0)
About PowerShow.com