ECE 697: Real-Time Systems n Instructor: C. M. Krishna » (413) 545-0766 » Office Hours (on-campus): Tues: 4:00--4:45 PM n Off-campus.

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

Real Time Scheduling.
ECE 697: Real-Time Systems
CprE 458/558: Real-Time Systems
COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM.
CS5270 Lecture 31 Uppaal, and Scheduling, and Resource Access Protocols CS 5270 Lecture 3.
Courseware Scheduling of Distributed Real-Time Systems Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens.
REAL-TIME COMMUNICATION ANALYSIS FOR NOCS WITH WORMHOLE SWITCHING Presented by Sina Gholamian, 1 09/11/2011.
Real-time concepts Lin Zhong ELEC424, Fall Real time Correctness – Logical correctness – Timing Hard vs. Soft – Hard: lateness is intolerable Pass/Fail.
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:
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.
Module 2 Priority Driven Scheduling of Periodic Task
Courseware Scheduling Uniprocessor Real-Time Systems Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens.
Project 2 – solution code
Cs238 CPU Scheduling Dr. Alan R. Davis. CPU Scheduling The objective of multiprogramming is to have some process running at all times, to maximize CPU.
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.
CprE 458/558: Real-Time Systems
Spring 2002Real-Time Systems (Shin) Rate Monotonic Analysis Assumptions – A1. No nonpreemptible parts in a task, and negligible preemption cost –
Real-Time Operating System Chapter – 8 Embedded System: An integrated approach.
Technische Universität Dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2007/12/14.
Computer Network Fundamentals CNT4007C
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
MM Process Management Karrie Karahalios Spring 2007 (based off slides created by Brian Bailey)
Computer Networks CEN 5501C Spring, 2008 Ye Xia (Pronounced as “Yeh Siah”)
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
Scheduling policies for real- time embedded systems.
Multiprocessor and Real-Time Scheduling Chapter 10.
Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10.
Real Time Scheduling Telvis Calhoun CSc Outline Introduction Real-Time Scheduling Overview Tasks, Jobs and Schedules Rate/Deadline Monotonic Deferrable.
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.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Hard Real-Time Scheduling for Low- Energy Using Stochastic Data and DVS Processors Flavius Gruian Department of Computer Science, Lund University Box 118.
5 May CmpE 516 Fault Tolerant Scheduling in Multiprocessor Systems Betül Demiröz.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
CSE 522 Real-Time Scheduling (2)
Real-Time systems By Dr. Amin Danial Asham.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Real time scheduling G.Anuradha Ref:- Stallings. Real time computing Correctness of the system depends not only on the logical result of computation,
Chapter 3: Real-Time Scheduling and Schedulability Analysis Albert M. K. Cheng.
Introduction to Embedded Systems Rabie A. Ramadan 5.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Dynamic Priority Driven Scheduling of Periodic Task
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 31 – Process Management (Part 1) Klara Nahrstedt Spring 2009.
Introduction to Real-Time Systems
CS333 Intro to Operating Systems Jonathan Walpole.
For a good summary, visit:
Computer Networks CNT5106C
Undergraduate course on Real-time Systems Linköping University TDDD07 Real-time Systems Lecture 2: Scheduling II Simin Nadjm-Tehrani Real-time Systems.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
Lecture 6: Real-Time Scheduling
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
Real-Time Operating Systems RTOS For Embedded systems.
Embedded System Scheduling
EEE 6494 Embedded Systems Design
Lecture 24: Process Scheduling Examples and for Real-time Systems
Real Time Scheduling Mrs. K.M. Sanghavi.
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
Processes and operating systems
CS703 - Advanced Operating Systems
Real-Time Process Scheduling Concepts, Design and Implementations
Ch 4. Periodic Task Scheduling
Real-Time Process Scheduling Concepts, Design and Implementations
Presentation transcript:

ECE 697: Real-Time Systems n Instructor: C. M. Krishna » (413) » Office Hours (on-campus): Tues: 4:00--4:45 PM n Off-campus Contact: By and telephone n Course Grading: » Three in-term tests: 18% each » Final exam (cumulative): 26% » Homework/simulation exercises: 20% n Homework is to be done individually

Coverage n Introduction to real-time systems n Performance measures n Task allocation and scheduling techniques n Power and energy issues n Communication algorithms n Fault tolerance and reliability evaluation n Clock synchronization

Textbook » C. M. Krishna and K. G. Shin, Real-Time Systems, McGraw-Hill, » On-campus students: I’ve put a copy on reserve in the Physical Sciences Library; I’ll make another copy available in the Architecture & Real-Time Lab » Off-campus students: Check your nearest technical library » Also available from bookstores (online and traditional) » See the course web page for a pointer to the typo list:

Course Notes n A few PowerPoint slides: Will be posted on the course website n Mostly handwritten in class: The more important bits will be scanned and available through the course website after the lecture n Readings beyond the text will be used for » Real-time communication protocols » Energy- and power-aware computing

Today’s Topics n What is a real-time system? » General characteristics » Hard and soft real-time systems n Performance Measures » Why are they important? » For general-purpose systems » For real-time systems n Uniprocessor task scheduling

What is a Real-Time System? n Any system in which a deadline plays a central role in its perceived performance » But timely response is important for general-purpose systems, too! » There is no hard-and-fast demarcation between a real- time system and a general-purpose system » Systems in the control loop are always real-time

Types of RTS n Hard Real-Time Systems » Missing a deadline (or series of deadlines) can cause a significant loss to the application. » Examples: Fly-by-wire, power-plant, and grid control n Soft Real-Time Systems » Missing a deadline causes the quality of service to degrade, but nothing terrible happens » Examples: Video-on-demand, teleconferencing

Example: Fly-by-wire n Used initially in military aircraft » Dynamics time-constants are too small for humans to be effective controllers » Philosophy: n Pilot sets policy n Computer carries out low-level actions to implement that policy » If too many deadlines are missed in a row, the aircraft can crash

Feedback Loop (From C. M. Krishna & K. G. Shin: NASA Con. Report 3807, 1984)

Impact of Feedback Delay (Simulation Example) Elevator Deflections During Landing

Performance Measures n Traditional Measures » Throughput: Average number of instructions processed per second » Availability: Fraction of time for which the system is up » Reliability: Probability that the system will remain up throughout a designated interval

Special-Purpose Measure n Performability » Published by John Meyer in 1980 » Identify accomplishment levels, {A0, A1, A2, …, An}, for the application » Determine the probability, P(Ai), that the real-time system will be able to perform in such a way that Ai will be accomplished » Performability is the vector (P(A0), P(A1), …, P(An)) » Application-focused measure

Task Allocation and Scheduling n How to assign tasks to processors and to schedule them in such a way that deadlines are met n Our initial focus: uniprocessor task scheduling

Uniprocessor Task Scheduling n Initial Assumptions: » Each task is periodic » Periods of different tasks may be different » Worst-case task execution times are known » Relative deadline of a task is equal to its period » No dependencies between tasks: they are independent » Only resource constraint considered is execution time » No critical sections » Preemption costs are negligible » Tasks must be completed for output to have any value

Standard Scheduling Algorithms n Rate-Monotonic (RM) Algorithm: » Static priority » Higher-frequency tasks have higher priority n Earliest-Deadline First (EDF) Algorithm: » Dynamic priority » Task with the earliest absolute deadline has highest priority

RMA n Task priority is inversely proportional to the task period (directly proportional to task frequency) n At any moment, the processor is either » idle if there are no tasks to run, or » running the highest-priority task available n A lower-priority task can suffer many preemptions n To a task, lower-priority tasks are effectively invisible

RMA n Example n Schedulability criteria: » Sufficiency condition (Liu & Layland, 1973) » Necessary & sufficient conditions (Joseph & Pandya, 1986; Lehoczky, Sha, Ding 1989)

RMA n Critical Instant of a Task: An instant at which a request for that task will have the largest response time n Critical Time-zone of a Task: Interval between a critical instant of that task and the completion time of that task n Critical Instant Theorem: Critical instant of a task T_i occurs whenever T_i arrives simultaneously with all higher-priority tasks

RMA: Scheulability Check n The Critical Instant Theorem leads to a schedulability check: » If a task is released at the same time as all of the tasks of higher priority and it meets its deadline, then it will meet its deadline under all circumstances

RMA: Schedulability Test n If a task is released simultaneously with all higher- priority tasks, determine when it will be done n If this completion time is no later than this task’s deadline, we have succeeded with this task n Find a systematic procedure to turn this process into a necessary-and-sufficient schedulability check

RMA: Schedulability n Start with a single-task set and obtain its schedulability conditions n Extend this to a two-task set n Exploit any intuition gained to generalize this