Docsity

Considerations for Multiprocessor and Power-Aware Scheduling in WCET Analysis, Essays (university) of Computer Science

Partial preview of the text

Download Considerations for Multiprocessor and Power-Aware Scheduling in WCET Analysis and more Essays (university) Computer Science in PDF only on Docsity!

Real-Time Systems and Programming Languages © Alan Burns and Andy Wellings

 To understand the role that scheduling and schedulability analysis plays in predicting that real-time applications meet their deadlines  To understand the cyclic executive approach and its limitations  To introduce process-based scheduling and distinguish between the various approaches available

 To understand how response time analysis can be extended to cope with blocking of resources  To explain priority inversion, priority inheritance and ceiling protocols  To show that response-time analysis is flexible enough to cope with many application demands by simple extensions  (^) To cover Earliest Deadline First (EDF) scheduling

 To briefly consider dynamic scheduling  To provide an overview of the issues related to Worst-Case Execution Time (WCET) analysis  Consideration of multiprocessor scheduling  Consideration of power-aware scheduling  System overhead estimation

 (^) One common way of implementing hard real-time systems is to use a cyclic executive  Here the design is concurrent but the code is produced as a collection of procedures  (^) Procedures are mapped onto a set of minor cycles that constitute the complete schedule (or major cycle)  (^) Minor cycle dictates the minimum cycle time  (^) Major cycle dictates the maximum cycle time Has the advantage of being fully deterministic Has the advantage of being fully deterministic

Task Period,T Computation Time,C

  • a
  • b
  • c
  • d
  • e

 No actual tasks exist at run-time; each minor cycle is just a sequence of procedure calls  The procedures share a common address space and can thus pass data between themselves. This data does not need to be protected (via a semaphore, for example) because concurrent access is not possible

 All “ task” periods must be a multiple of the minor cycle time  The difficulty of incorporating tasks with long periods; the major cycle time is the maximum period that can be accommodated without secondary schedules  Sporadic activities are difficult (impossible!) to incorporate  The cyclic executive is difficult to construct and difficult to maintain — it is a NP-hard problem

 (^) Tasks exist at run-time  (^) Supported by real-time OS or run-time  Each task is:  (^) Runnable (and possible running), or  (^) Suspended waiting for a timing event  (^) Suspended waiting for a non-timing event

 (^) Scheduling approaches 

Fixed-Priority Scheduling (FPS)

Earliest Deadline First (EDF)

Value-Based Scheduling (VBS)

 The runnable tasks are executed in the order determined by the absolute deadlines of the tasks  The next task to run being the one with the shortest (nearest) deadline  Although it is usual to know the relative deadlines of each task (e.g. 25ms after release), the absolute deadlines are computed at run time and hence the scheme is described as dynamic

 If a system can become overloaded then the use of simple static priorities or deadlines is not sufficient; a more adaptive scheme is needed  This often takes the form of assigning a value to each task and employing an on- line value-based scheduling algorithm to decide which task to run next

 (^) Sufficient – pass the test will meet deadlines  Necessary – fail the test will miss deadlines  Exact – necessary and sufficient  Sustainable – system stays schedulable if conditions ‘improve’

 (^) The application is assumed to consist of a fixed set of tasks  All tasks are periodic, with known periods  The tasks are completely independent of each other  All system's overheads, context-switching times and so on are ignored (i.e, assumed to have zero cost)  (^) All tasks have a deadline equal to their period (that is, each task must complete before it is next released)  All tasks have a fixed worst-case execution time