Structured Cyclic Schedule

Slides:



Advertisements
Similar presentations
Time Demand Analysis.
Advertisements

Clock-driven Static scheduling 5/24/2013Amrita-UB-MSES
ECE 493T9 Real Time Embedded System Tutorial Set 5 July 14, Spring 2008.
Table of Contents Finding the LCM of Expressions The LCD of the rational expressions is the same as the Least Common Multiple (LCM) of the two denominators.
Finding the LCM of Expressions The LCD of the rational expressions is the same as the Least Common Multiple (LCM) of the two denominators. When adding.
GCF & LCM - Monomials.
Greatest Common Factor
Least Common Multiple (LCM)
LECTURE 5 Learning Objectives  To apply division algorithm  To apply the Euclidean algorithm.
Highest Common Factors & Lowest common Multiples 9Y4 Tuesday 30 th November 2004.
Multiples. What are Multiples? A list of multiples for a particular number are that number’s times table.
Module 2 Clock-Driven Scheduling
Clock Driven Scheduling By Dr. Amin Danial Asham.
Least Common Multiple (LCM). Let’s Break It Down! Least  Smallest! Common  All numbers have it! Multiple  The product of a quantity! Definition:
Mean: The AVERAGE values of a set of numbers. The mean is found by ADDING all of the values, then DIVIDING by the number of values in the set of data.
Multiples and Factors.
Least Common Multiples and Greatest Common Factors Lesson 4.3.
Math – Least Common Multiple 1. The __________________________ of two numbers is the ___________ number that is a __________ of both the original.
LESSON #8 LCM: Lowest Common Multiple. WHAT IS A MULTIPLE?  A multiple is what you get when you multiply by a number.  A multiple is a product of two.
Clock Driven Scheduling
Greatest Common Factor and Least Common Multiples GCF and LCM.
Least Common Multiples
Topic #3: GCF and LCM What is the difference between a factor and a multiple? List all of the factors and the first 3 multiples of 6.
HCF AND LCM © Fail to plan, Plan to fail The true father of maths.
Number Theory: Prime and Composite Numbers
March 26, 2009 Who dares to teach must never cease to learn. ~John Cotton Dana.
Objective - To find the Least Common Multiple (LCM) of numerical and variable expressions and use it to compare and order fractions. Smallest number that.
Divisibility and Primes
Multiply to find the number of pictures in all.
Least Common Multiples and Greatest Common Factors
Find LCM The least common multiple is the smallest of the common multiples Warm-Up: CR on Integers.
Graphing a Linear Inequality
Positive Numbers and the Number Line
Clock Driven Scheduling
Measures of Central Tendency & Range
Linear Inequalities.
Fractions Review.
Positive Numbers and the Number Line
Fractions Review.
Least Common Multiple LCM 2 Methods
Clock-driven Static scheduling
Clock-driven Static scheduling
Fraction IX Least Common Multiple Least Common Denominator
Warm Up Simplify:.
Warm Up Simplify:.
Least Common Multiples
Clock-driven Static scheduling
Warm Up Simplify:.
Powers of 10 Add 1 to the power Subtract 1 from the power
Greatest Common Factor and Least Common Multiple
23 ×
Least common multiple Lesson 1.3.
Clock-driven Static scheduling
Fraction Addition.
Lesson 7.4 Solving by Multiplication
Fractions: Least Common Multiple Least Common Denominator
The table shows the reasons that students in 6th – 12th grade read.
Linear Inequalities.
NET 424: REAL-TIME SYSTEMS (Practical Part)
When you replace the equals sign in a linear equation by one of the inequality symbols, you now have a linear inequality. Examples: 1 2 y > x + 1 2x –
Least common multiple of three numbers
Factor vs Multiple 24 Factors Multiples.
GCF and LCM.
LCMs and GCFs Griffin Middle School 6th Grade Math.
Finding The Least Common Multiple
Number Theory.
When you replace the equals sign in a linear equation by one of the inequality symbols, you now have a linear inequality. Examples: 1 2 y > x + 1 2x –
Ordering rational numbers
Least Common Multiples and Greatest Common Factors
Presentation transcript:

Structured Cyclic Schedule Example Structured Cyclic Schedule

Question: The following system of periodic tasks is to be scheduled and executed according to a structured cyclic schedule with fixed frame size. T1=(4, 1), T2=(5,1.8), T3=(20,1) and T4=(20,2). What is the appropriate frame size?( Show your work including LCM and GCD calculation ) What do the resulting cyclic scheduler tables look like (show the first 4 frame only)?

Jobs to start and complete execution within a single frame: What is the appropriate frame size?   Eq.1: Jobs to start and complete execution within a single frame: f ≥ max(e1, e2, …, en) f ≥max(1,1.8,1,2) thus: f ≥ 2

Eq.2: The hyper-period should be an integer multiple of the frame size (f divides evenly into the period of at least one task): [pi/f]- pi/f =0

How to approach equation 2:   Calculate the hyper-period = lcm (4,5,20,20) = 20 Pick the smallest period and largest period of your tasks. (in this case 2 and 20) Thus your possible value frame (f) values are 2, 20 and any number in between 2 and 20 which divides evenly with the hyper- period of the system. Dividing the hyper- period which is 20 with all the values in the range of 2 to 20, you shall found that 2,4,5,10 and 20 are the only number which divides evenly with 20 and the period of at least one task. Thus, your possible f value as per equation 2 is concern is: f {2, 4,5,10,20}

Eq.3: At least one frame boundary between release time of a job and its deadline: 2*f – gcd(pi, f ) ≤ Di for i = 1, 2, …, n

Let us try frame size 2 2 x 2 – gcd (4,2) ≤ 4 ≡ 4 – 2 ≤ 4 TRUE 2 x 2 – gcd (5,2) ≤ 5 ≡ 4 – 1 ≤ 5 TRUE 2 x 2 – gcd (20,2) ≤ 20 ≡ 4 – 2 ≤ 20 TRUE Let us try frame size 4 2 x 4 – gcd (4,4) ≤ 4 ≡ 8 – 4 ≤ 4 TRUE 2 x 4 – gcd (5,4) ≤ 5 ≡ 8 – 1 ≤ 5 FALSE Let us try frame size 5 2 x 5 – gcd (4,5) ≤ 4 ≡ 10 – 1 ≤ 4 FALSE Let us try frame size 10 2 x 10 – gcd (4,10) ≤ 4 ≡ 20 – 2 ≤ 4 FALSE  Let us try frame size 20 2 x 20 – gcd (4,20) ≤ 4 ≡ 40 – 4 ≤ 4 FALSE

The other possible values for f ( as in eq 2) fails to fulfill equation 3. Thus, only the frame size 2 is suitable for scheduling.  

What do the resulting cyclic scheduler tables look like (show the first 4 frame only) Start Time Jobs To Run T1.1, T3.1 1 2 T2.1 4 T1.2 3 6 T4.1

Even though in this example we could successfully find a suitable frame size that satisfies all the three equations, it is quite probable that a suitable frame size may not exist for many problems. In such cases, to find a feasible frame size we have to split the task ( or a few tasks) that is (are) causing violation of the equations into smaller sub-tasks that can be scheduled in different frames.