CprE 458/558: Real-Time Systems

Slides:



Advertisements
Similar presentations
CprE 458/558: Real-Time Systems
Advertisements

CprE 458/558: Real-Time Systems
Real Time Scheduling.
ECE 697: Real-Time Systems
Time Demand Analysis.
Priority Inheritance and Priority Ceiling Protocols
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Fault-Tolerant Scheduling Techniques.
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
B. RAMAMURTHY 4/13/2015 cse321-fall2014 Realtime System Fundamentals : Scheduling and Priority-based scheduling Pag e 1.
CPE555A: Real-Time Embedded Systems
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Resource Access Control Protocols.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Resource Reclaiming (Contd.)
Real-time concepts Lin Zhong ELEC424, Fall Real time Correctness – Logical correctness – Timing Hard vs. Soft – Hard: lateness is intolerable Pass/Fail.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems (m, k)-firm tasks and QoS enhancement.
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:
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Dynamic Planning Based Scheduling.
Overview of Matchmaking and Scheduling (Mapping) Algorithm
Preemptive Behavior Analysis and Improvement of Priority Scheduling Algorithms Xiaoying Wang Northeastern University China.
Reinder J. Bril, TU/e Informatica, System Architecture and Networking 1 Construction of time lines for FPPS Reinder J. Bril Real-Time Architectures.
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.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Imprecise Computations.
CprE 458/558: Real-Time Systems
CprE 458/558: Real-Time Systems
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Best Effort Scheduling.
Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environments.
The Design and Performance of A Real-Time CORBA Scheduling Service Christopher Gill, David Levine, Douglas Schmidt.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Combined Scheduling of Periodic and Aperiodic Tasks.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Some practical issues.
Real Time Operating Systems Schedulability - Part 3 Course originally developed by Maj Ron Smith 10/24/2015Dr Alain Beaulieu1.
Ernest Cachia University of Malta “Real-Time System Development” Slide No. 1 of part 3 n What about jitter? To calculate jitter one should have data regarding.
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.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Introduction to Real-Time Systems.
6. Application mapping 6.1 Problem definition
A Delay Composition theorem for Real-Time Pipelines P. Jayachandran T. Abdelzaher Presenter: Sina Meraji.
Real Time Systems Real-Time Schedulability Part I.
RTOS task scheduling models
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Term Project List, Requirements.
KUKUM Real Time System 1/21 Module 2 Real Time System Scheduling Lecture 05.
Advanced Operating Systems - Spring 2009 Lecture 14 – February 25, 2009 Dan C. Marinescu Office: HEC 439 B. Office.
CSE 522 Real-Time Scheduling (2)
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.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Distributed Real-Time Systems.
Chapter 3: Real-Time Scheduling and Schedulability Analysis Albert M. K. Cheng.
Introduction to Embedded Systems Rabie A. Ramadan 5.
CprE 458/558: Real-Time Systems (G. Manimaran)1 Energy Aware Real Time Systems - Scheduling algorithms Acknowledgement: G. Sudha Anil Kumar Real Time Computing.
Sandtids systemer 2.modul el. Henriks 1. forsøg m. Power Point.
Mok & friends. Resource partition for real- time systems (RTAS 2001)
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Energy-aware QoS packet scheduling.
Undergraduate course on Real-time Systems Linköping University TDDD07 Real-time Systems Lecture 2: Scheduling II Simin Nadjm-Tehrani Real-time Systems.
CprE 458/558: Real-Time Systems
EEE 6494 Embedded Systems Design
Lecture 4 Schedulability and Tasks
CprE 458/558: Real-Time Systems
CprE 458/558: Real-Time Systems
CprE 458/558: Real-Time Systems (G. Manimaran)
Real Time Scheduling Mrs. K.M. Sanghavi.
Limited-Preemption Scheduling of Sporadic Tasks Systems
,. . ' ;; '.. I I tI I t : /..: /.. ' : ····t I 'h I.;.; '..'.. I ' :".:".
Resource access control -- example
NET 424: REAL-TIME SYSTEMS (Practical Part)
Processes and operating systems
NET 424: REAL-TIME SYSTEMS (Practical Part)
A) Is taskset with (period, comp-time) = (3, 1) (5, 1) (5, 1)
Ch 4. Periodic Task Scheduling
Real-Time Scheduling David Ferry CSCI 3500 – Operating Systems
Presentation transcript:

CprE 458/558: Real-Time Systems RMS, EDF Schedulers (contd) -- Exact Analysis CprE 458/558: Real-Time Systems (G. Manimaran)

Exact Analysis (necessary & sufficient) Critical Zone Theorem: For a set of independent periodic tasks, if a task Ti meets its first deadline di <= pi, when all other higher priority tasks are started (ie., ready) at the same time, then it meets all its future deadlines with any other task start times. CprE 458/558: Real-Time Systems (G. Manimaran)

CprE 458/558: Real-Time Systems (G. Manimaran) Completion Time Test Let there be n tasks ordered in decreasing priority. Consider any task Ti. The workload over [0,t] (for arbitrary t > 0) due to all tasks of equal or higher priority than Ti is given by The term represents the number of times task Tj arrives in time t, and therefore represents its computational demand in time t. CprE 458/558: Real-Time Systems (G. Manimaran)

Completion Time Test (Contd.) Suppose that task Ti completes its execution exactly at time t. This means that the total cumulative demand from the i tasks up to time t, Wi(t), is exactly equal to t, that is, Wi(t) = t. A method for finding the completion time of task Ti, that is, the time at which Wi(t) = t, is known as completion time test. CprE 458/558: Real-Time Systems (G. Manimaran)

Completion Time Test (Contd.) A task Ti is schedulable if Wi <= di, where Wi(t)=t. An entire task set is schedulable if this condition holds for all the tasks in the set. CprE 458/558: Real-Time Systems (G. Manimaran)

Completion Time Test — Example Task T1: c1 = 20; p1 = 100; d1 = 100. Task T2: c2 = 30; p2 = 145; d2 = 145. Task T3: c3 = 68; p3 = 150; d2 = 150. This task set fails the (utilization-based) schedulability test for RMS. So, perform completion time test for T1, T2, T3. Task T3’s completion time test is as follows. t0 = c1 + c2 + c3 = 20 + 68 + 30 = 118. t1 = W3(t0) = 2c1 + c2 + c3 = 40 + 68 + 30 = 138. W3(t1) = 2c1 + c2 + c3 = 40 + 68 + 30 = 138 = t1. Task T3 is schedulable!; Tasks T1 and T2 too. CprE 458/558: Real-Time Systems (G. Manimaran)

Deadline monotonic scheduling (DMS) Task Ti: (ci, pi, di); with relative deadline di <= pi Assigns priority based on di; smaller the di, higher the priority Similar to RMS utilization-based schedulability test, except ci/di used instead of ci/pi Similar to RMS exact analysis, except the ordering of tasks is based on di instead of pi Example: (ci,pi,di): (3,20,7), (2,5,4), (2,10,9). This task set is schedulable even though Sum(ci/di) > 1. DMS is also an optimal fixed-priority scheduling algorithm; it is a generalization of RMS. ∑ Ci/di ≤ n(21/n – 1) CprE 458/558: Real-Time Systems (G. Manimaran)

RMS/DMS Schedulability test Example task set: T1 = (2,4) T2 = (3,12) Is the task set Harmonic ? NO YES RMS/DMS utilization based test Is ∑Ui ≤ 1 ? Pass NO YES Fail RMS/DMS Exact analysis NOT Schedulable Schedulable Schedulable Pass Fail NOT Schedulable CprE 458/558: Real-Time Systems (G. Manimaran)

EDF Revisited: Schedulability test Different possible scenarios Sufficient but NOT necessary If di ≥ pi If di < pi Necessary and sufficient Necessary and sufficient ∑ Ci/pi ≤ 1 ∑ Ci/di ≤ 1 Fail Pass Processor demand based test Schedulable CprE 458/558: Real-Time Systems (G. Manimaran)

Periodic task scheduling - summary Di = Pi Di ≤ Pi RMS Processor Utilization test DMS Exact Analysis EDF/LLF Processor utilization test (U ≤ 1) EDF Processor demand based test (not covered) Static priority Dynamic priority CprE 458/558: Real-Time Systems (G. Manimaran)