Rate Monotonic (RM) Disadvantages of cyclic. TDDB47 Real Time Systems. Lecture 2: RM & EDF. Priority-based scheduling. States of a process



Similar documents
Real-Time Process Scheduling

Project Networks With Mixed-Time Constraints

An Analysis of Task Scheduling for a Generic Avionics Mission Computer

Checkng and Testng in Nokia RMS Process

Lecture 3: Force of Interest, Real Interest Rate, Annuity

Luby s Alg. for Maximal Independent Sets using Pairwise Independence

Module 2 LOSSLESS IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Schedulability Bound of Weighted Round Robin Schedulers for Hard Real-Time Systems

Generalizing the degree sequence problem

A hybrid global optimization algorithm based on parallel chaos optimization and outlook algorithm

The Greedy Method. Introduction. 0/1 Knapsack Problem

J. Parallel Distrib. Comput.

8.5 UNITARY AND HERMITIAN MATRICES. The conjugate transpose of a complex matrix A, denoted by A*, is given by

NON-CONSTANT SUM RED-AND-BLACK GAMES WITH BET-DEPENDENT WIN PROBABILITY FUNCTION LAURA PONTIGGIA, University of the Sciences in Philadelphia

1. Math 210 Finite Mathematics

Power-of-Two Policies for Single- Warehouse Multi-Retailer Inventory Systems with Order Frequency Discounts

Open Access A Load Balancing Strategy with Bandwidth Constraint in Cloud Computing. Jing Deng 1,*, Ping Guo 2, Qi Li 3, Haizhu Chen 1

A Priority Queue Algorithm for the Replication Task in HBase

Power Low Modified Dual Priority in Hard Real Time Systems with Resource Requirements

Solution: Let i = 10% and d = 5%. By definition, the respective forces of interest on funds A and B are. i 1 + it. S A (t) = d (1 dt) 2 1. = d 1 dt.

Extending Probabilistic Dynamic Epistemic Logic

Price Competition in an Oligopoly Market with Multiple IaaS Cloud Providers

3. Present value of Annuity Problems

1 Example 1: Axis-aligned rectangles

A generalized hierarchical fair service curve algorithm for high network utilization and link-sharing

DEFINING %COMPLETE IN MICROSOFT PROJECT

Logical Development Of Vogel s Approximation Method (LD-VAM): An Approach To Find Basic Feasible Solution Of Transportation Problem

Level Annuities with Payments Less Frequent than Each Interest Period

benefit is 2, paid if the policyholder dies within the year, and probability of death within the year is ).

FORMAL ANALYSIS FOR REAL-TIME SCHEDULING

2008/8. An integrated model for warehouse and inventory planning. Géraldine Strack and Yves Pochet

Recurrence. 1 Definitions and main statements

1.1 The University may award Higher Doctorate degrees as specified from time-to-time in UPR AS11 1.

Time Value of Money. Types of Interest. Compounding and Discounting Single Sums. Page 1. Ch. 6 - The Time Value of Money. The Time Value of Money

ANALYZING THE RELATIONSHIPS BETWEEN QUALITY, TIME, AND COST IN PROJECT MANAGEMENT DECISION MAKING

Efficient Bandwidth Management in Broadband Wireless Access Systems Using CAC-based Dynamic Pricing

Feature selection for intrusion detection. Slobodan Petrović NISlab, Gjøvik University College

Chapter 7: Answers to Questions and Problems

Institute of Informatics, Faculty of Business and Management, Brno University of Technology,Czech Republic

Descriptive Models. Cluster Analysis. Example. General Applications of Clustering. Examples of Clustering Applications

PERRON FROBENIUS THEOREM

Performance Analysis and Comparison of QoS Provisioning Mechanisms for CBR Traffic in Noisy IEEE e WLANs Environments

A DYNAMIC CRASHING METHOD FOR PROJECT MANAGEMENT USING SIMULATION-BASED OPTIMIZATION. Michael E. Kuhl Radhamés A. Tolentino-Peña

Trade Adjustment and Productivity in Large Crises. Online Appendix May Appendix A: Derivation of Equations for Productivity

Research Article Enhanced Two-Step Method via Relaxed Order of α-satisfactory Degrees for Fuzzy Multiobjective Optimization

An Adaptive Cross-layer Bandwidth Scheduling Strategy for the Speed-Sensitive Strategy in Hierarchical Cellular Networks

Linear Circuits Analysis. Superposition, Thevenin /Norton Equivalent circuits

An Alternative Way to Measure Private Equity Performance

QoS-based Scheduling of Workflow Applications on Service Grids

Finite Math Chapter 10: Study Guide and Solution to Problems

universitat Autónoma' de Barcelona

A role based access in a hierarchical sensor network architecture to provide multilevel security

Joint Scheduling of Processing and Shuffle Phases in MapReduce Systems

An MILP model for planning of batch plants operating in a campaign-mode

The Load Balancing of Database Allocation in the Cloud

Chapter 4 ECONOMIC DISPATCH AND UNIT COMMITMENT

Efficient Project Portfolio as a tool for Enterprise Risk Management

AN APPOINTMENT ORDER OUTPATIENT SCHEDULING SYSTEM THAT IMPROVES OUTPATIENT EXPERIENCE

A Binary Particle Swarm Optimization Algorithm for Lot Sizing Problem

SIMPLE LINEAR CORRELATION

v a 1 b 1 i, a 2 b 2 i,..., a n b n i.

QoS in the Linux Operating System. Technical Report

PSYCHOLOGICAL RESEARCH (PYC 304-C) Lecture 12

Using Series to Analyze Financial Situations: Present Value

Simple Interest Loans (Section 5.1) :

On the Interaction between Load Balancing and Speed Scaling

Lecture 3: Annuity. Study annuities whose payments form a geometric progression or a arithmetic progression.

A Performance Analysis of View Maintenance Techniques for Data Warehouses

J. Parallel Distrib. Comput. Environment-conscious scheduling of HPC applications on distributed Cloud-oriented data centers

7.5. Present Value of an Annuity. Investigate

A DISTRIBUTED REPUTATION MANAGEMENT SCHEME FOR MOBILE AGENT- BASED APPLICATIONS

General Auction Mechanism for Search Advertising

On the Interaction between Load Balancing and Speed Scaling

On the Optimal Control of a Cascade of Hydro-Electric Power Stations

Data Mining from the Information Systems: Performance Indicators at Masaryk University in Brno

The circuit shown on Figure 1 is called the common emitter amplifier circuit. The important subsystems of this circuit are:

This circuit than can be reduced to a planar circuit

Activity Scheduling for Cost-Time Investment Optimization in Project Management

denote the location of a node, and suppose node X . This transmission causes a successful reception by node X for any other node

Marginal Revenue-Based Capacity Management Models and Benchmark 1

8.4. Annuities: Future Value. INVESTIGATE the Math Annuities: Future Value

Maintenance Scheduling by using the Bi-Criterion Algorithm of Preferential Anti-Pheromone

An Adaptive and Distributed Clustering Scheme for Wireless Sensor Networks

Pricing Model of Cloud Computing Service with Partial Multihoming

Capacity Reservation for Time-Sensitive Service Providers: An Application in Seaport Management

A multi-start local search heuristic for ship scheduling a computational study

Transcription:

Dsadvantages of cyclc TDDB47 Real Tme Systems Manual scheduler constructon Cannot deal wth any runtme changes What happens f we add a task to the set? Real-Tme Systems Laboratory Department of Computer and Informaton Scence Lnköpng Unversty, Sweden Denes the advantages of concurrent programmng Whch? The lecture notes are partly based on lecture notes by Caln Curescu, Smn adjm- Tehran, Jörgen Hansson, Anders Törne. They also loosely follow Burns and Wellng book Real-Tme Systems and Programmng Languages. These lecture notes should only be used for nternal teachng purposes at Lnköpng Unversty. 29 pages 2 of 29 States of a process Prorty-based schedulng Every task has an assocated prorty Run task wth the hghest prorty At every schedulng decson moment Examples Rate Monotonc (RM) Statc prorty assgnment Earlest Deadlne Frst (EDF) Dynamc prorty assgnment And many others 3 of 29 4 of 29 Schedulablty Test Test to determne whether a feasble schedule exsts Suffcent + f test s passed, then tasks are defntely schedulable - f test s not passed, we don t know ecessary + f test s passed, we don t know - f test s not passed, tasks are defntely not schedulable Exact suffcent & necessary at the same tme Rate Monotonc (RM) 5 of 29 6 of 29

Assumpton Rate Monotonc All tasks have ther ntal release at tme 0 Each process s assgned a (unque) prorty based on ts perod; the shorter the perod, the hgher the prorty Assumes the Smple task model Fxed prorty schedulng Preemptve Unless stated otherwse 7 of 29 8 of 29 Example 1 Example 1 (cont d) Assume we have the followng task set OBS: not scheduled yet Scheduled wth RM 9 of 29 10 of 29 Schedulablty test for RM Example 2 Suffcent, but not necessary: = 1 C T 21 / 1 Taskset P1 P2 P3 Perod (T) 20 50 30 WCET (C) 7 10 5 ecessary, but not suffcent: = 1 C T 1 11 of 29 12 of 29

Harmonc perods Example 3 Taskset: Exact schedulablty test for RM f perods are harmonc: = 1 C T 1 Gantt chart: 13 of 29 14 of 29 The frst tme s the hardest Exact schedulablty test Theorem If all tasks meet ther frst deadlne, then they wll meet all future ones. Proof: paper by Lu and Layland, 1973 Why? The scedulablty of a gven taskset for RM can be decded by: Drawng a schedule Dong a response tme analyss Complexty: Pseudo-polynomal tme 15 of 29 16 of 29 Response tme analyss Optmalty of schedulng algorthms Tasks suffer nterference from hgher prorty tasks Response tme: the tme that passes snce the task s released and untl t fnshes R =C +I R =C Iteratve formula for calculatng response tme n+ w 1 =C w n j hp T j C j j hp R T j C j A scheduler s optmal f t always fnds a schedule when a schedulablty test ndcates there s one. Burns, 1991 An optmal schedulng algorthm s one that may fal to meet a deadlne f no other schedulng algorthm can meet t. Stankovc et al., 1995 An optmal schedulng algorthm s guaranteed to always fnd a feasble schedule, gven that a feasble schedule does exst. Hansson, 1998 17 of 29 18 of 29

Optmalty of RM What to do f not schedulable Change the task set utltsaton Rate Monotonc s optmal among fxed prorty schedulers by reducng C code optmsaton faster processor If we assume the Smple Process Model for the tasks Increase T for some process If your program and envronment allows t 19 of 29 20 of 29 RM characterstcs Easy to mplement. Drawback: May not gve a feasble schedule even f processor s dle at some ponts. Earlest Deadlne Frst (EDF) 21 of 29 22 of 29 Earlest Deadlne Frst (EDF) Schedulablty test for EDF Always runs the process that s closest to ts deadlne. Dynamc prorty schedulng Evaluated at run-tme What are the events that should trgger a prorty reevaluaton? Assumes the Smple task model Actually more relaxed: D < T Utltsaton test ecessary and suffcent Or exact test = 1 C T 1 Preemptve Unless stated otherwse 23 of 29 24 of 29

Optmalty of EDF Example 4 EDF s optmal among dynamc prorty schedulers Consder followng task set: P1 P2 WCET (C ) 2 4 Deadlne (D = T ) 5 7 If we assume the Smple Process Model for the tasks Is t schedulable wth EDF? Or a more relaxed one where D < T Is t schedulable wth RM? 25 of 29 26 of 29 Domno Effect EDF vs. RM EDF can handle tasksets wth hgher processor utlsaton. Example 4 not schedulable wth RMS! EDF has smpler exact analyss RMS can be mplemented to run faster at run-tme Depends on the OS But they usually lke fxed prortes more 27 of 29 28 of 29 Readng materal Dynamc Schedulng Chapter 13 n Burns & Wellngs Chapter 4 n Butazzo for the proofs of suffcent condton and optmalty 29 of 29 30 of 29