Modifying Theorem 2 Theorem 4 (The synchronous completion time theorem) In the above theorem, a task i will meet its completion deadline Di if it satisfies.

Slides:



Advertisements
Similar presentations
Real Time Scheduling.
Advertisements

Chapter 7 - Resource Access Protocols (Critical Sections) Protocols: No Preemptions During Critical Sections Once a job enters a critical section, it cannot.
Washington WASHINGTON UNIVERSITY IN ST LOUIS Resource and Resource Access Control Fred Kuhns Applied Research Laboratory Computer Science and Engineering.
Outline Introduction Assumptions and notations
Introduction to Embedded Systems Resource Management - III Lecture 19.
Priority INHERITANCE PROTOCOLS
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
LUI SHA,RAGUNATHAN RAJKUMAR,JOHN P.LEHOCZKY IEEE TRANSACTIONS ON COMPUTERS, VOL. 39, NO. 9, SEPTEMBER 1990 Repesent : Shu Wei Ho.
0 Synchronization Problem Resource sharing –Requires mutual exclusion –Critical section A code section that should be executed mutually exclusively by.
CS5270 Lecture 31 Uppaal, and Scheduling, and Resource Access Protocols CS 5270 Lecture 3.
Resource Access Protocols
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Resource Access Control Protocols.
CSE 522 Real-Time Scheduling (3)
Little’s Theorem Examples Courtesy of: Dr. Abdul Waheed (previous instructor at COE)
Embedded Systems Exercise 3: Scheduling Real-Time Periodic and Mixed Task Sets 18. May 2005 Alexander Maxiaguine.
Spring 2002Real-Time Systems (Shin) Rate Monotonic Analysis Assumptions – A1. No nonpreemptible parts in a task, and negligible preemption cost –
Chapter 4 – Periodic Task Scheduling In many real-time systems periodic tasks dominate the demand. Three classic periodic task scheduling algorithms: –
Introduction to Embedded Systems
Row Reduction Method Lesson 6.4.
Scheduling policies for real- time embedded systems.
Real Time Operating Systems Schedulability - Part 3 Course originally developed by Maj Ron Smith 10/24/2015Dr Alain Beaulieu1.
Real Time Scheduling Telvis Calhoun CSc Outline Introduction Real-Time Scheduling Overview Tasks, Jobs and Schedules Rate/Deadline Monotonic Deferrable.
Ernest Cachia University of Malta “Real-Time System Development” Slide No. 1 of part 2 Schematic Task Execution Example time EABCDF (Deadline) Execution.
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.
KUKUM Real Time System 1/21 Module 2 Real Time System Scheduling Lecture 05.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Introduction to Embedded Systems Rabie A. Ramadan 5.
A presentation for Brian Evans’ Embedded Software Class By Nate Forman Liaison Technology Inc. 3/30/2000 For Real-Time Scheduling.
Performance Performance is about time and the software system’s ability to meet timing requirements.
CS223: Software Engineering Lecture 4: Software Development Models.
Sandtids systemer 2.modul el. Henriks 1. forsøg m. Power Point.
Undergraduate course on Real-time Systems Linköping University TDDD07 Real-time Systems Lecture 2: Scheduling II Simin Nadjm-Tehrani Real-time Systems.
Homework-6 Questions : 2,10,15,22.
Distributed Process Scheduling- Real Time Scheduling Csc8320(Fall 2013)
Double and Multiple Sampling Plan
REAL-TIME OPERATING SYSTEMS
Process Synchronization: Semaphores
Scheduling and Resource Access Protocols: Basic Aspects
Multithreaded Programming in Java
EEE 6494 Embedded Systems Design
Regulating Data Flow in J2EE Application Server
Real-Time Resource Scheduling  A. Mok 2016
Lecture 4 Schedulability and Tasks
8.1 Sampling Distributions
Period Optimization for Hard Real-time Distributed Automotive Systems
Realtime System Fundamentals : Scheduling and Priority-based scheduling B. Ramamurthy cse321-fall2014 9/20/2018.
Rate Monotonic Analysis For Real-Time Scheduling A presentation for
Realtime Scheduling Algorithms
Realtime System Fundamentals : Scheduling and Priority-based scheduling B. Ramamurthy cse321-fall /27/2018.
Problems With Assistance Module 4 – Problem 2
CSCI1600: Embedded and Real Time Software
Brian Babcock, Shivnath Babu, Mayur Datar, and Rajeev Motwani
Lecture 2 Part 2 Process Synchronization
Pedro Miguel Teixeira Senior Software Developer Microsoft Corporation
COT 4600 Operating Systems Fall 2009
Queueing networks.
Midterm Review CSE321 B.Ramamurthy 2/23/2019 B.Ramamurthy.
Scheduling Basic Concepts Ref: Hard Real-Time Computing Systems Giorgio Buttazzo Ref: Real-Time Systems & Software Alan Shaw Processes - Tasks.
CSCI1600: Embedded and Real Time Software
Resource access control -- example
NET 424: REAL-TIME SYSTEMS (Practical Part)
Processes and operating systems
Midterm Review CSE321 B.Ramamurthy 4/4/2019 B.Ramamurthy.
NET 424: REAL-TIME SYSTEMS (Practical Part)
Final Review CSE321 B.Ramamurthy 4/17/2019 B.Ramamurthy.
CHAPTER 8 Resources and Resource Access Control
NETWORK PROGRAMMING CNET 441
Midterm Review CSE321 B.Ramamurthy 4/23/2019 B.Ramamurthy.
CGS 3763 Operating Systems Concepts Spring 2013
Presentation transcript:

Modifying Theorem 2 Theorem 4 (The synchronous completion time theorem) In the above theorem, a task i will meet its completion deadline Di if it satisfies the shown relation.

One Final Example (Taken from “Software Engineering Fundamentals” by A One Final Example (Taken from “Software Engineering Fundamentals” by A. Behforooz) Consider the following 3 dependent and periodic tasks Task 1: C=30; T=100; D=100; E=0; B=0 Task 2: C=70; T=200; D=200; E=0; B=30 Task 3: C=30; T=200; D=150; E=50; B=6 Using theorem 3: 1 = 30/100 = 0.3  schedulable 1,2 = (30/100)+(70+30)/200 = 0.8  schedulable 1,2,3 = (30/100)+(70/200)+(30+50+6)/200 = 1.08  NOT schedulable Using theorem 4: W3(t)=t0=30+70+30+6 = 136 ms N1,1 = 1+(136-100)/100 = 2  t1 = 136+(2-1)30 = 166 ms (beyond 3 deadline) Changing task priority from (1-2-3) to (1-3-2) results in: W3(t)=t0=30+30+70+30 = 166 ms

Priority Inversion Meaning: A lower priority task executing before one with a higher priority Execution time = 5 ms Period = 20 ms Priority = 1 Execution time = 15 ms Period = 30 ms Priority = 2 Periodic Task 1 Periodic Task 2 Execution time = 25 ms Period = 140 ms Priority = 3 Periodic Task 3 Usage: 1(5 ms), 3(40 ms) Server Task Lockable resource

Timeline of previous slide Time (ms) 80 20 30 60 40 90 100 120 150 140 180 210 240 160 Task 1 5 15 Task 2 15 10 5 Task 3 5 10 30 Server

Expanded Portion of Previous Timeline 80 60 40 90 100 Time (ms) Task 1 5 15 Task 2 15 5 10 Task 3 10 5 ??... Server

Modified and Augmented Portion from Previous Slide 80 60 40 90 100 Time (ms) 120 140 150 160 1 queued 1 queued Task 1 15 5 Task 2 15 5 10 20 Task 3 10 15 5 55 Server

A Solution to Priority Inversion Use of Priority Ceiling Protocol (PCP) which is made up of 3 rules: Pre-emption rule Regular priority pre-emption Inheritance rule If a lower priority task blocks a higher priority one, the lower inherits the priority of the higher priority task Priority ceiling rule A task cannot get at a shared resource if it’s priority is less than any of the ceilings of the shared resources currently locked by other tasks

Bad PCP usage Example Assume tasks A, B, C, and D have priorities as A highest and D lowest. The tasks use 2 server tasks as follows: S1 used by A and C; S2 used by tasks B and D. Time (ms) Task A 1 Task B 2 Task C 1 3 Task D A C B S1 S2

McCabe’s R-T System Analysis Uses a modified interpretation of standard DFDs Transform  Markov process state (a probabilistic queuing model) Data flow  Transitions Therefore the following reasoning may be applied: 0 < pij ] 1.0 (p: transitional probability) True for each flow path pi pj pij

Example of McCabe’s R-T System Analysis Due to the lengthiness of this example it was thought better to hand it out as an MS-Word97 document. Therefore, it is available online and in hard-copy form separately. Please refer to it while it is explained during lecture sessions.