Chapter 6 Dynamic Priority Servers

Slides:



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

Chapter 7 - Resource Access Protocols (Critical Sections) Protocols: No Preemptions During Critical Sections Once a job enters a critical section, it cannot.
Priority Inheritance and Priority Ceiling Protocols
Scheduling Algorithms for Multiprogramming in a Hard Real-Time Environment (then and now) EECS 750 – Spring 2006 Presented by: Shane Santner, TJ Staley,
1 EE5900 Advanced Embedded System For Smart Infrastructure RMS and EDF Scheduling.
CPE555A: Real-Time Embedded Systems
CSE 522 Real-Time Scheduling (4)
Chapter 5 – Fixed-Priority Servers Typical Real-Time systems are hybrids characterized by: periodic tasks that execute critical control activities aperiodic.
Module 2 Priority Driven Scheduling of Periodic Task
Operating Systems1 5. Process and thread scheduling 5.1 Organization of Schedulers – Embedded and Autonomous Schedulers 5.2 Scheduling Methods – A Framework.
CPU SCHEDULING RONG ZHENG. OVERVIEW Why scheduling? Non-preemptive vs Preemptive policies FCFS, SJF, Round robin, multilevel queues with feedback, guaranteed.
Sporadic Server Scheduling in Linux Theory vs. Practice Mark Stanovich Theodore Baker Andy Wang.
Problem 12: Large Distributed Systems ECU1 BUS CC1 ECU2CC2 ECU3CC3 S1 S2 S3 S4 S5 5 Real-Time Input Streams - with jitter - with bursts - deadline > period.
Problem 11: Complex Hierarchical Scheduling Full Processor FP T3T2 T4T1 EDF T6T5 RM T10T9T8T7 EDFSPS DPS 10 Tasks - with jitter - with bursts - deadline.
CS 3013 & CS 502 Summer 2006 Scheduling1 The art and science of allocating the CPU and other resources to processes.
Fixed-Priority Servers
Deterministic 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.
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
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.
Operating System Concepts and Techniques Lecture 5 Scheduling-1 M. Naghibzadeh Reference M. Naghibzadeh, Operating System Concepts and Techniques, First.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Combined Scheduling of Periodic and Aperiodic Tasks.
MM Process Management Karrie Karahalios Spring 2007 (based off slides created by Brian Bailey)
Scheduling Aperiodic and Sporadic Jobs
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
1 Reducing Queue Lock Pessimism in Multiprocessor Schedulability Analysis Yang Chang, Robert Davis and Andy Wellings Real-time Systems Research Group 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.
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.
Object-Oriented Design and Implementation of the OE-Scheduler in Real-time Environments Ilhyun Lee Cherry K. Owen Haesun K. Lee The University of Texas.
6. Application mapping 6.1 Problem definition
Real Time Systems Real-Time Schedulability Part I.
- 1 -  P. Marwedel, Univ. Dortmund, Informatik 12, 2006 Universität Dortmund Periodic scheduling For periodic scheduling, the best that we can do is to.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
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.
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
Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2012 年 12 月 19 日 These slides use Microsoft clip.
Sandtids systemer 2.modul el. Henriks 1. forsøg m. Power Point.
CS333 Intro to Operating Systems Jonathan Walpole.
Undergraduate course on Real-time Systems Linköping University TDDD07 Real-time Systems Lecture 2: Scheduling II Simin Nadjm-Tehrani Real-time Systems.
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Lecture 6: Real-Time Scheduling
Embedded System Scheduling
Scheduling and Resource Access Protocols: Basic Aspects
Chapter 8 – Processor Scheduling
Lecture 24: Process Scheduling Examples and for Real-time Systems
Houssam-Eddine Zahaf, Giuseppe Lipari, Luca Abeni RTNS’17
Lecture 23: Process Scheduling for Interactive Systems
Chapter 6 Dynamic Priority Servers
Real Time Scheduling Mrs. K.M. Sanghavi.
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
NET 424: REAL-TIME SYSTEMS (Practical Part)
Processes and operating systems
Ch.7 Scheduling Aperiodic and Sporadic Jobs in Priority-Driven Systems
Real-Time Process Scheduling Concepts, Design and Implementations
Ch 4. Periodic Task Scheduling
Real-Time Process Scheduling Concepts, Design and Implementations
Presentation transcript:

Chapter 6 Dynamic Priority Servers We looked at fixed priority servers. The scheduling algorithms were based upon Rate Monotonic periodic scheduling, which limits guaranteed utilization to approximately 70%. We will now look at dynamic priority servers. The scheduling is based upon Earliest Deadline First. The most significant implication of this is that scheduling has higher bounds, approaching 100% utilization.

Scheduling Strategies for Fixed Priority Servers (Based upon Rate Monotonic (RM) scheduling for periodic tasks) Background Service First Come First Served (FCFS) service as availability permits Polling Server (PS) Pseudo periodic task(s) provides slot for serving aperiodic tasks Deferrable Server (DS) Unused capacity is saved for future aperiodic arrivals Priority Exchange Server (PE) “Loans” unusable capacity to ready periodic tasks Sporadic Server Loans unusable capacity to ready periodic tasks and delays recoup Slack Stealing Passive task steals unnecessary slack time in scheduling

Properties of Dynamic Priority Servers (Based upon Earliest Deadline First (EDF) scheduling for periodic tasks) All tasks are fully preemptable Using Dynamic Priority Servers, the tasks are schedulable if and only if:

Dynamic Priority Servers Dynamic Priority Exchange Server (DPE) Loans priority to periodic tasks, and recoups it at a lower priority later Dynamic Sporadic Server (DSS) Used server capacity is replenished some time after it has been consumed Total Bandwidth Server (TBS) Aperiodic tasks are assigned all available bandwidth immediately Earliest Deadline Late Server (EDL) Like Earliest Deadline Last, periodic tasks are scheduled as late of possible Improved Dynamic Priority Exchange Server (IPE) Identified EDL slack is used schedule using Dynamic Priority Exchange

Dynamic Priority Exchange Server Like Priority Exchange Server, whenever there are no aperiodic tasks to be served, Dynamic Priority Exchange Server exchanges priorities with periodic tasks and wastes as little time as possible. It also facilitates using the spare time when periodic tasks don’t use their worst case times.

Dynamic Priority Exchange Server

Dynamic Priority Exchange Server Example

Dynamic Priority Exchange – Reclaiming Spare Time

Dynamic Sporatic Server

Dynamic Sporadic Server Dynamic Sporadic Server always schedules with a relatively long far deadline. Therefore, the response of aperiodic tasks may be longer than necessary. A solution is to shorten the period of the Dynamic Sporadic Server, at the expense of more context switches.

Total Bandwidth Server Total Bandwidth Server schedules earlier deadlines for aperiodic tasks, BUT does it such that the overall utilization of the aperiodic load never exceeds the maximum value of Us. Each time an aperiodic request enters, the total bandwidth of the server is immediately assigned to it, WHENEVER POSSIBLE.

Total bandwidth Server

Earliest Deadline Late Server Note that the Total Bandwidth Server is conservative. There is slack time that could have been utilized to give the aperiodic tasks better response.

Earliest Deadline Late Server

Earliest Deadline Late Server Example

Improved Dynamic Priority Exchange Server EDL is overhead intensive. In Improved Dynamic Priority Exchange, the Dynamic Exchange Server is modified to use the idle times of EDL, yielding: a more efficient replenishment policy for the server the server is no longer periodic, and can be kept at the highest priority

Homework #6 Lecture 5/22 1) Schedule the following tasks with a Dynamic Sporadic Server with Cs = 2 and Ts = 6. 2) Solve the same scheduling problem with a Total Bandwidth Server having utilization Us = 1/3. 3) Solve the same scheduling problem with a Constant Bandwidth Server with Cs = 2 and Ts = 6.