Clock-driven Static scheduling

Slides:



Advertisements
Similar presentations
Washington WASHINGTON UNIVERSITY IN ST LOUIS Real-Time: Periodic Tasks Fred Kuhns Applied Research Laboratory Computer Science Washington University.
Advertisements

Clock-driven Static scheduling 5/24/2013Amrita-UB-MSES
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.
ECE 493T9 Real Time Embedded System Tutorial Set 5 July 14, Spring 2008.
CPE555A: Real-Time Embedded Systems
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Resource Reclaiming (Contd.)
Real Time Scheduling Terminologies define Fixed Priority Scheduler
CSE 522 Real-Time Scheduling (4)
Mehdi Kargahi School of ECE University of Tehran
1 Swiss Federal Institute of Technology Computer Engineering and Networks Laboratory Embedded Systems Exercise 2: Scheduling Real-Time Aperiodic Tasks.
Module 2 Priority Driven Scheduling of Periodic Task
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Integers: Multiplication & Division
Module 2 Clock-Driven Scheduling
系統晶片設計 - 論文報告 指導老師:陳朝烈老師 學生: 陳宗廷 向崇羽 Monot, A.; Navet, N.; Bavoux, B.; Simonot-Lion, F.,” Multisource Software on Multicore Automotive.
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.
Clock Driven Scheduling By Dr. Amin Danial Asham.
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
KUKUM Real Time System 1/21 Module 2 Real Time System Scheduling Lecture 05.
Module 2 Overview of Real Time System Scheduling
Real-Time Scheduling CS 3204 – Operating Systems Lecture 13 10/3/2006 Shahrooz Feizabadi.
B. RAMAMURTHY 12/25/2015 Realtime System Fundamentals : Scheduling and Priority-based scheduling Pag e 1.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Dynamic Priority Driven Scheduling of Periodic Task
Introduction to Real-Time Systems
Clock Driven Scheduling
Clock Driven Schedulers
Clock-Driven Scheduling (in-depth) Task Scheduler: i := 0; k := 0; BEGIN LOOP i := i+1; k:= i mod N; IF J(t k-1 )is empty THEN wakeup(aperiodic) ELSE wakeup(J(t.
Embedded System Scheduling
Homework Assignment #2 J. H. Wang Oct. 25, 2016.
Some Topics in OR.
RTOS Scheduling 3 Cyclic scheduling, EDF. Tasks with precedence, Scheduling impact of DMA, cache, interrupts & context switch overhead, Aperiodic Georgio.
Wayne Wolf Dept. of EE Princeton University
Ying Zhang&Krishnendu Chakrabarty Presenter Kasım Sert
Clock Driven Scheduling
Structured Cyclic Schedule
EE5900 Cyber-Physical Systems
Realtime System Fundamentals : Scheduling and Priority-based scheduling B. Ramamurthy cse321-fall2014 9/20/2018.
Real-Time Systems.
RTS: Kernel Design and Cyclic Executives
Realtime System Fundamentals : Scheduling and Priority-based scheduling B. Ramamurthy cse321-fall /27/2018.
COP 4600 Operating Systems Fall 2010
RTS: Kernel Design 11/30/2018.
Clock-driven Static scheduling
Real Time Scheduling Mrs. K.M. Sanghavi.
Least Common Multiples
Clock-driven Static scheduling
Greatest Common Factor and Least Common Multiple
CSCI1600: Embedded and Real Time Software
RTS: Kernel Design and Cyclic Executives
RTS: Kernel Design 1/2/2019.
Networked Real-Time Systems: Routing and Scheduling
Richard Anderson Lecture 6 Greedy Algorithms
Clock-driven Static scheduling
RTS: Kernel Design and Cyclic Executives
Scheduling Basic Concepts Ref: Hard Real-Time Computing Systems Giorgio Buttazzo Ref: Real-Time Systems & Software Alan Shaw Processes - Tasks.
Richard Anderson Lecture 7 Greedy Algorithms
EE5900 Advanced Embedded System For Smart Infrastructure
Cyclic executives for Bare Hardware
Final Review CSE321 B.Ramamurthy 4/29/2019 B.Ramamurthy.
NET 424: REAL-TIME SYSTEMS (Practical Part)
Ch.7 Scheduling Aperiodic and Sporadic Jobs in Priority-Driven Systems
The End Of The Line For Static Cyclic Scheduling?
Ch 4. Periodic Task Scheduling
Real-Time Scheduling David Ferry CSCI 3500 – Operating Systems
Presentation transcript:

Clock-driven Static scheduling cse321-fall2014 11/28/2018

Basic concepts (1) A periodic task is denoted by {tai, ei ,pi, Di} where the attributes are arrival time, execution time, period and relative deadline for task i For example {0, 5, 12, 7} means period Execution time deadline Arrival time Next arrival time How will the timing diagram be for {1, 5, 12, 7} and for {0, 5,12, 12}? Discuss. cse321-fall2014 11/28/2018

N-periodic tasks n periodic tasks with {tai, ei ,pi, Di} with i = 1..n need to be scheduled. Since the four parameters known ahead the scheduling is static and a cyclic executive can be designed to schedule (& execute) the tasks so that they meet their respective deadlines. Utilization Ui = ∑ (ei/pi) Improve utilization by “slack stealing” to schedule a aperiodic task from the queue of aperiodic tasks. cse321-fall2014 11/28/2018

Rules for designing cyclic schedule 0. if Utilization >1, the tasks cannot be scheduled in the same processor. If U is okay, Hyperperiod H is lcm (pi) + these constraints Frame f ≥ max(ei) Frame f should evenly divide H. There should be at least 1 frame between release time of a task and its deadline: 2f – gcd(pi,f) ≤ Di Very often Di and Pi are same for periodic task. For simplicity in discussion we will assume this default setting. cse321-fall2014 11/28/2018

Example ti ri ei pi Di t1 1 4 t2 1.8 5 t3 1.0 20 t4 2.0 1 4 t2 1.8 5 t3 1.0 20 t4 2.0 Given the task set above design the cyclic executive schedule or clock driven static schedule. cse321-fall2014 11/28/2018

Cyclic Executive Design Hyper-period is integer multiple of lcm(pi)= lcm (4,5,20,20) = 20 Frame is max of ei’s: max{1,1.8,2,2} = 2 f value of 2 evenly divides hyper-period value of 20 2f – gcd(pi,f) ≤ Di (satisfied as shown below) 2X2 – gcd(4,2) = 4-2 <= 4 2X 2 – gcd(5,2) = 4-1 <= 5 2X2 – gcd(20,4) = 4-4 <= 20 Design f = 2, hyperperiod = 20 cse321-fall2014 11/28/2018

Burn or base or aperiodic tasks can use this slot repeats t1,t2,t3,t4 t1,t2,t3,t4 t1 t2 t1 t2 t1 t2 t1 t1 t3 t2 t4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 frame Hyper-period Burn or base or aperiodic tasks can use this slot repeats cse321-fall2014 11/28/2018

Static Schedule { { t1(1); t3(1)} {t2(1.8}} {t1(1); burn(1)} {t4(2)} {t2(2)} {t1(1);burn(1)} } A cyclic executive of 10 frames with 2 slots each cse321-fall2014 11/28/2018

Summary http://csperkins.org/teaching/rtes/lecture04.pdf We studied formal design of a cyclic executive. The algorithm discussed is proven method to generate a cyclic executive for a set of period tasks defining a RTOS. Reference: Clock-driven scheduling http://csperkins.org/teaching/rtes/lecture04.pdf cse321-fall2014 11/28/2018