Deterministic Scheduling

Slides:



Advertisements
Similar presentations
Algorithm Design Methods (I) Fall 2003 CSE, POSTECH.
Advertisements

Algorithm Design Methods Spring 2007 CSE, POSTECH.
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM.
Lecture 6: Job Shop Scheduling Introduction
CPE555A: Real-Time Embedded Systems
Mehdi Kargahi School of ECE University of Tehran
ISE480 Sequencing and Scheduling Izmir University of Economics ISE Fall Semestre.
Mapping of Applications to Platforms Peter Marwedel TU Dortmund, Informatik 12 Germany Graphics: © Alexandra Nolte, Gesine Marwedel, 2003 These slides.
From HRT-HOOD to ADA95 Real-Time Systems Lecture 5 Copyright, 2001 © Adam Czajka.
Lateness Models Contents
SCHEDULING Critical Activities are: B, F, I, M, Q.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Dynamic Planning Based Scheduling.
1 Swiss Federal Institute of Technology Computer Engineering and Networks Laboratory Embedded Systems Exercise 2: Scheduling Real-Time Aperiodic Tasks.
Tasks Periodic The period is the amount of time between each iteration of a regularly repeated task Time driven The task is automatically activated by.
Spring, Scheduling Operations. Spring, Scheduling Problems in Operations Job Shop Scheduling. Personnel Scheduling Facilities Scheduling.
1 IOE/MFG 543 Chapter 3: Single machine models (Sections 3.1 and 3.2)
Chapter 6 Dynamic Priority Servers
1 Single Machine Deterministic Models Jobs: J 1, J 2,..., J n Assumptions: The machine is always available throughout the scheduling period. The machine.
Project Scheduling The Critical Path Method (CPM).
CSE 421 Algorithms Richard Anderson Lecture 6 Greedy Algorithms.
Embedded Systems Exercise 3: Scheduling Real-Time Periodic and Mixed Task Sets 18. May 2005 Alexander Maxiaguine.
Aperiodic Task Scheduling
1 IOE/MFG 543 Chapter 10: Single machine stochastic models Sections 10.1 and 10.4 You may skip Sections
Real Time Operating Systems Scheduling & Schedulers Course originally developed by Maj Ron Smith 8-Oct-15 Dr. Alain Beaulieu Scheduling & Schedulers- 7.
Scheduling policies for real- time embedded systems.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 20 3/3/2006 Shahrooz Feizabadi.
1 Short Term Scheduling. 2  Planning horizon is short  Multiple unique jobs (tasks) with varying processing times and due dates  Multiple unique jobs.
CS244-Introduction to Embedded Systems and Ubiquitous Computing Instructor: Eli Bozorgzadeh Computer Science Department UC Irvine Winter 2010.
6. Application mapping 6.1 Problem definition
Outline Introduction Minimizing the makespan Minimizing total flowtime
1 Scheduling Processes with Release Times, Deadlines, Precedence and Exclusion Relations J. Xu and D. L. Parnas IEEE Transactions on Software Engineering,
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
Advanced Operating Systems - Spring 2009 Lecture 14 – February 25, 2009 Dan C. Marinescu Office: HEC 439 B. Office.
CS244-Introduction to Embedded Systems and Ubiquitous Computing Instructor: Eli Bozorgzadeh Computer Science Department UC Irvine Winter 2010.
Mapping: Applications  Processors
12/19/2015COSC , Lecture 31 Real-Time Systems, COSC , Lecture 3 Stefan Andrei.
Module 2 Overview of Real Time System Scheduling
Real-Time Scheduling CS 3204 – Operating Systems Lecture 13 10/3/2006 Shahrooz Feizabadi.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Common Approaches to Real-Time Scheduling Clock-driven (time-driven) schedulers Priority-driven schedulers Examples of priority driven schedulers Effective.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Introduction to Real-Time Systems
CSEP 521 Applied Algorithms Richard Anderson Winter 2013 Lecture 3.
Lecture 6: Real-Time Scheduling
Single Machine Scheduling Problem Lesson 5. Maximum Lateness and Related Criteria Problem 1|r j |L max is NP-hard.
Embedded System Scheduling
ECE 720T5 Fall 2012 Cyber-Physical Systems
Operating Systems Design (CS 423)
Lecture 4 Schedulability and Tasks
Lecture 24: Process Scheduling Examples and for Real-time Systems
CprE 458/558: Real-Time Systems
Realtime Scheduling Algorithms
Chapter 6 Dynamic Priority Servers
Sanjoy Baruah The University of North Carolina at Chapel Hill
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
Greedy Algorithms: Homework Scheduling and Optimal Caching
Richard Anderson Lecture 6 Greedy Algorithms
Scheduling Basic Concepts Ref: Hard Real-Time Computing Systems Giorgio Buttazzo Ref: Real-Time Systems & Software Alan Shaw Processes - Tasks.
Richard Anderson Autumn 2016 Lecture 7
CSCI1600: Embedded and Real Time Software
NET 424: REAL-TIME SYSTEMS (Practical Part)
Richard Anderson Lecture 7 Greedy Algorithms
Algorithm Design Methods
Richard Anderson Winter 2019 Lecture 7
Richard Anderson Autumn 2015 Lecture 7
Ch 4. Periodic Task Scheduling
Richard Anderson Autumn 2019 Lecture 7
Presentation transcript:

Deterministic Scheduling Aperiodic Scheduling Earliest Deadline Due, Earliest Deadline First, Latest Deadline First, Spring Algorithm Periodic Scheduling References: Shaw – Chap 6 Buttazo – Chap 3 & 4

Introduction Priority & Round Robin Periodic Scheduling (Feasible Solution) Example 1:

More Round Robin Periodic Scheduling (Non-feasible Solution) Example 2:

APERIODIC TASK SCHEDULING Notation:

Earliest Due Date (EDD) - Jackson’s Rule Set of tasks: Problem: Algorithm:

Earliest Due Date (EDD) - Jackson’s Rule

Earliest Due Date (EDD) – Example 1

Earliest Due Date (EDD) – Example 2

Earliest Due Date (EDD) – Guaranteed Feasibility Order tasks by increasing deadlines. Then:

Earliest Deadline First (EDF) – Horn’s Algorithm

Earliest Deadline First (EDF) – Example

Earliest Deadline First (EDF) – Guarantee of Schedualability Dynamic Scheduling: Assume Schedulable Need to Guarantee that Assuming all tasks are ordered by increasing deadlines: Worst case finishing time: For Guaranteed Schedulability:

EDF - Non-Preemptive Scheduling The scheduling problem for non-preemptive EDF is NP hard

Non-Acyclic Search Tree Scheduling

Bratley’s Algorithm

Scheduling with Precedence Constraints Latest Deadline First (or last Scheduling with Precedence Constraints Latest Deadline First (or last?)- Optimizes max Lateness

Latest Deadline First

EDF with Precedence Constraints The problem of scheduling a set of n tasks with precedent constraints and dynamic activations can be solved if the tasks are preemptable. The basic ideas is transform a set of dependent tasks into a set of independent tasks by adequate modification of timing parameters. Then, tasks are scheduled by the Earliest Deadline First (EDF) algorithm, iff is schedulable. Basically, all release times and deadlines are modified so that each task cannot start before its predecessors and cannot preempt their successors.

EDF with Precedence Constraints Modifying the release time:

EDF with Precedence Constraints Modifying the Deadlines:

Example

Jack Stankovic’s Spring Algorithm very powerful and actually has been applied in Jack’s real-time operating system This does not yield an optimal schedule, but the general problem is NP hard. This does lend itself to artificial intelligence and learning. We are interested here in the concept, rather in any implementation. The objective is to find a feasible schedule when tasks are have different types of constraints, such as precedence relations, resource constraints, arbitrary arrivals, non-preemptive properties, and importance levels. A heuristic function H is used to drive the scheduling toward a plausible path. At each level of the search, function H is applied to each of the remaining tasks. The task with the smallest value determined by the heuristic function H is selected to extend the current schedule. If a schedule is not looking strongly feasible, a minimal amount of backtracking is used.

Jack Stankovic’s Spring Algorithm Precedence constraints can be handled by adding a term E =1 if the task is eligible and E = infinity if it is not.

Jack Stankovic’s Spring Algorithm

Summary

Homework #3 (due 5/3/07) : Lecture 4/24 1) 2) 3)