Design of Real-Time Software

Size: px
Start display at page:

Download "Design of Real-Time Software"

Transcription

1 Design of Real-Time Software Analysis of hard real-time tasks under fixed-priority pre-emptive scheduling Reinder J. Bril Technische Universiteit Eindhoven Department of Mathematics and Computer Science System Architecture and Networking Group P.O. Box 513, 5600 MB Eindhoven, The Netherlands January

2 Overview Context Schedulability conditions Basic response time analysis Jitter analysis for periodic tasks Resource sharing Practical factors Concluding remarks References 2

3 Context Overview Basic scheduling model (Recap) Motivation for FPPS Schedulability conditions Basic response time analysis Jitter analysis for periodic tasks Resource sharing Practical factors Concluding remarks References 3

4 A basic scheduling model Model (of a system in general): Abstraction (of that system) leaving out details irrelevant to a given set of criteria preserving the properties of interest Scheduling model (for Real-Time SW) explicitly addresses relevant issues in real-time systems...but must be mapped eventually onto an execution environment OS, hardware, run-time system,... 4

5 Event: Reinder J. Bril, A basic scheduling model indicates a state change requiring a timely response, i.e. neither too early nor too late; external (e.g. at RT(C)S boundary), internal (e.g. a task triggering another), or timed. Task: actions in response of event. Processor: executes a single task at the time. Schedule: assignment of tasks to processor; set on n tasks 1 n ; : R {0, 1, n}, where (t) = 0 means idle. 5

6 Schedule: example Schedule (t) of three independent periodic tasks 1, 2, 3, where 1 has highest priority and 3 lowest priority. 6

7 Events: implicit Tasks: Initial basic assumptions Reinder J. Bril, released strictly periodically, elastically, or sporadically; independent; no self-suspension. Processor: only one Scheduling algorithm: fixed-priority pre-emptive scheduling (FPPS), i.e. processor is used to execute the highest priority task that has work pending; non-idling; tasks have unique priorities; Overhead of scheduling and context switching is ignored. 7

8 Basic model for a task Task i : sequence of jobs ik with k Z. Basic timing notions (taken from R) for ik activation time a ik ; start time s ik ; finalization time f ik ; Derived timing notions response (or active) interval [a ik, f ik ); response time R ik = f ik a ik ; phasing i = a i,0 ; Reinder J. Bril, r.j.bril@tue.nl 8

9 Basic model for a task continued (Best-case and worst-case) characteristics: deadline: R ik [BD i, WD i ], where BD i R + {0}, WD i R + ; computation time C ik [BC i, WC i ], where BC i, WC i R + ; inter-arrival time (or period): strictly periodic task (i.e. without activation jitter): period T i R + ; elastic task: best-case period BT i and worst-case period WT i, where WT i < BT i ; sporadic task: worst-case period WT i (best-case period BT i ) deadlines and inter-arrival times: 0 BD i WD i WT i Notation: we will also use WT i and BT i for periodic tasks. 9

10 Relative deadlines: Deadlines best-case BD i (typically assumed to be zero); worst-case WD i ; Absolute deadlines: best-case bd ik = a ik + BD i ; worst-case wd ik = a ik + WD i ; Reinder J. Bril, r.j.bril@tue.nl 10

11 Overview of basic assumptions Single processor; Set on n tasks 1 n : (released strictly periodically: a ik = i + kt i ); (independent: no resource sharing and no precedence relations); arbitrary phasing; `ready to run upon activation; no self-suspension; a job does not start before previous job completed (f i,k-1 s ik ); hard deadlines (i.e. BD i R ik WD i ) and WD i WT i. Scheduling: (FPPS and unique priorities); (instantaneous pre-emption and non-idling); overhead of context switching and task scheduling is ignored; Notational convenience: tasks are given in order of decreasing priority, i.e. 1 has highest priority and n has lowest priority. 11

12 De-facto standard Motivation for FPPS Supported by commercial RTOS Rate monotonic analysis (RMA): Reinder J. Bril, Adopted by leading companies and institutions [Obenza 94]: Boeing, Honeywell, IBM, McDonnell Douglas, NASA, ; IBM research, CMU/SEI. Usage: From simple control applications to large defense and aero-space applications. Documentation [Klein et al 93]: Practitioner s Handbook by CMU/SEI (KAP). 12

13 Overview Context Schedulability conditions Exact, necessary, and sufficient conditions; Recapitulation of [Liu and Layland 73]. Basic response time analysis Jitter analysis for periodic tasks Resource sharing Practical factors Concluding remarks References 13

14 Schedulability conditions Requirement Req: all jobs of all tasks of must meet their deadline constraints, i.e. BD i R ik WD i for all i and all k. Derived notions for task i worst-case response time WR i def WR i supr, k where is the phasing of the set ; critical instant: a (hypothetical) instant that leads to WR i ; best-case response time BR i def, k BR i inf R ( ) optimal instant: a (hypothetical) instant that leads to BR i. ik ik ( ) 14

15 Schedulability conditions Re-phrased requirement Req: BD i BR i WR i WD i for all i and all k; note: a best-case part: BReq = BD i BR i, and a worst-case part: WReq = WR i WD i. Types of conditions: Exact condition EC: EC Req Sufficient condition SC: SC Req Necessary condition NC: NC Req Specializations for best-case and worst-case, e.g. best-case sufficient condition BSC: BSC BReq Examples: BC i BD i : best-case sufficient condition; WC i WD i : worst-case necessary condition. 15

16 Recapitulation of [Liu and Layland 73] Assumptions (additional): fixed computation time and inter-arrival time: i.e. C i = BC i = WC i and T i = BT i = WT i ; best-case deadlines ignored: i.e. assume BD i = 0; worst-case deadlines equal to periods: i.e. WD i = T i. Utilization U i = C i / T i : utilization factor of task i ; U = U i : (processor) utilization factor. Necessary condition: U 1. Th. 1: A critical instant occurs upon a simultaneous release of a task with all its higher priority tasks. 16

17 Critical Instant Reinder J. Bril, Task 1 Task 2 Task 2 is preempted by a single activation of the higher priority task 1. C 2 + C 1 Task 1 Task 2 The interference increases when the activation of task 1 is advanced. C 2 + 2C time 17

18 Recapitulation of [Liu and Layland 73] Th. 2: rate monotonic priority assignment (RMA) is an optimal fixed priority assignment, i.e. if a set of tasks can be scheduled based on a fixed priority assignment, then can be scheduled based on RMA. Note: Th. 2 only holds for arbitrary phasing; see [Goossens et al 97]. Sufficient condition: U n(2 1/n 1) also referred to as `Liu and Layland bound LL(n); adding tasks increases U and decreases `RHS ; converges to ln(2) ( 0.69) for n ; for the proof, see [Devillers et al 00]. 18

19 Alternative utilization bound Sufficient condition `Hyperbolic bound HB(n) [Liu 00]* HB( n) : i1 improves LL(n), i.e. LL(n) HB(n); the bound is `tight ; Note: n ( U i 1) 2 adding tasks increases `LHS. * independently conceived by [Bini et al 01]. 19

20 Exercises Reinder J. Bril, Consider the exercises C.1, C.2, and C.3 of the module Implementing the real-time task model. Determine the utilization of the task-sets. Determine whether or not the necessary condition U 1 holds for the task-sets. Determine whether or not the sufficient conditions for the task-sets holds: LL-bound; Hyperbolic bound. 20

21 An example (leading) Task set consisting of 3 tasks: Task T C U Notes: RM priority assignment and D i = T i (RMS); Necessary condition: U 1 + U 2 + U 3 = , hence could be schedulable; Sufficient condition: LL(n): U n (2 1/n 1): U 1 + U 2 = 0.88 > `LL(2) 0.83, therefore U 1 + U 2 +U 3 > `LL(3), hence another test required; HB(n): (U 1 + 1)(U 2 + 1) 2.05 > 2, therefore `HB(3) > 2, hence another test required. 21

22 Overview Context Schedulability conditions Basic response time analysis Worst-case response time analysis Best-case response time analysis Jitter analysis for periodic tasks Resource sharing Practical factors Concluding remarks References 22

23 Basic response time analysis Assumptions ( reset ) deadlines at most equal to periods: WD i WT i ; worst-case and best-case characteristics; arbitrary (but fixed and unique) priority assignments. Worst-case response time analysis (Critical instant); Techniques: timeline + calculation Best-case response time analysis Introduction Optimal instant; Techniques: timeline + calculation. 23

24 Worst-case response time analysis Critical instant for task i : i assumes its WR i. A critical instant for task i : Task i is released simultaneously with all tasks with a higher priority. The highest amount of pre-emption of a task is found after a simultaneous release of higher priority tasks. General for a set of tasks. Note: A rather than the, because there may be more instants for which i assumes its WR i. 24

25 WCRT Techniques Time line: Task 1 Task 2 Task time WR 1 = 3 WR 2 = 17 WR 3 = 56 25

26 WCRT Techniques Calculation: Recursive equation for task i : x x WC i WC ji WTj WR i is the smallest positive solution Assume a task j with a higher priority than i ; x/wt j denotes the maximum number of preemptions of task i in an interval [0, x) by task j ; x/wt j WC j denotes the maximal preemption time of task i in an interval [0, x) by task j. Intuition: LHS: amount of time available (or provided) in [0, x); RHS: max. amount of time requested in [0, x) by i and j < i j. j 26

27 WCRT Techniques Calculation: Iterative procedure: WR WR (0) i ( k 1) i WC Stopped when either: i WC i ji WC ji the same value is found for two successive iterations; or the deadline WD i is exceeded (hence, not schedulable). All intermediate values are at most equal to WR i ; Terminates when j<i U j < 1. See [Harter 84], [Joseph et al 86] or [Audsley et al 91]. j WR WT ( k ) i j WC j 27

28 Example for task 3 : WCRT Techniques WR 3 (0) = C 3 + j < 3 C j = = 19 Reinder J. Bril, r.j.bril@tue.nl WR 3 (1) = C 3 + j < 3 WR 3 (0) /T j C j = / /1911 = = 22 WR 3 (2) = / /1911 = = 36 WR 3 (3) = / /1911 = = 39 WR 3 (4) = / /1911 = = 50 WR 3 (5) = / /1911 = = 53 WR 3 (6) = / /1911 = = 56 WR 3 (7) = / /1911 = = 56 Because WR 3 (6) = WR 3 (7) = 56 D 3 = T 3, WR 3 =

29 WCRT Techniques Calculation (visualization): Task Task Task WR (0) = 19 WR (6) 3 = WR (7) 3 = = 56 WR (1) 3 = = 22 WR 3 (2) = = time 29

30 WCRT Exercises Reinder J. Bril, Consider the exercises C.1, C.2, and C.3 of the module Implementing the real-time task model. Determine the worst-case response times of the tasks under FPPS. 30

31 WCRT Exercise* Task set consisting of 3 tasks: Task WT = WD WC WU Reinder J. Bril, r.j.bril@tue.nl Determine `worst-case schedulability of. Draw a time line with a critical instant for. Explain, using the time line, why 25 and 27 are also solutions for the recursive equation for WR 3. 31

32 Best-case response time analysis See [Redell et al 02] or [Bril et al 04]. Motivation Best-case and worst-case notions are duals: Best-case: earliest, shortest, or minimal; Worst-case: latest, longest, or maximal; Best-case deadline: response no earlier than BD May simplify design and reduce cost: No need to delay (i.e. buffer) output artificially; Desirable for analysis in distributed systems: but also applies to single-processor systems; examples: airbag, engine control. 32

33 BCRT Optimal instant Reinder J. Bril, Optimal instant for task i : i assumes its BR i. An optimal (or favourable) instant: Job ik ends simultaneously with the release of all tasks with a higher priority, and ik s release time is equal to its start time, i.e. a ik = s ik. The lowest amount of pre-emption of a task is found before a simultaneous release of higher priority tasks. Specific for each task! Note: An rather than the, because there may be more instants for which i assumes its BR i. 33

34 BCRT Techniques Time line: optimal instant for 2 Task 1 Task 2 T 2 BR 2 = 14 f 2,k time 34

35 BCRT Techniques Time line: optimal instant for 3 Task 1 Task 2 Task 3 T 3 BR 3 = 22 f 3,k time 35

36 BCRT Techniques Calculation: Recursive equation for task i : BR i is the largest positive solution Assume a task j with a higher priority than i ; x/bt j 1 denotes the minimal number of preemptions of task i in an interval (0, x) by task j ; (x/bt j 1)BC j denotes the minimal preemption time of task i in an interval (0, x) by task j. Intuition: x x BC i BC ji BT 1 j LHS: amount of time available (or provided) in (0, x); RHS: min. amount of time requested in (0, x) by i and j < i j. j 36

37 Calculation: Iterative procedure: BR BR (0) i ( k 1) i Stopped when: BCRT Techniques WR i BC i ji BR BT ( k ) i the same value is found for two successive iterations; or the deadline BD i is exceeded (hence, not schedulable). All intermediate values are at least equal to BR i. j 1BC j 37

38 Example for task 3 : Assume BD i = 0. BR 3 (0) = WR 3 = 56 BCRT Techniques Reinder J. Bril, r.j.bril@tue.nl BR 3 (1) = C 3 + j < 3 BR 3 (0) /T j 1C j = / / = = 42 BR 3 (2) = / / = = 39 BR 3 (3) = / / = = 36 BR 3 (4) = / / = = 25 BR 3 (5) = / / = = 22 BR 3 (6) = / / = = 22 Because BR 3 (5) = BR 3 (6) = 22 BD 3 = 0, BR 3 =

39 BCRT Techniques Calculation (visualization): Task Task Task BR (0) 3 = WR 3 = = 56 BR BR(1) (5) 3 3 = = 5 BR (6) = = = 22 f 3,k time BR 3 (2) = = 39 39

40 BCRT Exercises Reinder J. Bril, Consider the exercises C.1, C.2, and C.3 of the module Implementing the real-time task model. Determine the best-case response times of the tasks under FPPS. Can all tasks assume their best-case response times for a single phasing? 40

41 BCRT Exercise* Task set consisting of 3 tasks: Task BT BC = BD BU Determine the best-case response times BR i for all three tasks of. Draw a time line with an optimal instant for 3. Explain, using the time line, why 3 is also a solution for the recursive equation for BR 3. 41

42 Overview Context Schedulability conditions Basic response time analysis Jitter analysis for periodic tasks Distributed systems analysis Response jitter Activation jitter Finalization and activation jitter Resource sharing Practical factors Concluding remarks References 42

43 Distributed systems analysis Finalization of a task f on one processor activates a task a on another processor: Periodic tasks: Finalization jitter FJ: variation in finalization times; Activation jitter AJ: variation in activation times (e.g. output of one task triggers a next task); Example: multimedia in a networked environment. Elastic tasks: Minimal inter-finalization time of f determines WT a of task a. Maximal inter-finalization time of f determines BT a of task a. Sporadic tasks: Minimal inter-finalization time of f determines WT a of task a. 43

44 Distributed systems analysis Example: f CPU-1 a, k CPU-2 f triggers a FJ f causes AJ a, which influences response times of both a and k Goal jitter analysis: Determine schedulability in the context of jitter, hence, determine response (or finalization) times. Note: strictly spoken, the variations in the delay of the messages on the bus should be taken into account as well 44

45 Advanced exercises Reinder J. Bril, Proof that the type of a is determined by f, e.g. a is an elastic task if f is an elastic task. For both an elastic and a sporadic task f, express WT a in terms of WT f, WR f, and BR f. For an elastic task, express BT a in terms of BT f, WR f, and BR f. How about BT a for a sporadic task? 45

46 Jitter analysis for periodic tasks Types of (absolute) jitter (recap): Response jitter RJ i : variations in response times; Activation (or release) jitter AJ i : variation in release times (e.g. output of one task triggers a next task); Finalization (or end) jitter FJ i : variation in end times; 46

47 Response jitter Response jitter RJ i of a task i : RJ i def sup( R, k, l ik ( ) R il ( )) A bound on response jitter RJ i WR i BR i because WR i and BR i are not necessarily assumed for the same phasing 47

48 Example (leading): WR 2 = 17, BR 2 = 14; Response jitter Reinder J. Bril, r.j.bril@tue.nl WR 2 and BR 2 both assumed for a single phasing, hence, FJ 2 = WR 2 BR 2 = 3, and the bound for RJ 2 is therefore tight. Task 1 Task time 48

49 Activation jitter of periodic tasks Assumptions: revised assumption: WD i WT i AJ i. lifted restrictive assumption: sup( a a ( k l) T ) k, l ik il Worst-case response times: See [Audsley et al 93] or [Tindell et al 94]; Critical instant revisited: Task i is released simultaneously with all tasks with a higher priority and all tasks with a higher priority experience a maximal release delay at that simultaneous release, and a minimal release delay at subsequent releases. Hence, a maximal pre-emption of i occurs. i AJ i 49

50 Activation jitter of periodic tasks New example: Task T C AJ T 1 = 9 AJ 1 = Task 1 Notes: WR 2 is independent of AJ 2 ; WR 2 increases 3 due to AJ 1. Task 2 20 T 2 = time 50

51 Activation jitter of periodic tasks Worst-case response times: Recursive equation for task i : x WC i ji x AJ WTj j WC j Where AJ j is the activation jitter of j. WR i is the smallest positive solution of the equation. Iterative procedure: Similar to the case without jitter. Note: equation also holds for elastic and sporadic tasks! Because AJ j = 0 for those tasks. 51

52 Activation jitter of periodic tasks Best-case response times: Optimal instant revisited: Job ik ends simultaneously with the release of all tasks with a higher priority, and ik s release time is equal to its start time, and all tasks with a higher priority experience a maximal release delay at that simultaneous release, and a minimal release delay at previous releases. Hence, a minimal pre-emption of i occurs. 52

53 Activation jitter of periodic tasks Same (new) example: Task T C AJ T 1 AJ Task 1 T 2 Notes: Task 2 BR 2 is independent of AJ 2 ; BR 2 does not change here. 14 f 2 time 53

54 Activation jitter of periodic tasks Best-case response times: Recursive equation for task i : x j BCi 1 ji BT j Where AJ j is the activation jitter of j, and w + = max{w,0}. BR i is the largest positive solution of the equation. Iterative procedure: x AJ Similar to the case without jitter. Note: equation also holds for elastic and sporadic tasks! Because AJ j = 0 for those tasks. BC j 54

55 Finalization and activation jitter Finalization jitter FJ i of a periodic task i : FJ i def sup(, k, l f ik ( ) f il ( ) ( k l) T i ) A bound on finalization jitter: FJ i AJ i WR i BR i because WR i and BR i are not necessarily assumed for the same phasing. Exercise: derive this latter bound 55

56 Response, finalization and activation jitter Example: T 1 AJ 1 RJ 2 = WR 2 BR 2 = = 6 FJ 2 = AJ 2 + WR 2 BR 2 = = 13 Task 1 T 2 AJ 2 RJ 1 = WR 1 BR 1 = 0 FJ 1 = AJ 1 = Task time BR 2 FJ 2 T 2 56

57 Advanced exercise Reinder J. Bril, Define worst-case processor utilization WU in the context of periodic tasks with activation jitter. Can you describe a (worst-case) necessary condition using WU? What about the analysis? This lecture considered elastic, periodic, and sporadic tasks. What is the effect of modeling a periodic task with jitter as an elastic task? a periodic task with jitter as a sporadic task? 57

58 Overview Context Schedulability conditions Basic response time analysis Jitter analysis for periodic tasks Resource sharing Practical factors Concluding remarks References 58

59 Response-time analysis Worst-case response time analysis: Blocking time B i : Longest time i can be blocked by a task with a lower priority. Depends on the resource access protocol. Includes blocking due to non-interrupt-able code of system-calls. Recursive equation for task i : x AJ x Bi WC i ji WTj WR i is the smallest positive solution Best-case response time analysis: Yet unknown. j WC j 59

60 Overview Context Schedulability conditions Basic response time analysis Jitter analysis for periodic tasks Resource sharing Practical factors From event to task activation Context switches Interrupts Concluding remarks References 60

61 From external event to task activation Steps: External event occurs; Detection by sensor; Interrupt generated by sensor may take some time before the bus is free Interrupt arrival at CPU may take some time before the interrupt is handled Immediate interrupt service may be pre-empted by higher priority interrupts Activation of the scheduler may be delayed to the next clock-tick Activation of the task hence, both a delay and potential jitter between the arrival of the external event and activation of the task! 61

62 Context switches Reinder J. Bril, Question: how many running jobs can a job pre-empt? Answer: at most 1! context switch i j Let CS denote the context-switch time of the system, i.e. max time the system spends on a context switch; optionally including time of the scheduler to service the event interrupt that triggered the context switch <dummy> 62

63 Context switches Extending the analysis: Replace C j by C j + 2CS; Replace C i by C i + 2CS; Questions: Reinder J. Bril, r.j.bril@tue.nl Can these extensions be applied for the necessary condition, sufficient condition, and response-time analysis? Motivate your answer. Can you ignore the context switch out-of a task for the response time analysis of that task, i.e. use C i + CS rather than C i + 2CS? Motivate your answer. 63

64 External interrupts The immediate interrupt service Let will pre-empt a running task ; even when the sporadic task handling the interrupt has a lower priority than. T k : the minimum inter-arrival time of the interrupt corresponding with sporadic task k ; s : the set of sporadic tasks; IH k : the cost of handling that interrupt. Extension of the recursive equation k s x T k IH k

65 Clock interrupt Simple (basic) approach: similar to external interrupts, i.e. extension of the recursive equation Refinement: x IH Tclk distinguish between clk a fixed cost to serve the clock interrupt; additional costs to move tasks from the waiting queue to the ready queue Question: How to model the additional costs?

66 Exercises Measure the overhead of the tick interrupt handler. 66

67 Overview Context Schedulability conditions Basic response time analysis Jitter analysis for periodic tasks Resource sharing Practical factors Concluding remarks References 67

68 Concluding remarks Many of the restrictive assumptions have been lifted, e.g. other dependencies between tasks e.g. precedence relations; tasks with varying priorities [Harbour et al 91]; arbitrary deadlines [Klein et al 93]; tasks with offsets; tasks that suspend themselves; limited-pre-emptive scheduling [Regher 02], [Bril et al 07]. Unlike worst-case response time analysis, best-case response time analysis has not been addressed yet for any of these lifted assumptions! Further elaboration falls outside the scope of this lecture, however. 68

69 Concluding remarks Be aware: The analysis presented has the explicitly stated assumptions as preconditions! For many situations, only looking at the first job upon a critical instant is not sufficient, even when deadlines are at most equal to periods. Instead, the response times of all jobs in a so-called busy (or level-i active) period have to be examined! Examples: tasks with varying priorities [Harbour et al 91]. preemption thresholds [Regehr 02]; Controller Area Network (CAN), see [Davis et al 07]; fixed-priority scheduling with deferred preemption (FPDS), see [Bril et al 07]. 69

70 References - I [Audsley et al 91] N.C. Audsley and A. Burns and M.F. Richardson and A.J. Wellings, Hard Real-Time Scheduling: The Deadline Monotonic Approach, In: Proc. 8 th IEEE Workshop on Real-Time Operating Systems and Software (RTOSS), pp , May [Audsley et al 93] N.C. Audsley and A. Burns and M.F. Richardson and K. Tindell and A.J. Wellings, Applying New Scheduling Theory to Static Priority Pre-emptive Scheduling, Software Engineering Journal, 8(5): , [Bini et al 01] E. Bini and G. Buttazzo and G. Buttazzo, A hyperbolic bound for the rate monotonic algorithm, In: Proc. 13 th Euromicro Conference on Real-Time Systems (ECRTS), pp , June [Bril et al 04] R.J. Bril, E.F.M. Steffens, and W.F.J. Verhaegh, Bestcase response times and jitter analysis of real-time tasks, Journal of Scheduling, 7(2): , [Bril et al 07] R.J. Bril, J.J. Lukkien, and W.F.J. Verhaegh, Worst-case response time analysis of real-time tasks under fixed-priority scheduling with deferred preemption revisited, In: Proc. 19th Euromicro Conference on Real-Time Systems (ECRTS 07), pp , July

71 References - II [Davis et al 07] R.I. Davis and A. Burns and R.J. Bril and J.J. Lukkien, Controller Area Network (CAN) Schedulability Analysis: Refuted, Revisited and Revised", Real-Time Systems, ISSN (online), January 2007, ISSN (print), 35(3): , April [Devillers et al 00] R. Devillers and J. Goossens, Liu and Layland's schedulability test revisited, Information Processing Letters, 73(5-6): , March [Goossens et al 97] J. Goossens and R. Devillers, The non-optimality of the monotonic priority assignments for hard real-time offset free systems, Real-Time Systems, 13(2): , September [Harbour et al 91] M. Gonzalez Harbour, M.H. Klein, J.P. Lehoczky Fixed priority scheduling of periodic tasks with varying execution priority. In: Proc. 12 th IEEE Real-Time Systems Symposium, pp , [Harter 84] P. Harter, Response times in level-structured systems, Department of Computer Science, University of Colorado, USA, Tech. Rep. CU-CS , [Joseph et al 86] M. Joseph and P. Pandya, Finding Response Times in a Real-Time System, The Computer Journal, 29(5): ,

72 References - III [Klein et al 93] M.H. Klein, T. Ralya, B. Pollak, R. Obenza, and M. González Harbour, A Practitioner s Handbook for Real-Time Analysis: Guide to Rate Monotonic Analysis for Real-Time Systems, Kluwer Academic Publishers (KAP), [Liu and Layland 73] C.L. Liu and J.W. Layland, Scheduling Algorithms for Multiprogramming in a Real-Time Environment, Journal of the ACM, 20(1): 46-61, January [Liu 00] J.W.S. Liu, Real-Time Systems, Prentice Hall, [Obenza 94] R. Obenza, Guaranteeing real-time performance using RMA, Embedded Systems Programming, pp , [Redell et al 02] O. Redell and M. Sanfridson, Exact best-case response time analysis of fixed priority scheduled tasks, In: Proc. 14 th Euromicro Conference on Real-Time Systems (ECRTS), pp , June [Regehr 02] J. Regehr, Scheduling tasks with mixed pre-emption relations for robustness to timing faults, In: Proc. 23 rd IEEE Real-Time Systems Symposium, pp , [Tindell et al 94] K.W. Tindell and A. Burns and A.J. Wellings, An Extendible Approach for Analyzing Fixed Priority Hard Real-Time Tasks, Real-Time Systems, 6(2): ,

Execution times and execution jitter analysis of real-time tasks under fixed-priority pre-emptive scheduling

Execution times and execution jitter analysis of real-time tasks under fixed-priority pre-emptive scheduling Execution times and execution jitter analysis of real-time tasks under fixed-priority pre-emptive scheduling Reinder J. Bril 1, Gerhard Fohler 2, and Wim F.J. Verhaegh 3 1. Technische Universiteit Eindhoven

More information

Design of Real-Time Software

Design of Real-Time Software Design of Real-Time Software Reference model Reinder J. Bril Technische Universiteit Eindhoven Department of Mathematics and Computer Science System Architecture and Networking Group P.O. Box 513, 5600

More information

Worst-case response time analysis of real-time tasks under fixed-priority scheduling with deferred preemption revisited

Worst-case response time analysis of real-time tasks under fixed-priority scheduling with deferred preemption revisited Worst-case response time analysis of real-time tasks under fixed-priority scheduling with deferred preemption revisited Reinder J. Bril and Johan J. Lukkien Technische Universiteit Eindhoven (TU/e), en

More information

Converting existing analysis to the EDP resource model

Converting existing analysis to the EDP resource model Converting existing analysis to the EDP resource model Okwudire, C.G.U. Technische Universiteit Eindhoven (TU/e), Den Dolech 2, 612 AZ Eindhoven, The Netherlands c.g.u.okwudire@student.tue.nl Bril, R.J.

More information

IN4343 Real Time Systems April 9th 2014, from 9:00 to 12:00

IN4343 Real Time Systems April 9th 2014, from 9:00 to 12:00 TECHNISCHE UNIVERSITEIT DELFT Faculteit Elektrotechniek, Wiskunde en Informatica IN4343 Real Time Systems April 9th 2014, from 9:00 to 12:00 Koen Langendoen Marco Zuniga Question: 1 2 3 4 5 Total Points:

More information

Lecture 13. Real-Time Scheduling. Daniel Kästner AbsInt GmbH 2013

Lecture 13. Real-Time Scheduling. Daniel Kästner AbsInt GmbH 2013 Lecture 3 Real-Time Scheduling Daniel Kästner AbsInt GmbH 203 Model-based Software Development 2 SCADE Suite Application Model in SCADE (data flow + SSM) System Model (tasks, interrupts, buses, ) SymTA/S

More information

Embedded Systems Development

Embedded Systems Development Embedded Systems Development Lecture 3 Real-Time Scheduling Dr. Daniel Kästner AbsInt Angewandte Informatik GmbH kaestner@absint.com Model-based Software Development Generator Lustre programs Esterel programs

More information

Non-Preemptive and Limited Preemptive Scheduling. LS 12, TU Dortmund

Non-Preemptive and Limited Preemptive Scheduling. LS 12, TU Dortmund Non-Preemptive and Limited Preemptive Scheduling LS 12, TU Dortmund 09 May 2017 (LS 12, TU Dortmund) 1 / 31 Outline Non-Preemptive Scheduling A General View Exact Schedulability Test Pessimistic Schedulability

More information

RUN-TIME EFFICIENT FEASIBILITY ANALYSIS OF UNI-PROCESSOR SYSTEMS WITH STATIC PRIORITIES

RUN-TIME EFFICIENT FEASIBILITY ANALYSIS OF UNI-PROCESSOR SYSTEMS WITH STATIC PRIORITIES RUN-TIME EFFICIENT FEASIBILITY ANALYSIS OF UNI-PROCESSOR SYSTEMS WITH STATIC PRIORITIES Department for Embedded Systems/Real-Time Systems, University of Ulm {name.surname}@informatik.uni-ulm.de Abstract:

More information

Bounding the End-to-End Response Times of Tasks in a Distributed. Real-Time System Using the Direct Synchronization Protocol.

Bounding the End-to-End Response Times of Tasks in a Distributed. Real-Time System Using the Direct Synchronization Protocol. Bounding the End-to-End Response imes of asks in a Distributed Real-ime System Using the Direct Synchronization Protocol Jun Sun Jane Liu Abstract In a distributed real-time system, a task may consist

More information

Response Time Analysis for Tasks Scheduled under EDF within Fixed Priorities

Response Time Analysis for Tasks Scheduled under EDF within Fixed Priorities Response Time Analysis for Tasks Scheduled under EDF within Fixed Priorities M. González Harbour and J.C. Palencia Departamento de Electrónica y Computadores Universidad de Cantabria 39-Santander, SPAIN

More information

Embedded Systems 15. REVIEW: Aperiodic scheduling. C i J i 0 a i s i f i d i

Embedded Systems 15. REVIEW: Aperiodic scheduling. C i J i 0 a i s i f i d i Embedded Systems 15-1 - REVIEW: Aperiodic scheduling C i J i 0 a i s i f i d i Given: A set of non-periodic tasks {J 1,, J n } with arrival times a i, deadlines d i, computation times C i precedence constraints

More information

Real-Time Scheduling and Resource Management

Real-Time Scheduling and Resource Management ARTIST2 Summer School 2008 in Europe Autrans (near Grenoble), France September 8-12, 2008 Real-Time Scheduling and Resource Management Lecturer: Giorgio Buttazzo Full Professor Scuola Superiore Sant Anna

More information

Non-preemptive Fixed Priority Scheduling of Hard Real-Time Periodic Tasks

Non-preemptive Fixed Priority Scheduling of Hard Real-Time Periodic Tasks Non-preemptive Fixed Priority Scheduling of Hard Real-Time Periodic Tasks Moonju Park Ubiquitous Computing Lab., IBM Korea, Seoul, Korea mjupark@kr.ibm.com Abstract. This paper addresses the problem of

More information

Multiprocessor Scheduling of Age Constraint Processes

Multiprocessor Scheduling of Age Constraint Processes Multiprocessor Scheduling of Age Constraint Processes Lars Lundberg Department of Computer Science, University of Karlskrona/Ronneby, Soft Center, S-372 25 Ronneby, Sweden, email: Lars.Lundberg@ide.hk-r.se

More information

Scheduling Slack Time in Fixed Priority Pre-emptive Systems

Scheduling Slack Time in Fixed Priority Pre-emptive Systems Scheduling Slack Time in Fixed Priority Pre-emptive Systems R.I.Davis Real-Time Systems Research Group, Department of Computer Science, University of York, England. ABSTRACT This report addresses the problem

More information

Lecture 6. Real-Time Systems. Dynamic Priority Scheduling

Lecture 6. Real-Time Systems. Dynamic Priority Scheduling Real-Time Systems Lecture 6 Dynamic Priority Scheduling Online scheduling with dynamic priorities: Earliest Deadline First scheduling CPU utilization bound Optimality and comparison with RM: Schedulability

More information

Modeling Fixed Priority Non-Preemptive Scheduling with Real-Time Calculus

Modeling Fixed Priority Non-Preemptive Scheduling with Real-Time Calculus Modeling Fixed Priority Non-Preemptive Scheduling with Real-Time Calculus Devesh B. Chokshi and Purandar Bhaduri Department of Computer Science and Engineering Indian Institute of Technology Guwahati,

More information

Bounding the Maximum Length of Non-Preemptive Regions Under Fixed Priority Scheduling

Bounding the Maximum Length of Non-Preemptive Regions Under Fixed Priority Scheduling Bounding the Maximum Length of Non-Preemptive Regions Under Fixed Priority Scheduling Gang Yao, Giorgio Buttazzo and Marko Bertogna Scuola Superiore Sant Anna, Pisa, Italy {g.yao, g.buttazzo, m.bertogna}@sssup.it

More information

EDF Feasibility and Hardware Accelerators

EDF Feasibility and Hardware Accelerators EDF Feasibility and Hardware Accelerators Andrew Morton University of Waterloo, Waterloo, Canada, arrmorton@uwaterloo.ca Wayne M. Loucks University of Waterloo, Waterloo, Canada, wmloucks@pads.uwaterloo.ca

More information

Scheduling. Uwe R. Zimmer & Alistair Rendell The Australian National University

Scheduling. Uwe R. Zimmer & Alistair Rendell The Australian National University 6 Scheduling Uwe R. Zimmer & Alistair Rendell The Australian National University References for this chapter [Bacon98] J. Bacon Concurrent Systems 1998 (2nd Edition) Addison Wesley Longman Ltd, ISBN 0-201-17767-6

More information

Predictability of Least Laxity First Scheduling Algorithm on Multiprocessor Real-Time Systems

Predictability of Least Laxity First Scheduling Algorithm on Multiprocessor Real-Time Systems Predictability of Least Laxity First Scheduling Algorithm on Multiprocessor Real-Time Systems Sangchul Han and Minkyu Park School of Computer Science and Engineering, Seoul National University, Seoul,

More information

Real-Time and Embedded Systems (M) Lecture 5

Real-Time and Embedded Systems (M) Lecture 5 Priority-driven Scheduling of Periodic Tasks (1) Real-Time and Embedded Systems (M) Lecture 5 Lecture Outline Assumptions Fixed-priority algorithms Rate monotonic Deadline monotonic Dynamic-priority algorithms

More information

3. Scheduling issues. Common approaches 3. Common approaches 1. Preemption vs. non preemption. Common approaches 2. Further definitions

3. Scheduling issues. Common approaches 3. Common approaches 1. Preemption vs. non preemption. Common approaches 2. Further definitions Common approaches 3 3. Scheduling issues Priority-driven (event-driven) scheduling This class of algorithms is greedy They never leave available processing resources unutilized An available resource may

More information

Task Models and Scheduling

Task Models and Scheduling Task Models and Scheduling Jan Reineke Saarland University June 27 th, 2013 With thanks to Jian-Jia Chen at KIT! Jan Reineke Task Models and Scheduling June 27 th, 2013 1 / 36 Task Models and Scheduling

More information

CIS 4930/6930: Principles of Cyber-Physical Systems

CIS 4930/6930: Principles of Cyber-Physical Systems CIS 4930/6930: Principles of Cyber-Physical Systems Chapter 11 Scheduling Hao Zheng Department of Computer Science and Engineering University of South Florida H. Zheng (CSE USF) CIS 4930/6930: Principles

More information

Improved Priority Assignment for the Abort-and-Restart (AR) Model

Improved Priority Assignment for the Abort-and-Restart (AR) Model Improved Priority Assignment for the Abort-and-Restart (AR) Model H.C. Wong and A. Burns Department of Computer Science, University of York, UK. February 1, 2013 Abstract This paper addresses the scheduling

More information

Aperiodic Task Scheduling

Aperiodic Task Scheduling Aperiodic Task Scheduling Jian-Jia Chen (slides are based on Peter Marwedel) TU Dortmund, Informatik 12 Germany Springer, 2010 2017 年 11 月 29 日 These slides use Microsoft clip arts. Microsoft copyright

More information

CSE 380 Computer Operating Systems

CSE 380 Computer Operating Systems CSE 380 Computer Operating Systems Instructor: Insup Lee & Dianna Xu University of Pennsylvania, Fall 2003 Lecture Note 3: CPU Scheduling 1 CPU SCHEDULING q How can OS schedule the allocation of CPU cycles

More information

Schedulability of Periodic and Sporadic Task Sets on Uniprocessor Systems

Schedulability of Periodic and Sporadic Task Sets on Uniprocessor Systems Schedulability of Periodic and Sporadic Task Sets on Uniprocessor Systems Jan Reineke Saarland University July 4, 2013 With thanks to Jian-Jia Chen! Jan Reineke July 4, 2013 1 / 58 Task Models and Scheduling

More information

Real-Time Systems. Event-Driven Scheduling

Real-Time Systems. Event-Driven Scheduling Real-Time Systems Event-Driven Scheduling Hermann Härtig WS 2018/19 Outline mostly following Jane Liu, Real-Time Systems Principles Scheduling EDF and LST as dynamic scheduling methods Fixed Priority schedulers

More information

EDF Scheduling. Giuseppe Lipari May 11, Scuola Superiore Sant Anna Pisa

EDF Scheduling. Giuseppe Lipari   May 11, Scuola Superiore Sant Anna Pisa EDF Scheduling Giuseppe Lipari http://feanor.sssup.it/~lipari Scuola Superiore Sant Anna Pisa May 11, 2008 Outline 1 Dynamic priority 2 Basic analysis 3 FP vs EDF 4 Processor demand bound analysis Generalization

More information

Scheduling Algorithms for Multiprogramming in a Hard Realtime Environment

Scheduling Algorithms for Multiprogramming in a Hard Realtime Environment Scheduling Algorithms for Multiprogramming in a Hard Realtime Environment C. Liu and J. Layland Journal of the ACM, 20(1):46--61, January 1973. 2 Contents 1. Introduction and Background 2. The Environment

More information

EDF Scheduling. Giuseppe Lipari CRIStAL - Université de Lille 1. October 4, 2015

EDF Scheduling. Giuseppe Lipari  CRIStAL - Université de Lille 1. October 4, 2015 EDF Scheduling Giuseppe Lipari http://www.lifl.fr/~lipari CRIStAL - Université de Lille 1 October 4, 2015 G. Lipari (CRIStAL) Earliest Deadline Scheduling October 4, 2015 1 / 61 Earliest Deadline First

More information

Optimal Utilization Bounds for the Fixed-priority Scheduling of Periodic Task Systems on Identical Multiprocessors. Sanjoy K.

Optimal Utilization Bounds for the Fixed-priority Scheduling of Periodic Task Systems on Identical Multiprocessors. Sanjoy K. Optimal Utilization Bounds for the Fixed-priority Scheduling of Periodic Task Systems on Identical Multiprocessors Sanjoy K. Baruah Abstract In fixed-priority scheduling the priority of a job, once assigned,

More information

Real-Time Systems. Event-Driven Scheduling

Real-Time Systems. Event-Driven Scheduling Real-Time Systems Event-Driven Scheduling Marcus Völp, Hermann Härtig WS 2013/14 Outline mostly following Jane Liu, Real-Time Systems Principles Scheduling EDF and LST as dynamic scheduling methods Fixed

More information

Exact speedup factors and sub-optimality for non-preemptive scheduling

Exact speedup factors and sub-optimality for non-preemptive scheduling Real-Time Syst (2018) 54:208 246 https://doi.org/10.1007/s11241-017-9294-3 Exact speedup factors and sub-optimality for non-preemptive scheduling Robert I. Davis 1 Abhilash Thekkilakattil 2 Oliver Gettings

More information

Real-Time Scheduling. Real Time Operating Systems and Middleware. Luca Abeni

Real-Time Scheduling. Real Time Operating Systems and Middleware. Luca Abeni Real Time Operating Systems and Middleware Luca Abeni luca.abeni@unitn.it Definitions Algorithm logical procedure used to solve a problem Program formal description of an algorithm, using a programming

More information

Journal of Global Research in Computer Science

Journal of Global Research in Computer Science Volume 2, No. 4, April 2011 Journal of Global Research in Computer Science RESEARCH ARTICLE Available Online at www.jgrcs.info PERFORMANCE EVALUATION OF A NEW PROPOSED SHOTREST EXECUTION FIRST DYNAMIC

More information

COVERT TIMING CHANNEL CAPACITY OF RATE MONOTONIC REAL-TIME SCHEDULING ALGORITHM IN MLS SYSTEMS

COVERT TIMING CHANNEL CAPACITY OF RATE MONOTONIC REAL-TIME SCHEDULING ALGORITHM IN MLS SYSTEMS COVERT TIMING CHANNEL CAPACITY OF RATE MONOTONIC REAL-TIME SCHEDULING ALGORITHM IN MLS SYSTEMS Joon Son and Jim Alves-Foss Center for Secure and Dependable Systems University of Idaho POBOX 441008 Moscow,

More information

Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks

Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks Probabilistic Preemption Control using Frequency Scaling for Sporadic Real-time Tasks Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat Mälardalen Real-Time Research Center, Mälardalen University,

More information

Scheduling Periodic Real-Time Tasks on Uniprocessor Systems. LS 12, TU Dortmund

Scheduling Periodic Real-Time Tasks on Uniprocessor Systems. LS 12, TU Dortmund Scheduling Periodic Real-Time Tasks on Uniprocessor Systems Prof. Dr. Jian-Jia Chen LS 12, TU Dortmund 08, Dec., 2015 Prof. Dr. Jian-Jia Chen (LS 12, TU Dortmund) 1 / 38 Periodic Control System Pseudo-code

More information

Networked Embedded Systems WS 2016/17

Networked Embedded Systems WS 2016/17 Networked Embedded Systems WS 2016/17 Lecture 2: Real-time Scheduling Marco Zimmerling Goal of Today s Lecture Introduction to scheduling of compute tasks on a single processor Tasks need to finish before

More information

CPU SCHEDULING RONG ZHENG

CPU SCHEDULING RONG ZHENG CPU SCHEDULING RONG ZHENG OVERVIEW Why scheduling? Non-preemptive vs Preemptive policies FCFS, SJF, Round robin, multilevel queues with feedback, guaranteed scheduling 2 SHORT-TERM, MID-TERM, LONG- TERM

More information

Static priority scheduling

Static priority scheduling Static priority scheduling Michal Sojka Czech Technical University in Prague, Faculty of Electrical Engineering, Department of Control Engineering November 8, 2017 Some slides are derived from lectures

More information

Embedded Systems 14. Overview of embedded systems design

Embedded Systems 14. Overview of embedded systems design Embedded Systems 14-1 - Overview of embedded systems design - 2-1 Point of departure: Scheduling general IT systems In general IT systems, not much is known about the computational processes a priori The

More information

Process Scheduling for RTS. RTS Scheduling Approach. Cyclic Executive Approach

Process Scheduling for RTS. RTS Scheduling Approach. Cyclic Executive Approach Process Scheduling for RTS Dr. Hugh Melvin, Dept. of IT, NUI,G RTS Scheduling Approach RTS typically control multiple parameters concurrently Eg. Flight Control System Speed, altitude, inclination etc..

More information

Rate-monotonic scheduling on uniform multiprocessors

Rate-monotonic scheduling on uniform multiprocessors Rate-monotonic scheduling on uniform multiprocessors Sanjoy K. Baruah The University of North Carolina at Chapel Hill Email: baruah@cs.unc.edu Joël Goossens Université Libre de Bruxelles Email: joel.goossens@ulb.ac.be

More information

Schedulability Analysis for the Abort-and-Restart (AR) Model

Schedulability Analysis for the Abort-and-Restart (AR) Model Schedulability Analysis for the Abort-and-Restart (AR) Model ABSTRACT H.C. Wong Real-Time Systems Research Group, Department of Computer Science, University of York, UK. hw638@york.ac.uk This paper addresses

More information

Multiprocessor Scheduling II: Global Scheduling. LS 12, TU Dortmund

Multiprocessor Scheduling II: Global Scheduling. LS 12, TU Dortmund Multiprocessor Scheduling II: Global Scheduling Prof. Dr. Jian-Jia Chen LS 12, TU Dortmund 28, June, 2016 Prof. Dr. Jian-Jia Chen (LS 12, TU Dortmund) 1 / 42 Global Scheduling We will only focus on identical

More information

Time and Schedulability Analysis of Stateflow Models

Time and Schedulability Analysis of Stateflow Models Time and Schedulability Analysis of Stateflow Models Marco Di Natale Scuola Superiore S. Anna Haibo Zeng Mc Gill University Outline Context: MBD of Embedded Systems Relationship with PBD An Introduction

More information

Static-Priority Scheduling. CSCE 990: Real-Time Systems. Steve Goddard. Static-priority Scheduling

Static-Priority Scheduling. CSCE 990: Real-Time Systems. Steve Goddard. Static-priority Scheduling CSCE 990: Real-Time Systems Static-Priority Scheduling Steve Goddard goddard@cse.unl.edu http://www.cse.unl.edu/~goddard/courses/realtimesystems Static-priority Scheduling Real-Time Systems Static-Priority

More information

Slack-Time Computation for Temporal Robustness in Embedded Systems

Slack-Time Computation for Temporal Robustness in Embedded Systems Slack-Time Computation for Temporal Robustness in Embedded Systems Serge Midonnet, Damien Masson, Rémi Lassalle To cite this version: Serge Midonnet, Damien Masson, Rémi Lassalle. Slack-Time Computation

More information

Improved Deadline Monotonic Scheduling With Dynamic and Intelligent Time Slice for Real-time Systems

Improved Deadline Monotonic Scheduling With Dynamic and Intelligent Time Slice for Real-time Systems Improved Deadline Monotonic Scheduling With Dynamic and Intelligent Time Slice for Real-time Systems H. S. Behera, Sushree Sangita Panda and Jana Chakraborty Department of Computer Science and Engineering,

More information

Controlling Preemption for Better Schedulability in Multi-Core Systems

Controlling Preemption for Better Schedulability in Multi-Core Systems 2012 IEEE 33rd Real-Time Systems Symposium Controlling Preemption for Better Schedulability in Multi-Core Systems Jinkyu Lee and Kang G. Shin Dept. of Electrical Engineering and Computer Science, The University

More information

Exploiting Precedence Relations in the Schedulability Analysis of Distributed Real-Time Systems

Exploiting Precedence Relations in the Schedulability Analysis of Distributed Real-Time Systems Exploiting Precedence Relations in the Schedulability Analysis of Distributed Real-Time Systems By: J.C. Palencia and M. González Harbour Departamento de Electrónica y Computadores, Universidad de Cantabria,

More information

Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions

Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions Mitra Nasri Chair of Real-time Systems, Technische Universität Kaiserslautern, Germany nasri@eit.uni-kl.de

More information

Andrew Morton University of Waterloo Canada

Andrew Morton University of Waterloo Canada EDF Feasibility and Hardware Accelerators Andrew Morton University of Waterloo Canada Outline 1) Introduction and motivation 2) Review of EDF and feasibility analysis 3) Hardware accelerators and scheduling

More information

Real-Time Calculus. LS 12, TU Dortmund

Real-Time Calculus. LS 12, TU Dortmund Real-Time Calculus Prof. Dr. Jian-Jia Chen LS 12, TU Dortmund 09, Dec., 2014 Prof. Dr. Jian-Jia Chen (LS 12, TU Dortmund) 1 / 35 Arbitrary Deadlines The worst-case response time of τ i by only considering

More information

Schedulability Analysis for the Abort-and-Restart Model

Schedulability Analysis for the Abort-and-Restart Model Schedulability Analysis for the Abort-and-Restart Model Hing Choi Wong Doctor of Philosophy University of York Computer Science December 2014 Abstract In real-time systems, a schedulable task-set guarantees

More information

arxiv: v1 [cs.os] 6 Jun 2013

arxiv: v1 [cs.os] 6 Jun 2013 Partitioned scheduling of multimode multiprocessor real-time systems with temporal isolation Joël Goossens Pascal Richard arxiv:1306.1316v1 [cs.os] 6 Jun 2013 Abstract We consider the partitioned scheduling

More information

Real-time scheduling of sporadic task systems when the number of distinct task types is small

Real-time scheduling of sporadic task systems when the number of distinct task types is small Real-time scheduling of sporadic task systems when the number of distinct task types is small Sanjoy Baruah Nathan Fisher Abstract In some real-time application systems, there are only a few distinct kinds

More information

Rate Monotonic Analysis (RMA)

Rate Monotonic Analysis (RMA) Rate Monotonic Analysis (RMA) ktw@csie.ntu.edu.tw (Real-Time and Embedded System Laboratory) Major References: An Introduction to Rate Monotonic Analysis Tutorial Notes SEI MU* Distributed Real-Time System

More information

Exact Scheduling Analysis of Non-Accumulatively Monotonic Multiframe Tasks

Exact Scheduling Analysis of Non-Accumulatively Monotonic Multiframe Tasks Exact Scheduling Analysis of Non-Accumulatively Monotonic Multiframe Tasks A. Zuhily, Alan Burns To cite this version: A. Zuhily, Alan Burns. Exact Scheduling Analysis of Non-Accumulatively Monotonic Multiframe

More information

Lec. 7: Real-Time Scheduling

Lec. 7: Real-Time Scheduling Lec. 7: Real-Time Scheduling Part 1: Fixed Priority Assignment Vijay Raghunathan ECE568/CS590/ECE495/CS490 Spring 2011 Reading List: RM Scheduling 2 [Balarin98] F. Balarin, L. Lavagno, P. Murthy, and A.

More information

Necessary and Sufficient Conditions for Non-Preemptive Robustness

Necessary and Sufficient Conditions for Non-Preemptive Robustness Necessary and Sufficient Conditions for Non-Preemptive Robustness Wing-Chi Poon, Aloysius K. Mok Department of Computer Sciences, University of Texas at Austin, USA {wcpoon,mok}@cs.utexas.edu VMware Inc.,

More information

Real-time operating systems course. 6 Definitions Non real-time scheduling algorithms Real-time scheduling algorithm

Real-time operating systems course. 6 Definitions Non real-time scheduling algorithms Real-time scheduling algorithm Real-time operating systems course 6 Definitions Non real-time scheduling algorithms Real-time scheduling algorithm Definitions Scheduling Scheduling is the activity of selecting which process/thread should

More information

Real Time Operating Systems

Real Time Operating Systems Real Time Operating ystems Luca Abeni luca.abeni@unitn.it Interacting Tasks Until now, only independent tasks... A job never blocks or suspends A task only blocks on job termination In real world, jobs

More information

Probabilistic Analysis for Mixed Criticality Scheduling with SMC and AMC

Probabilistic Analysis for Mixed Criticality Scheduling with SMC and AMC Probabilistic Analysis for Mixed Criticality Scheduling with SMC and AMC Dorin Maxim 1, Robert I. Davis 1,2, Liliana Cucu-Grosjean 1, and Arvind Easwaran 3 1 INRIA, France 2 University of York, UK 3 Nanyang

More information

Schedulability analysis of global Deadline-Monotonic scheduling

Schedulability analysis of global Deadline-Monotonic scheduling Schedulability analysis of global Deadline-Monotonic scheduling Sanjoy Baruah Abstract The multiprocessor Deadline-Monotonic (DM) scheduling of sporadic task systems is studied. A new sufficient schedulability

More information

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University Che-Wei Chang chewei@mail.cgu.edu.tw Department of Computer Science and Information Engineering, Chang Gung University } 2017/11/15 Midterm } 2017/11/22 Final Project Announcement 2 1. Introduction 2.

More information

A New Task Model and Utilization Bound for Uniform Multiprocessors

A New Task Model and Utilization Bound for Uniform Multiprocessors A New Task Model and Utilization Bound for Uniform Multiprocessors Shelby Funk Department of Computer Science, The University of Georgia Email: shelby@cs.uga.edu Abstract This paper introduces a new model

More information

Scheduling and Control Co-Design under End-to-End Response Time Constraints in Cyber-Physical Systems

Scheduling and Control Co-Design under End-to-End Response Time Constraints in Cyber-Physical Systems The First International Workshop on Cyber-Physical Networking Systems Scheduling and Control Co-Design under End-to-End Response Time Constraints in Cyber-Physical Systems Kyung-Joon Park, Man-Ki Yoon,

More information

Resource-locking durations in EDF-scheduled systems

Resource-locking durations in EDF-scheduled systems Resource-locking durations in EDF-scheduled systems Nathan Fisher Marko Bertogna Sanjoy Baruah Abstract The duration of time for which each application locks each shared resource is critically important

More information

Semi-Partitioned Fixed-Priority Scheduling on Multiprocessors

Semi-Partitioned Fixed-Priority Scheduling on Multiprocessors Semi-Partitioned Fixed-Priority Scheduling on Multiprocessors Shinpei Kato and Nobuyuki Yamasaki Department of Information and Computer Science Keio University, Yokohama, Japan {shinpei,yamasaki}@ny.ics.keio.ac.jp

More information

Real-time Scheduling of Periodic Tasks (1) Advanced Operating Systems Lecture 2

Real-time Scheduling of Periodic Tasks (1) Advanced Operating Systems Lecture 2 Real-time Scheduling of Periodic Tasks (1) Advanced Operating Systems Lecture 2 Lecture Outline Scheduling periodic tasks The rate monotonic algorithm Definition Non-optimality Time-demand analysis...!2

More information

A Note on Modeling Self-Suspending Time as Blocking Time in Real-Time Systems

A Note on Modeling Self-Suspending Time as Blocking Time in Real-Time Systems A Note on Modeling Self-Suspending Time as Blocking Time in Real-Time Systems Jian-Jia Chen 1, Wen-Hung Huang 1, and Geoffrey Nelissen 2 1 TU Dortmund University, Germany Email: jian-jia.chen@tu-dortmund.de,

More information

Real-Time Workload Models with Efficient Analysis

Real-Time Workload Models with Efficient Analysis Real-Time Workload Models with Efficient Analysis Advanced Course, 3 Lectures, September 2014 Martin Stigge Uppsala University, Sweden Fahrplan 1 DRT Tasks in the Model Hierarchy Liu and Layland and Sporadic

More information

arxiv: v1 [cs.os] 25 May 2011

arxiv: v1 [cs.os] 25 May 2011 Scheduling of Hard Real-Time Multi-Thread Periodic Tasks arxiv:1105.5080v1 [cs.os] 25 May 2011 Irina Lupu Joël Goossens PARTS Research Center Université libre de Bruxelles (U.L.B.) CP 212, 50 av. F.D.

More information

AS computer hardware technology advances, both

AS computer hardware technology advances, both 1 Best-Harmonically-Fit Periodic Task Assignment Algorithm on Multiple Periodic Resources Chunhui Guo, Student Member, IEEE, Xiayu Hua, Student Member, IEEE, Hao Wu, Student Member, IEEE, Douglas Lautner,

More information

Real-time Systems: Scheduling Periodic Tasks

Real-time Systems: Scheduling Periodic Tasks Real-time Systems: Scheduling Periodic Tasks Advanced Operating Systems Lecture 15 This work is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License. To view a copy of

More information

RECENTLY, many cyber-physical systems such as automobiles

RECENTLY, many cyber-physical systems such as automobiles IEEE TRANSACTIONS ON COMPUTERS, VOL. X, NO. X, XXXX 2XX 1 Migrating from Per-Job Analysis to Per-Resource Analysis for Tighter Bounds of End-to-End Response Times Man-Ki Yoon, Student Member, IEEE, Chang-Gun

More information

Resource Sharing in an Enhanced Rate-Based Execution Model

Resource Sharing in an Enhanced Rate-Based Execution Model In: Proceedings of the 15th Euromicro Conference on Real-Time Systems, Porto, Portugal, July 2003, pp. 131-140. Resource Sharing in an Enhanced Rate-Based Execution Model Xin Liu Steve Goddard Department

More information

Clock-driven scheduling

Clock-driven scheduling Clock-driven scheduling Also known as static or off-line scheduling Michal Sojka Czech Technical University in Prague, Faculty of Electrical Engineering, Department of Control Engineering November 8, 2017

More information

CEC 450 Real-Time Systems

CEC 450 Real-Time Systems CEC 450 Real-Time Systems Lecture 3 Real-Time Services Part 2 (Rate Monotonic Theory - Policy and Feasibility for RT Services) September 7, 2018 Sam Siewert Quick Review Service Utility RM Policy, Feasibility,

More information

Tardiness Bounds under Global EDF Scheduling on a Multiprocessor

Tardiness Bounds under Global EDF Scheduling on a Multiprocessor Tardiness ounds under Global EDF Scheduling on a Multiprocessor UmaMaheswari C. Devi and James H. Anderson Department of Computer Science The University of North Carolina at Chapel Hill Abstract This paper

More information

Priority-driven Scheduling of Periodic Tasks (1) Advanced Operating Systems (M) Lecture 4

Priority-driven Scheduling of Periodic Tasks (1) Advanced Operating Systems (M) Lecture 4 Priority-driven Scheduling of Periodic Tasks (1) Advanced Operating Systems (M) Lecture 4 Priority-driven Scheduling Assign priorities to jobs, based on their deadline or other timing constraint Make scheduling

More information

Spare CASH: Reclaiming Holes to Minimize Aperiodic Response Times in a Firm Real-Time Environment

Spare CASH: Reclaiming Holes to Minimize Aperiodic Response Times in a Firm Real-Time Environment Spare CASH: Reclaiming Holes to Minimize Aperiodic Response Times in a Firm Real-Time Environment Deepu C. Thomas Sathish Gopalakrishnan Marco Caccamo Chang-Gun Lee Abstract Scheduling periodic tasks that

More information

Schedulability Bound for Integrated Modular Avionics Partitions

Schedulability Bound for Integrated Modular Avionics Partitions Schedulability Bound for Integrated Modular Avionics Partitions Jung-Eun Kim, Tarek Abdelzaher and Lui Sha University of Illinois at Urbana-Champaign, Urbana, IL 682 Email:{jekim34, zaher, lrs}@illinois.edu

More information

Task Reweighting under Global Scheduling on Multiprocessors

Task Reweighting under Global Scheduling on Multiprocessors ask Reweighting under Global Scheduling on Multiprocessors Aaron Block, James H. Anderson, and UmaMaheswari C. Devi Department of Computer Science, University of North Carolina at Chapel Hill March 7 Abstract

More information

Segment-Fixed Priority Scheduling for Self-Suspending Real-Time Tasks

Segment-Fixed Priority Scheduling for Self-Suspending Real-Time Tasks Segment-Fixed Priority Scheduling for Self-Suspending Real-Time Tasks Junsung Kim, Björn Andersson, Dionisio de Niz, and Raj Rajkumar Carnegie Mellon University 2/31 Motion Planning on Self-driving Parallel

More information

An Improved Schedulability Test for Uniprocessor Periodic Task Systems

An Improved Schedulability Test for Uniprocessor Periodic Task Systems An Improved Schedulability Test for Uniprocessor Periodic Task Systems UmaMaheswari C. Devi Department of Computer Science, The University of North Carolina, Chapel Hill, NC Abstract We present a sufficient

More information

A Theory of Rate-Based Execution. A Theory of Rate-Based Execution

A Theory of Rate-Based Execution. A Theory of Rate-Based Execution Kevin Jeffay Department of Computer Science University of North Carolina at Chapel Hill jeffay@cs cs.unc.edu Steve Goddard Computer Science & Engineering University of Nebraska Ð Lincoln goddard@cse cse.unl.edu

More information

Non-preemptive Scheduling of Distance Constrained Tasks Subject to Minimizing Processor Load

Non-preemptive Scheduling of Distance Constrained Tasks Subject to Minimizing Processor Load Non-preemptive Scheduling of Distance Constrained Tasks Subject to Minimizing Processor Load Klaus H. Ecker Ohio University, Athens, OH, USA, ecker@ohio.edu Alexander Hasenfuss Clausthal University of

More information

CPU scheduling. CPU Scheduling

CPU scheduling. CPU Scheduling EECS 3221 Operating System Fundamentals No.4 CPU scheduling Prof. Hui Jiang Dept of Electrical Engineering and Computer Science, York University CPU Scheduling CPU scheduling is the basis of multiprogramming

More information

Real-time Scheduling of Periodic Tasks (2) Advanced Operating Systems Lecture 3

Real-time Scheduling of Periodic Tasks (2) Advanced Operating Systems Lecture 3 Real-time Scheduling of Periodic Tasks (2) Advanced Operating Systems Lecture 3 Lecture Outline The rate monotonic algorithm (cont d) Maximum utilisation test The deadline monotonic algorithm The earliest

More information

Improved Schedulability Analysis of EDF Scheduling on Reconfigurable Hardware Devices

Improved Schedulability Analysis of EDF Scheduling on Reconfigurable Hardware Devices Improved Schedulability Analysis of EDF Scheduling on Reconfigurable Hardware Devices Nan Guan 1, Zonghua Gu 2, Qingxu Deng 1, Weichen Liu 2 and Ge Yu 1 1 Dept of Computer Science and Engineering 2 Dept

More information

An Improved Schedulability Test for Uniprocessor. Periodic Task Systems

An Improved Schedulability Test for Uniprocessor. Periodic Task Systems An Improved Schedulability Test for Uniprocessor Periodic Task Systems UmaMaheswari C. Devi Department of Computer Science, University of North Carolina, Chapel Hill, NC 27599-375 December 2002 Abstract

More information

A New Sufficient Feasibility Test for Asynchronous Real-Time Periodic Task Sets

A New Sufficient Feasibility Test for Asynchronous Real-Time Periodic Task Sets A New Sufficient Feasibility Test for Asynchronous Real-Time Periodic Task Sets Abstract The problem of feasibility analysis for asynchronous periodic task sets (ie where tasks can have an initial offset

More information

Laxity Release Optimization for Simulink Models

Laxity Release Optimization for Simulink Models Preprints of the 19th World Congress The International Federation of Automatic Control Laxity Release Optimization for imulink Models Kaijie Qin, Guiming Luo, Xibin Zhao chool of oftware, Tsinghua University,

More information