Ch 4. Periodic Task Scheduling

Slides:



Advertisements
Similar presentations
Fakultät für informatik informatik 12 technische universität dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund,
Advertisements

Washington WASHINGTON UNIVERSITY IN ST LOUIS Real-Time: Periodic Tasks Fred Kuhns Applied Research Laboratory Computer Science Washington University.
Time Demand Analysis.
Chapter 7 - Resource Access Protocols (Critical Sections) Protocols: No Preemptions During Critical Sections Once a job enters a critical section, it cannot.
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
CS5270 Lecture 31 Uppaal, and Scheduling, and Resource Access Protocols CS 5270 Lecture 3.
CPE555A: Real-Time Embedded Systems
THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
From HRT-HOOD to ADA95 Real-Time Systems Lecture 5 Copyright, 2001 © Adam Czajka.
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
Task Allocation and Scheduling n Problem: How to assign tasks to processors and to schedule them in such a way that deadlines are met n Our initial focus:
Module 2 Priority Driven Scheduling of Periodic Task
Preemptive Behavior Analysis and Improvement of Priority Scheduling Algorithms Xiaoying Wang Northeastern University China.
Periodic Task Scheduling
EE 249, Fall Discussion: Scheduling Haibo Zeng Amit Mahajan.
Embedded Systems Exercise 3: Scheduling Real-Time Periodic and Mixed Task Sets 18. May 2005 Alexander Maxiaguine.
Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment Presented by Pete Perlegos C.L. Liu and James W. Layland.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Misconceptions About Real-time Computing : A Serious Problem for Next-generation Systems J. A. Stankovic, Misconceptions about Real-Time Computing: A Serious.
Chapter 4 – Periodic Task Scheduling In many real-time systems periodic tasks dominate the demand. Three classic periodic task scheduling algorithms: –
Technische Universität Dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2007/12/14.
New Schedulability Tests for Real- Time task sets scheduled by Deadline Monotonic on Multiprocessors Marko Bertogna, Michele Cirinei, Giuseppe Lipari Scuola.
MM Process Management Karrie Karahalios Spring 2007 (based off slides created by Brian Bailey)
Quantifying the sub-optimality of uniprocessor fixed priority non-pre-emptive scheduling Robert Davis 1, Laurent George 2, Pierre Courbin 3 1 Real-Time.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Scheduling policies for real- time embedded systems.
Multiprocessor Real-time Scheduling Jing Ma 马靖. Classification Partitioned Scheduling In the partitioned approach, the tasks are statically partitioned.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 31 – Multimedia OS (Part 1) Klara Nahrstedt Spring 2011.
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.
6. Application mapping 6.1 Problem definition
RTOS task scheduling models
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
KUKUM Real Time System 1/21 Module 2 Real Time System Scheduling Lecture 05.
Special Class on Real-Time Systems
CSE 522 Real-Time Scheduling (2)
Real Time Operating Systems Schedulability - Part 2 Course originally developed by Maj Ron Smith 12/20/2015Dr Alain Beaulieu1.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 13 10/3/2006 Shahrooz Feizabadi.
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Dynamic Priority Driven Scheduling of Periodic Task
Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2012 年 12 月 19 日 These slides use Microsoft clip.
Mok & friends. Resource partition for real- time systems (RTAS 2001)
2/23/2016COSC , Lecture 21 Real-Time Systems, COSC , Lecture 2 Stefan Andrei.
11 G53SRP: Feasibility analysis Chris Greenhalgh School of Computer Science.
Undergraduate course on Real-time Systems Linköping University TDDD07 Real-time Systems Lecture 2: Scheduling II Simin Nadjm-Tehrani Real-time Systems.
Lecture 6: Real-Time Scheduling
Real-time Embedded Systems Rate monotonic theory scheduling.
Embedded System Scheduling
Scheduling in Real-Time Systems
ECE 720T5 Fall 2012 Cyber-Physical Systems
Multiprocessor Real-Time Scheduling
Scheduling and Resource Access Protocols: Basic Aspects
Networks and Operating Systems: Exercise Session 2
EEE 6494 Embedded Systems Design
Lecture 24: Process Scheduling Examples and for Real-time Systems
Real Time Scheduling Mrs. K.M. Sanghavi.
Sanjoy Baruah The University of North Carolina at Chapel Hill
Elastic Task Model For Adaptive Rate Control
Limited-Preemption Scheduling of Sporadic Tasks Systems
NET 424: REAL-TIME SYSTEMS (Practical Part)
CSCI1600: Embedded and Real Time Software
NET 424: REAL-TIME SYSTEMS (Practical Part)
Processes and operating systems
CHAPTER 8 Resources and Resource Access Control
Ch.7 Scheduling Aperiodic and Sporadic Jobs in Priority-Driven Systems
Real-Time Process Scheduling Concepts, Design and Implementations
Real-Time Process Scheduling Concepts, Design and Implementations
Real-Time Scheduling David Ferry CSCI 3500 – Operating Systems
Presentation transcript:

Ch 4. Periodic Task Scheduling

Notations

The set of periodic tasks is denoted by The release time ri,k of i,k The absolute deadline di,k of i,k

Processor Utilization Given a set  of n periodic tasks, the processor utilization U is the fraction of processor time spent in the execution of the task set. The fraction of processor time spent in executing task i = Ci/Ti. Processor utilization : The processor utilization factor provides a measure of the computational load on the CPU due to the periodic task set.

Ulub (A) : the least upper bound Uub (, A) : the upper bound of the processor utilization for a task set  under a given algorithm A  is schedulable by A, but an increase in the computation time in any of the tasks will make the set infeasible. Ulub (A) : the least upper bound For a given algorithm A, Ulub(A) is the minimum of the utilization factors over all task sets

Ulub defines an important characteristics of a scheduling algorithm because it allows to easily verify the schedulability of a task set. An task set whose utilization is below Ulub is schedulable by the algorithm.

Rate Monotonic (RM) Scheduling Task with higher request rates (that is, with shorter periods) will have higher priorities. Since periods are constant, RM is a fixed-priority assignment. Priorities are assigned to tasks before execution and do not change over time. RM is preemptive: the current executing task is preempted by a newly arrived task with shorter period.

Example 1 (1, C1, D1, T1) = (0, 1, 3, 3) 2 (2, C2, D2, T2) = (2, 2, 5, 5) 3 (3, C3, D3, T3) = (1, 1, 6, 6) 1 2 3

Optimality of RM In 1973, Liu and Layland showed that RM is optimal among all fixed priority assignments in the sense that no other fixed-priority algorithms can schedule a task set that cannot be scheduled by RM. Proof of Optimality

Ulub of RM Calculation of Ulub for two tasks Calculation of Ulub for n tasks

Remarks on RM RM is optimal among all fixed-priority assignments in the sense that no other fixed-priority algorithms can schedule a task set that cannot be scheduled by RM. RM guarantees that an arbitrary set of periodic tasks is scheduliable if the total processor utilization U is not exceed a value of 0.69. This schedulability condition is sufficient to guarantee the feasibility of any task set, but it is not necessary.

Earliest Deadline First (EDF) EDF dynamically selects tasks according to their absolute deadlines. Tasks with earlier deadlines are executed at higher priorities. The absolute deadline of the j-th instance of task i EDF is a dynamic priority assignment and preemptive.

Example 1 (1, C1, D1, T1) = (0, 2, 5, 5) 2 (2, C2, D2, T2) = (0, 4, 7, 7) 1 2

Schedulability Analysis A set of periodic tasks is schedulable with EDF if and only if Proof

Deadline Monotonic The Deadline Monotonic (DM) priority assignment extends RM for the system where tasks can have a relative deadline less than their period. Each task i is characterized by four parameters: i Ci Di Ti

According to the DM algorithm, each task is assigned a priority inversely proportional to its relative deadline. Since relative deadlines are constant, DM is a fixed-priority assignment and preemptive. DM is optimal in the sense that, if any fixed-priority assignment scheduling algorithm can schedule a set of tasks with deadlines unequal to their periods, then DM will also schedule task set.

Schedulability of DM The feasibility of a set of tasks with deadlines unequal to their periods could be guaranteed by RM schedulability test: However, it would not be optimal as the workload on the processor would be overestimated.

Schedulability Analysis Assuming that tasks are ordered by increasing relative deadlines, so that A test is given by Ii : the interference on i which can be computed bas the sum of the processing times of all higher-priority tasks released before Di

Sufficient and Necessary Schedulability Test The previous test is sufficient but not necessary for guaranteeing the schedulability. Ii is calculated by assuming each higher-priority task j exactly interferes Di/Tj times on i. The actual interference can be smaller than Ii.

The longest response time Ri of a periodic task i is computed, at the critical instance, as the sum of its computation time and the interference due to preemption by higher-priority tasks: where Hence,

Algorithm for testing schedulability

EDF with Deadlines Less Than Periods Theorem 4.2 A set of periodic tasks is schedulable by EDF if and only if for all L, L  0,

Problems to solve Solve the following exercise problems in the textbook. 4.1 4.2 4.3 4.4 4.8