Scheduling Motivation
|
|
- Gilbert McLaughlin
- 6 years ago
- Views:
Transcription
1 76 eal-me & Embedded Systems 7 Uwe. Zmmer - he Australan Natonal Unversty 78 Motvaton n eal-me Systems Concurrency may lead to non-determnsm. Non-determnsm may make t harder to predct the tmng behavour. eal-me- schemes reduce non-determnsm. Uwe. Zmmer, he Australan Natonal Unversty page 78 of 96 (chapter 7: up to page 8) 77 eferences for ths chapter [Burns7] Alan Burns and Andy Wellngs Concurrent and eal-me Programmng n Ada Cambrdge Unversty Press (7) [Murthy] C S Murthy, G Manmaran esource Management n eal Systems and Networks MI Press, Cambrdge, Massachuetts, London, England () Uwe. Zmmer, he Australan Natonal Unversty page 77 of 96 (chapter 7: up to page 8) 79 Deployment n eal-me Systems A schedulng scheme provdes two features: Orderng the use of resources (e.g. CPUs, networks) n a lve system. Predctng the worst-case behavour of the system when the schedulng algorthm s appled. he predcton can then be used: at comple-run: to confrm the overall temporal requrements of the applcaton. at run-: to permt acceptance of addtonal usage/reservaton requests. Uwe. Zmmer, he Australan Natonal Unversty page 79 of 96 (chapter 7: up to page 8)
2 74 Statc versus Dynamc n eal-me Systems gd: All schedules are set off-lne. Full predctablty (many hgh ntegrty real- systems). Statc: Schedule relatons are statcally ordered off-lne. Predctable response to dsturbances (many real- systems). Dynamc: Schedules depend on run- stuaton. More flexble, more effcent (most soft real- systems). Uwe. Zmmer, he Australan Natonal Unversty page 74 of 96 (chapter 7: up to page 8) 74 phases (real-) pre-empton or cycle done batch creaton ready admtted dspatch executng CPU termnaton unblock Admttance accordng to schedulablty Dspatchng and Pre-Empton accordng to deadlnes, prortes, or utlttes blocked block or synchronze Uwe. Zmmer, he Australan Natonal Unversty page 74 of 96 (chapter 7: up to page 8) 74 phases (non real-) pre-empton or cycle done batch creaton ready admtted dspatch executng CPU termnaton unblock suspend (swap-out) ready, suspended suspend (swap-out) swap-n blocked, suspended unblock swap-out blocked block or synchronze Uwe. Zmmer, he Australan Natonal Unversty page 74 of 96 (chapter 7: up to page 8) 74 Assumptons A smple process model he number of processes n the system s fxed. All processes are perodc and all perods are known. All processes are ndependent. he task-swtchng overhead s neglgble. All deadlnes are dentcal wth the process cycle s (perods). he worst case executon s known for all processes. All processes are released at once. hs model can only be appled to a specfc group of hard real- systems. (Extensons to ths model wll be dscussed later n ths chapter). Uwe. Zmmer, he Australan Natonal Unversty page 74 of 96 (chapter 7: up to page 8)
3 744 eal- schedulng ask set (6, 8) (, ), ) (, C ) 4 4 Uwe. Zmmer, he Australan Natonal Unversty page 744 of 96 (chapter 7: up to page 8) 746 eal- schedulng Earlest Deadlne Frst (EDF). Determne (one of) the process(es) wth the earlest deadlne.. Execute ths process a. untl t fnshes. b. untl another process deadlne s found earler then the current one. Pre-emptve scheme. Dynamc scheme, snce the dspatched process s selected at run-, due to the current deadlnes. Uwe. Zmmer, he Australan Natonal Unversty page 746 of 96 (chapter 7: up to page 8) 74 eal- schedulng Deadlnes (6, 8) (, ), ) (, C ) 4 4 Uwe. Zmmer, he Australan Natonal Unversty page 74 of 96 (chapter 7: up to page 8) 747 eal- schedulng: Earlest Deadlne Frst Execute EDF schedule Works! (6, 8) (, ), ) (, C ) 4 4 If multple deadlnes concde, other means are needed to select a process,.e. Avod unnecessary task swtches. Dspatch by task d (out of the currently qualfyng processes). Uwe. Zmmer, he Australan Natonal Unversty page 747 of 96 (chapter 7: up to page 8),
4 4 4 4 Uwe. Zmmer, he Australan Natonal Unversty page 7 of 96 (chapter 7: up to page 8) page 749 of 96 (chapter 7: up to page 8) 4 Uwe. Zmmer, he Australan Natonal Unversty page 7 of 96 (chapter 7: up to page 8) G ate monotonc orderng s optmal (n the framework of fxed prorty schedulers): f a process set s schedulable under an FPS-scheme, then t s also schedulable under FPS wth rate monotonc prortes. G Statc scheme, snce the order dspatch order of processes s fxed and calculated off-lne. G Pre-emptve scheme. At run-: dspatch the runnable process wth the hghest prorty.. Each process s assgned a fxed prorty accordng to ts cycle : & P P Fxed Prorty (FPS), rate monotonc 7 Uwe. Zmmer, he Australan Natonal Unversty G In the example: Worst case response s are dentcal to cycle s. 4 Maxmal utlzaton eal- schedulng 4 page 748 of 96 (chapter 7: up to page 8) esponse : me from schedule request to process completon. eal- schedulng: Earlest Deadlne Frst G If deadlnes D are dentcal to cycle s for each task then: n C he maxmal utlzaton for EDF becomes: / # (suffcent and necessary test) = (, C), 4, ) 4, ( (, ) (, (6, ( 66, 8) 7 Uwe. Zmmer, he Australan Natonal Unversty Gves an dea how crtcal the schedule s., 4, ) (, C) (, C) (, (, ), ) ( 6, 8) (6, (, ) Worst case response s mes to deadlnes eal- schedulng: Earlest Deadlne Frst eal- schedulng: Earlest Deadlne Frst 749 (6, 8) 748
5 7 eal- schedulng: Fxed Prorty ask set (6, 8) (, ), ) (, C ) 4 4 Uwe. Zmmer, he Australan Natonal Unversty page 7 of 96 (chapter 7: up to page 8) 74 eal- schedulng: Fxed Prorty Execute FPS schedule Fals! (6, 8) (, ), ) (, C ) 4 4 Uwe. Zmmer, he Australan Natonal Unversty page 74 of 96 (chapter 7: up to page 8) 7 eal- schedulng: Fxed Prorty Execute FPS schedule Fals! (6, 8) (, ), ) (, C ) 4 4 Uwe. Zmmer, he Australan Natonal Unversty page 7 of 96 (chapter 7: up to page 8) 7 eal- schedulng: Fxed Prorty Maxmal utlzaton.9.8 Maxmal utlty.7.6. U n C / / # N( N - ) / Umax = wth C the computaton and the length of the perod for task out of N tasks and assumng that the deadlne D = Suffcent, yet not necessary test Number of processes N Uwe. Zmmer, he Australan Natonal Unversty page 7 of 96 (chapter 7: up to page 8)
6 76 eal- schedulng: Fxed Prorty Execute FPS schedule Fals! (6, 8) (, ), ) (, C ) 4 4 U n C / / = >.779. N( N - ) / Umax = Utlzaton test fals, schedulablty not guaranteed. Uwe. Zmmer, he Australan Natonal Unversty page 76 of 96 (chapter 7: up to page 8) 78 eal- schedulng: Fxed Prorty Execute FPS schedule Works! (6, 6) (, ), ) (, C ) 4 4 U n C N( / / = + + = >. N - ) / Umax = Utlzaton test fals, schedulablty not guaranteed. Uwe. Zmmer, he Australan Natonal Unversty page 78 of 96 (chapter 7: up to page 8) 77 eal- schedulng: Fxed Prorty educed task set (6, 6) (, ), ) (, C ) 4 4 U n C N( / / = + + = >. N - ) / Umax = Utlzaton test fals, schedulablty not guaranteed. Uwe. Zmmer, he Australan Natonal Unversty page 77 of 96 (chapter 7: up to page 8) 79 eal- schedulng: Fxed Prorty Execute FPS schedule Works! (6, 6) (, ), ) (, C ) 4 4 U n C N( / / = + + = >. N - ) / Umax = Utlzaton test fals, schedulablty not guaranteed. Uwe. Zmmer, he Australan Natonal Unversty page 79 of 96 (chapter 7: up to page 8) (,, )
7 76 eal- schedulng: Fxed Prorty Further reduced task set (6, 4) (, ), ) (, C ) 4 4 U n C N( / / = + + =. N - ) / U = max Utlzaton test succeeds, schedulablty guaranteed. Uwe. Zmmer, he Australan Natonal Unversty page 76 of 96 (chapter 7: up to page 8) 76 eal- schedulng: Fxed Prorty Execute FPS schedule Works! (6, 4) (, ), ) (, C ) 4 4 U n C N( / / = + + =. N - ) / U = max Utlzaton test succeeds, schedulablty guaranteed. Uwe. Zmmer, he Australan Natonal Unversty page 76 of 96 (chapter 7: up to page 8) 76 eal- schedulng: Fxed Prorty Execute FPS schedule Works! (6, 4) (, ), ) (, C ) 4 4 n C U / / = = N( N - ) / U = max Utlzaton test succeeds, schedulablty guaranteed. Uwe. Zmmer, he Australan Natonal Unversty page 76 of 96 (chapter 7: up to page 8) 76 eal- schedulng: Fxed Prorty Worst case response s (6, 4) (, ), ) (, C ) 4 4 for the hghest prorty task: = C Uwe. Zmmer, he Australan Natonal Unversty page 76 of 96 (chapter 7: up to page 8),
8 764 eal- schedulng: Fxed Prorty Worst case response s (6, 4) (, ), ) (, C ) 4 4 for others tasks: = C + I (nterference from hgher prorty tasks) Uwe. Zmmer, he Australan Natonal Unversty page 764 of 96 (chapter 7: up to page 8) 766 eal- schedulng: Fxed Prorty esponse analyss = C+ / e o $ k > k C k Fxed -pont equaton t + ecurrent form: = C + / f p $ C k wth: = C k > k t Iterate the recurrent form untl: + = t t t + or > D Uwe. Zmmer, he Australan Natonal Unversty page 766 of 96 (chapter 7: up to page 8) 76 eal- schedulng: Fxed Prorty Worst case response s (6, 4) (, ), ) (, C ) 4 4 for others tasks: = C+ / e o $ k > k C k Uwe. Zmmer, he Australan Natonal Unversty page 76 of 96 (chapter 7: up to page 8) 767 eal- schedulng: Earlest Deadlne Frst esponse analyss he worst case for Earlest Deadlne Frst s not necessarly when all tasks are released at once! All possble release combnatons n a full hyper-cycle need to be consdered! he response s are bounded by the cycle s as long as the maxmal utlzaton s #. Other tasks need to be consdered only, f ther deadlne s closer or equal to the current task. Uwe. Zmmer, he Australan Natonal Unversty page 767 of 96 (chapter 7: up to page 8)
9 768 eal- schedulng: Earlest Deadlne Frst esponse analyss () () a a C a a+ - k = ; + E + / * f p, > H + 4 k! mn k $ C k Uwe. Zmmer, he Australan Natonal Unversty page 768 of 96 (chapter 7: up to page 8) 77 eal- schedulng: Earlest Deadlne Frst esponse analyss () () a a C a a+ - k = ; + E + / * f p, *, > H + 44 k! mn k max $ C k Fxed -pont equaton = max " () a - a, a! A where A = scm ( ) Uwe. Zmmer, he Australan Natonal Unversty page 77 of 96 (chapter 7: up to page 8) 769 eal- schedulng: Earlest Deadlne Frst esponse analyss () () a a C a a+ - k = ; + E + / * f p, *, > H + 44 k! mn k max $ C k Fxed -pont equaton ecurrent form: () () a a a a t + t + - k = ; + E C + / * f p, *, > H + 44 k! mn k max $ C wth: = a + C k + Iterate untl: () a = () a t t t + or () a > a+ D Uwe. Zmmer, he Australan Natonal Unversty page 769 of 96 (chapter 7: up to page 8) 77 eal- schedulng: Fxed Prorty Worst case response s (6, 4) (, ), ) (, C ) 4 4 n C = # 4 ; = 4 # ; = # 6 ; / # N ( N - ) = Uwe. Zmmer, he Australan Natonal Unversty page 77 of 96 (chapter 7: up to page 8)
10 ; = 4 # ; Uwe. Zmmer, he Australan Natonal Unversty page 774 of 96 (chapter 7: up to page 8) Gestng all combnatons n a hyper-cycle: = max " (a) - a,a! A where A = scm ( ) ; = # Uwe. Zmmer, he Australan Natonal Unversty = 4 # 4, C) ( (, C) (, 4, ) 4,, 4, ) 4, (, ) (, ; C # / = n 4 4 page 77 of 96 (chapter 7: up to page 8) ; = 6 # 6 Worst case response s C N - ) N ( page 77 of 96 (chapter 7: up to page 8) = n / Worst case response s 77 ; = 9 6 ; eal- schedulng: Earlest Deadlne Frst 4 ; = 4 # Uwe. Zmmer, he Australan Natonal Unversty = # 4 (6, (6 6, 8) page 77 of 96 (chapter 7: up to page 8) = C N - ) N ( ( (, ) (, n / (, C) eal- schedulng: Earlest Deadlne Frst ; = # 6 (6, ( 66, 8) 774 Uwe. Zmmer, he Australan Natonal Unversty = # 4 (, C), ), ) (, ) (6, 8) Worst case response s Worst case response s ( (, ) eal- schedulng: Fxed Prorty eal- schedulng: Fxed Prorty 77 ( (6, 6) 77
11 776 eal- schedulng: Earlest Deadlne Frst Worst case response s (6, 6) (, ), ) (, C ) 4 4 = # 4 ; = 8 # ; = # 6 ; n C / # = Uwe. Zmmer, he Australan Natonal Unversty page 776 of 96 (chapter 7: up to page 8) 778 eal- schedulng: Comparson esponse me Analyss Fxed Prorty Earlest Deadlne Frst Utlzaton est n / = C # N ( N - ) C esponse Utlzaton mes ", est esponse mes ", n C + / e o$ C / k k > k # $ () a a max -. a! A = " ^, C h, = " ^6,8 h, ^, h, ^4, h, "#, 4,, " 6,, 4, " ^, C h, = " ^6, 6 h, ^, h, ^4, h, ", 4,, " 8,,, " ^, C h, = " ^6, 4 h, ^, h, ^4, h, ", 4,, " 6,,, Uwe. Zmmer, he Australan Natonal Unversty page 778 of 96 (chapter 7: up to page 8) 777 eal- schedulng: Earlest Deadlne Frst Worst case response s (6, 4) (, ), ) (, C ) 4 4 # 4 = ; = 6 # ; = # 6 ; n C / # = Uwe. Zmmer, he Australan Natonal Unversty page 777 of 96 (chapter 7: up to page 8) 779 eal- schedulng: Comparson Fxed Prorty Earlest Deadlne Frst EDF can handle hgher (full) utlzaton than FPS. FPS s easer to mplement and mples less run- overhead Graceful degradaton (resource s over-booked): FPS: processes wth lower prortes wll always mss ther deadlnes frst. EDF: any process can mss ts deadlne and can trgger a cascade of faled deadlnes. esponse analyss and utlzaton tests: FPS: O(n) utlzaton test response analyss: fxed pont equaton EDS: O(n) utlzaton test response analyss: fxed pont equaton n hyper-cycle Uwe. Zmmer, he Australan Natonal Unversty page 779 of 96 (chapter 7: up to page 8)
12 78 eal-world Extenson Smplstc Assumptons asks are perodc Deadlnes are dentcal wth task s perod (D = ) asks are ndependent Pre-emptve schedulng Worst case executon s are known Uwe. Zmmer, he Australan Natonal Unversty page 78 of 96 (chapter 7: up to page 8) 78 eal-world Extenson More ealstc Assumptons asks are perodc we wll ntroduce sporadc and aperodc processes Deadlnes are dentcal wth task s perod (D = ) asks are ndependent Pre-emptve schedulng Worst case executon s are known we wll ntroduce arbtrary deadlnes we wll ntroduce schedules for nteractng tasks we wll ntroduce (brefly) cooperatve schedulng we wll ntroduce fault tolerant schedulng Uwe. Zmmer, he Australan Natonal Unversty page 78 of 96 (chapter 7: up to page 8) 78 eal-world Extenson More ealstc Assumptons asks are perodc we wll ntroduce sporadc and aperodc processes Deadlnes are dentcal wth task s perod (D = ) asks are ndependent Pre-emptve schedulng Worst case executon s are known we wll ntroduce arbtrary deadlnes we wll ntroduce schedules for nteractng tasks we wll ntroduce (brefly) cooperatve schedulng we wll ntroduce fault tolerant schedulng Uwe. Zmmer, he Australan Natonal Unversty page 78 of 96 (chapter 7: up to page 8) 78 Sporadc and Aperodc Processes Hard real- tasks (6, 7), ) (, C ) 4 4 Uwe. Zmmer, he Australan Natonal Unversty page 78 of 96 (chapter 7: up to page 8)
13 784 Sporadc and Aperodc Processes FPS for hard real- tasks (6, 7), ) (, C ) 4 4 Uwe. Zmmer, he Australan Natonal Unversty page 784 of 96 (chapter 7: up to page 8) 786 Sporadc and Aperodc Processes FPS lowest prorty for soft real- task (, ) (6, 7), ) (, C ) 4 4 Sporadc / aperodc task does not nterfere wth hard real- tasks. esponse s for sporadc / aperodc task can be large. Uwe. Zmmer, he Australan Natonal Unversty page 786 of 96 (chapter 7: up to page 8) 78 Sporadc and Aperodc Processes Introducng a soft real- task (, ) (6, 7), ) (, C ) 4 4 Sporadc / aperodc task set to lowest prorty. Uwe. Zmmer, he Australan Natonal Unversty page 78 of 96 (chapter 7: up to page 8) 787 Sporadc and Aperodc Processes Introducng a server task on hghest prorty (6, 7), ) (, C ) 4 4 Settng a deferrable server task as a proxy for sporadc / aperodc tasks on hghest prorty level. Uwe. Zmmer, he Australan Natonal Unversty page 787 of 96 (chapter 7: up to page 8) -
14 4 4 4 Uwe. Zmmer, he Australan Natonal Unversty G Mnmal nter-arrval-s knowledge s employed. G Interference level less or equal to a deferrable server. page 79 of 96 (chapter 7: up to page 8) A sporadc server only replenshes after a fxed after ts actual deployment., 4, ), 4,, ) 4 Uwe. Zmmer, he Australan Natonal Unversty G Pushes the hard real- tasks to ther deadlnes page 79 of 96 (chapter 7: up to page 8) Start the sporadc / aperodc tasks on hgh prorty and demote them n for the hard real- tasks to complete (G dynamc schedulng scheme)., C) ( (, (, ) (, (, ) (6, 6 7) 7 (6, - FPS wth dual prortes 79 Sporadc task utlzng sporadc server 4 page 789 of 96 (chapter 7: up to page 8) Sporadc and Aperodc Processes 4 Uwe. Zmmer, he Australan Natonal Unversty Deferrable server task only deployng f there are requests from the sporadc / aperodc task. (( 66, 7) (6, (, C) ( G Schedule must also work wll less nterference., C) ( Sporadc and Aperodc Processes page 788 of 96 (chapter 7: up to page 8) ((, (, ), 79 Uwe. Zmmer, he Australan Natonal Unversty G Hard real- tasks are stll schedulable wth the server task deployng ts full length., C) ( (, 4, ), 4,, ) (, (, ) (6 6, 7) (6, - Sporadc task utlzng deferrable server FPS server task as normal task Sporadc and Aperodc Processes Sporadc and Aperodc Processes 789 ( (6 6, 7) (6, 788
15 Introducng g an EDF server Sporadc and Aperodc Processes 4 4 EDL EDL EDL Uwe. Zmmer, he Australan Natonal Unversty 4 4 page 794 of 96 (chapter 7: up to page 8) G Deadlnes explctly pushed to ther lmts durng the EDL phases. EDL Earlest Deadlne Last (EDL) for sporadc tasks Sporadc and Aperodc Processes page 79 of 96 (chapter 7: up to page 8) Earlest Deadlne Last schedulng (whle stll keepng all deadlnes) when sporadc / aperodc tasks are to be scheduled. (, C) ( (, 4,, ) ((6, (6 ( 66, 7)) (, ( (, ) 794 Uwe. Zmmer, he Australan Natonal Unversty he EDF equvalent to a deferrable server: a perodc server task wth an mmedate deadlne. (, C), ) (6, 7) 79 Server Hard Sporadc orad o ra ad a dc d d c c Sporadc Hard Spo 4 Sporadc task utlzng EDF server Sporadc and Aperodc Processes 4 eal-world Extenson page 79 of 96 (chapter 7: up to page 8) Uwe. Zmmer, he Australan Natonal Unversty G we wll ntroduce arbtrary deadlnes G we wll ntroduce (brefly) cooperatve schedulng G we wll ntroduce schedules for nteractng tasks page 79 of 96 (chapter 7: up to page 8) G we wll ntroduce fault tolerant schedulng Worst case executon s are known Pre-emptve schedulng asks are ndependent Deadlnes are dentcal wth task s perod (D = ) G we wll ntroduce sporadc and aperodc processes G More ealstc Assumptons asks are perodc 79 Uwe. Zmmer, he Australan Natonal Unversty G Swft response s for the sporadc / aperodc tasks wth deadlnes pushed to ther lmts., C) (,, ), (6 ((6 6, 7)) (6, (, (,, ) 79 orad aad dcc Server Hard Sporadc
16 796 asks wth arbtrary deadlnes asks wth D < (Deadlne earler than cycle ) In case of fxed prorty schedulng (FPS): Change from: ate Monotonc Prorty Orderng (MPO) to: Deadlne Monotonc Prorty Orderng (DMPO) Lemma: Any task set Q whch s schedulable by a FPS scheme W, s also schedulable under DMPO. Uwe. Zmmer, he Australan Natonal Unversty page 796 of 96 (chapter 7: up to page 8) 798 Proof of DMPO optmalty Swap two prortes out of W whch volate DMPO: W D D t t n W: D D # & D Uwe. Zmmer, he Australan Natonal Unversty page 798 of 96 (chapter 7: up to page 8) 797 Proof of DMPO optmalty Swap two prortes out of W whch volate DMPO:. t, t are two tasks n Q wth P P and D D n W J DMPO. Generate Wl by swappng P and P _ Pl Pl/ _ D D DMPO. Wl schedules Q because: a. All tk! Q wth P k P or Pk P are unaffected. b. t s schedulable n Wl because Pl> P & l# # D & l # D c. t s schedulable n Wl because: n W: D D # # & meanng that t nterfered only once wth t also: t released once n, and n Wl: t nterferes only once wth t l= # D D & l D Uwe. Zmmer, he Australan Natonal Unversty page 797 of 96 (chapter 7: up to page 8) 799 Proof of DMPO optmalty Swap two prortes out of W whch volate DMPO: W D D t t n W: # D D # & t nterfered only once wth t also: t released once n, and Uwe. Zmmer, he Australan Natonal Unversty page 799 of 96 (chapter 7: up to page 8)
17 8 Proof of DMPO optmalty Swap two prortes out of W whch volate DMPO: W W' D D D D t t t t n W: # D D # & t nterfered only once wth t n Wl: also: t released once n, and Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) 8 Proof of DMPO optmalty Swap all prortes out of W whch volate DMPO: Swap all t, t n Q, wth _ P > P/ _ D > D n W resultng n all t, t n Q wth P > P to have D < D Consttutng the DMPO scheme Snce each swappng operaton keep schedulablty, the resultng DMPO scheme s also schedulable. Deadlne monotonc orderng s optmal: (f a process set s schedulable under an FPS-scheme, then t s also schedulable under FPS wth deadlne monotonc prortes.) Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) 8 Proof of DMPO optmalty Swap two prortes out of W whch volate DMPO: W W' D D D D ' t t t t 4 ' 4 4 n W: # D D # & t nterfered only once wth t also: t released once n, and n Wl: t nterferes only once wth t l= # D D & l D Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) 8 asks wth arbtrary deadlnes asks wth D > (Deadlne later than cycle ) Assumpton: every task t s released only after the former release of t s completed. In case that > for a specfc schedulng stuaton, the followng release of task t s delayed by -. Mnd that > cannot hold for all release stuatons, otherwse the task s not schedulable. he worst case response ^ h mght thus be longer than but must stll be shorter than D. Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8)
18 84 asks wth arbtrary deadlnes asks wth D > (Deadlne later than cycle ) Assumpton: every task t s released only after the former release of t s completed. Snce the response can now be potentally greater than the cycle : more than one release q of the task t needs to be consdered: ( ) ( q) B qc q = + + / e o C k where 6 q ( q) -( q- ) # D k > k B s the blockng ; q s the number of releases. = % ( q) ( q ) q q max - -! " f max,/ and q q q ( q) max = ' # Uwe. Zmmer, he Australan Natonal Unversty page 84 of 96 (chapter 7: up to page 8) 86 Independent tasks L 8, 8), ) (6, ) (, C ) 4 4 Deadlnes dentcal to cycle s DMPO or MPO. Uwe. Zmmer, he Australan Natonal Unversty page 86 of 96 (chapter 7: up to page 8) 8 eal-world Extenson More ealstc Assumptons asks are perodc we wll ntroduce sporadc and aperodc processes Deadlnes are dentcal wth task s perod (D = ) asks are ndependent Pre-emptve schedulng Worst case executon s are known we wll ntroduce arbtrary deadlnes we wll ntroduce schedules for nteractng tasks we wll ntroduce (brefly) cooperatve schedulng we wll ntroduce fault tolerant schedulng Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) 87 Independent tasks L 8, 8), ) (6, ) (, C ) 4 4 Schedulable under DMPO or MPO. Uwe. Zmmer, he Australan Natonal Unversty page 87 of 96 (chapter 7: up to page 8)
19 88 ask dependences L 8, 8), ) (6, ) (, C ) 4 4 Lock requests by two tasks. Uwe. Zmmer, he Australan Natonal Unversty page 88 of 96 (chapter 7: up to page 8) 8 Prorty nhertance ask t nherts prorty P k of task t k f:. P < P k.. ask t has locked a resource Q.. ask t k s blocked watng for the release of resource Q. Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) 89 ask dependences L 8, 8), ) (6, ) (, C ) 4 4 he lower prorty task blocks the hgher prorty task. (note that the blue task s unaffected.) Prorty nverson Uwe. Zmmer, he Australan Natonal Unversty page 89 of 96 (chapter 7: up to page 8) 8 Prorty nhertance Maxmal blockng for task t : B = usage (,) r C() r wth: denotng the number of crtcal sectons. usage (,) r beng a boolean functon returnng for true and ndcatng the r s used by: at least one t wth P < P and at least one t k wth Pk $ P r C() r denotng the worst case computaton n crtcal secton r Each task can only be blocked once for each employed resource! Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8)
20 Uwe. Zmmer, he Australan Natonal Unversty (, C) (6, ) 4 page 84 of 96 (chapter 7: up to page 8) 4 Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) by DMPO/MPO results n blockng for the hgher prorty tasks. (, C) (6, ), ), ) L 4 page 8 of 96 (chapter 7: up to page 8) ask dependences wth multple locks G Prorty nverson ask dependences wth multple locks 8, 8) 8 Uwe. Zmmer, he Australan Natonal Unversty 4 L he lower prorty task blocks the hgher prorty task. (note that the blue task s unaffected.) page 8 of 96 (chapter 7: up to page 8) 8, 8) 84 Uwe. Zmmer, he Australan Natonal Unversty he task on prorty s blocked due to prorty nhertance. he lower prorty task s promoted to the prorty of the blocked task. (, C) (, C) (6, ) (6, ), ) (6, ) (6 L 8, 8) Wthout prorty nhertance Prorty nhertance L 8 8, 8) 8
21 86 ask dependences wth multple locks L 8, 8), ) (6, ) (, C ) 4 4 by DMPO/MPO wth prorty nhertance does not mprove the result. Uwe. Zmmer, he Australan Natonal Unversty page 86 of 96 (chapter 7: up to page 8) 88 Crcular task dependences L 8, 8), ) (6, ) (, C ) 4 4 by DMPO/MPO results n deadlock. (Prorty nhertance does not make a dfference for blocked tasks.) Uwe. Zmmer, he Australan Natonal Unversty page 88 of 96 (chapter 7: up to page 8) 87 Crcular task dependences L 8, 8), ) (6, ) (, C ) 4 4 Uwe. Zmmer, he Australan Natonal Unversty page 87 of 96 (chapter 7: up to page 8) 89 Immedate celng prorty protocol (POSIX, Ada, -Java) Each task t has a statc prorty P. Each resource k has a statc celng prorty C k : Ck = max # employ ^, kh$ P- wth employ (, k ) beng a boolean functon returnng for true f task t employs resource k. Each task t has a dynamc prorty P D : P D = max # P, max # locked ^, kh$ Ck- k - wth locked (, k ) beng a boolean functon returnng for true f task t holds resource k. Uwe. Zmmer, he Australan Natonal Unversty page 89 of 96 (chapter 7: up to page 8)
22 8 Celng Prorty Protocol L 8, 8), ) (6, ) (, C ) 4 4 Avods the deadlock! Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) 8 Immedate celng prorty protocol (POSIX, Ada, -Java) Maxmal blockng : B = max # usage(,) r $ C() r - r = denotng the number of crtcal sectons. usage (,) r beng a boolean functon returnng for true and ndcatng that r s used by: at least one t wth P < P. C() r denotng the worst case computaton n crtcal secton r Each task can only be blocked once by one lower prorty task! Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) 8 Immedate celng prorty protocol (POSIX, Ada, -Java) Implcatons: asks are dspatched only f all employed resources are avalable. Deadlocks are prevented (no hold and wat). Number of context swtches are reduced. Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) 8 eal-world Extenson More ealstc Assumptons asks are perodc we wll ntroduce sporadc and aperodc processes Deadlnes are dentcal wth task s perod (D = ) asks are ndependent Pre-emptve schedulng Worst case executon s are known we wll ntroduce arbtrary deadlnes we wll ntroduce schedules for nteractng tasks we wll ntroduce (brefly) cooperatve schedulng we wll ntroduce fault tolerant schedulng Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8)
23 84 Non pre-emptve schedulng In pre-emptve schedulng: Maxmal ndvdual blockng s B can be determned for each task t by employng a prorty celng protocol. Maxmum overall blockng Bmax = max # B -. Cooperatve Every task t s dvded n k non pre-emptve blocks of C # B k max. All crtcal sectons are completely enclosed n a sngle block C k. Every task calls a de-schedulng routne at the end of each block,.e. offerng a task swtch. Uwe. Zmmer, he Australan Natonal Unversty page 84 of 96 (chapter 7: up to page 8) 86 Non pre-emptve schedulng Cooperatve esponse s: = + wth k + B C F = max / f p C > n F wth F the executon of the fnal block. k For the smplfed case of C = C = C = F = Bmax : / f p C = n k + wth = C + > k For the further smplfed case of 6 : = : = C + / C > Uwe. Zmmer, he Australan Natonal Unversty page 86 of 96 (chapter 7: up to page 8) 8 Non pre-emptve schedulng Cooperatve Implcatons: Number of task swtches s reduced. Caches, pre-fetchng, and ppelnes are more effcent. Executon s are (a bt) easer to predct. Schedules are smpler. Interdependent task sets are schedulable deadlock free by desgn. Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) 87 Non pre-emptve schedulng Cooperatve Consderatons: Code block dvson need to be done thoroughly. Addtonal protecton aganst msbehavng (non-cooperatve) tasks: Scheduler pre-empts tasks (deferred pre-empton), whch fal to offer a de-schedule themselves. Due to a central B max, addtonal tasks need to be engneered to partcpate n a specfc cooperatve schedule. equres that a value B max can be accepted by all tasks. Short and reactve tasks are excluded or treated separately. Uwe. Zmmer, he Australan Natonal Unversty page 87 of 96 (chapter 7: up to page 8)
24 88 eal-world Extenson More ealstc Assumptons asks are perodc we wll ntroduce sporadc and aperodc processes Deadlnes are dentcal wth task s perod (D = ) asks are ndependent Pre-emptve schedulng Worst case executon s are known we wll ntroduce arbtrary deadlnes we wll ntroduce schedules for nteractng tasks we wll ntroduce (brefly) cooperatve schedulng we wll ntroduce fault tolerant schedulng Uwe. Zmmer, he Australan Natonal Unversty page 88 of 96 (chapter 7: up to page 8) 8 eal-world Extenson More ealstc Assumptons asks are perodc we wll ntroduce sporadc and aperodc processes Deadlnes are dentcal wth task s perod (D = ) asks are ndependent Pre-emptve schedulng Worst case executon s are known we wll ntroduce arbtrary deadlnes we wll ntroduce schedules for nteractng tasks we wll ntroduce (brefly) cooperatve schedulng we wll ntroduce fault tolerant schedulng Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) 89 Fault olerance Exceptons and ecoveres f ask t needs extra CPU- C for error recovery or excepton handlng and the mnmum nter-arrval between faults s f : = B + C + / C C f e o + ) d n max f k > k $ If error recovery s performed at the hghest prorty: = B + C + / C C f e o + ) d n max f k > k Uwe. Zmmer, he Australan Natonal Unversty page 89 of 96 (chapter 7: up to page 8) 8 General schedulng methods Some task sets can be scheduled by ntroducng offsets to the release s, yet Wthout any further restrctons ths problem s NP-hard By ntroducng further assumptons about cycle granularty and assocated deadlnes: Schedulablty analyss complexty can be reduced to polynomal. e.g. estrct cycle s to powers of two of a base. Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8)
25 8 Language support Ada provdes: ask and nterrupt prortes (statc, dynamc, actve). ask attrbutes. Prortzed entry queues. Prorty celng lockng (ICPP). Schedulers (FPS wth FIFO wthn prortes (pre-emptve), ound obn, EDF). ask executon measurements. Sporadc servers Ada does currently not provde: Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) 84 Language support POSIX provdes: hreads and nterrupt prortes (statc, dynamc, actve). hreads can be system contented or process contented (prorty schedulng unclear n ths case). Prortzed message queues. Prorty celng lockng (ICPP). Schedulers, prorty based wth at least: FIFO, ound-obn, Sporadc Server, possbly others. mers. Uwe. Zmmer, he Australan Natonal Unversty page 84 of 96 (chapter 7: up to page 8) 8 Ada package System s subtype Any_Prorty s Integer range mplementaton-defned; subtype Prorty s Any_Prorty range Any_Prorty Frst.. mplementaton-defned; subtype Interrupt_Prorty s Any_Prorty range Prorty Last +.. Any_Prorty Last; Default_Prorty : constant Prorty := (Prorty Frst + Prorty Last) / ; end System; package Ada.Dynamc_Prortes s procedure Set_Prorty (Prorty : n System.Any_Prorty; : n Ada.ask_Identfcaton.ask_ID := Ada.ask_Identfcaton.Current_ask); functon Get_Prorty ( : Ada.ask_Identfcaton.ask_ID := Ada.ask_Identfcaton.Current_ask) return System.Any_Prorty; end Ada.Dynamc_Prortes; Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8) 8 Summary Basc real- schedulng Fxed Prorty (FPS) wth ate Monotonc (MPO) and Deadlne Monotonc Prorty Orderng (DMPO). Earlest Deadlne Frst (EDF). eal-world extensons Aperodc, sporadc, soft real- tasks. Deadlnes dfferent from perod. Synchronzed talks (prorty nhertance, prorty celng protocols). Cooperatve and deferred pre-empton schedulng. Fault tolerance n terms of excepton handlng consderatons. Language support Ada, POSIX Uwe. Zmmer, he Australan Natonal Unversty page 8 of 96 (chapter 7: up to page 8)
Last Time. Priority-based scheduling. Schedulable utilization Rate monotonic rule: Keep utilization below 69% Static priorities Dynamic priorities
Last Tme Prorty-based schedulng Statc prortes Dynamc prortes Schedulable utlzaton Rate monotonc rule: Keep utlzaton below 69% Today Response tme analyss Blockng terms Prorty nverson And solutons Release
More informationReal-Time Systems. Multiprocessor scheduling. Multiprocessor scheduling. Multiprocessor scheduling
Real-Tme Systems Multprocessor schedulng Specfcaton Implementaton Verfcaton Multprocessor schedulng -- -- Global schedulng How are tasks assgned to processors? Statc assgnment The processor(s) used for
More informationEmbedded Systems. 4. Aperiodic and Periodic Tasks
Embedded Systems 4. Aperodc and Perodc Tasks Lothar Thele 4-1 Contents of Course 1. Embedded Systems Introducton 2. Software Introducton 7. System Components 10. Models 3. Real-Tme Models 4. Perodc/Aperodc
More informationAN EXTENDIBLE APPROACH FOR ANALYSING FIXED PRIORITY HARD REAL-TIME TASKS
AN EXENDIBLE APPROACH FOR ANALYSING FIXED PRIORIY HARD REAL-IME ASKS K. W. ndell 1 Department of Computer Scence, Unversty of York, England YO1 5DD ABSRAC As the real-tme computng ndustry moves away from
More informationTwo Methods to Release a New Real-time Task
Two Methods to Release a New Real-tme Task Abstract Guangmng Qan 1, Xanghua Chen 2 College of Mathematcs and Computer Scence Hunan Normal Unversty Changsha, 410081, Chna qqyy@hunnu.edu.cn Gang Yao 3 Sebel
More informationComputer Control: Task Synchronisation in Dynamic Priority Scheduling
Computer Control: Task Synchronsaton n Dynamc Prorty Schedulng Sérgo Adrano Fernandes Lopes Department of Industral Electroncs Engneerng School Unversty of Mnho Campus de Azurém 4800 Gumarães - PORTUGAL
More informationQuantifying the Sub-optimality of Uniprocessor Fixed Priority Pre-emptive Scheduling for Sporadic Tasksets with Arbitrary Deadlines
Quantfyng the Sub-optmalty of Unprocessor Fxed Prorty Pre-emptve Schedulng for Sporadc Tasksets wth Arbtrary Deadlnes Robert Davs, Sanjoy Baruah, Thomas Rothvoss, Alan Burns To cte ths verson: Robert Davs,
More informationQuantifying the Sub-optimality of Uniprocessor Fixed Priority Non-Pre-emptive Scheduling
Quantfyng the Sub-optmalty of Unprocessor Fxed Prorty Non-Pre-emptve Schedulng Robert I Davs Real-Tme Systems Research Group, Department of Computer Scence, Unversty of York, York, UK robdavs@csyorkacuk
More informationResource Sharing. CSCE 990: Real-Time Systems. Steve Goddard. Resources & Resource Access Control (Chapter 8 of Liu)
CSCE 990: Real-Tme Systems Resource Sharng Steve Goddard goddard@cse.unl.edu http://www.cse.unl.edu/~goddard/courses/realtmesystems Resources & Resource Access Control (Chapter 8 of Lu) Real-Tme Systems
More informationKeynote: RTNS Getting ones priorities right
Keynote: RTNS 2012 Gettng ones prortes rght Robert Davs Real-Tme Systems Research Group, Unversty of York rob.davs@york.ac.uk What s ths talk about? Fxed Prorty schedulng n all ts guses Pre-emptve, non-pre-emptve,
More informationCHAPTER 17 Amortized Analysis
CHAPTER 7 Amortzed Analyss In an amortzed analyss, the tme requred to perform a sequence of data structure operatons s averaged over all the operatons performed. It can be used to show that the average
More informationLimited Preemptive Scheduling for Real-Time Systems: a Survey
Lmted Preemptve Schedulng for Real-Tme Systems: a Survey Gorgo C. Buttazzo, Fellow Member, IEEE, Marko Bertogna, Senor Member, IEEE, and Gang Yao Abstract The queston whether preemptve algorthms are better
More informationReal-Time Operating Systems M. 11. Real-Time: Periodic Task Scheduling
Real-Tme Operatng Systems M 11. Real-Tme: Perodc Task Schedulng Notce The course materal ncludes sldes downloaded from:! http://codex.cs.yale.edu/av/os-book/! and! (sldes by Slberschatz, Galvn, and Gagne,
More informationImproved Worst-Case Response-Time Calculations by Upper-Bound Conditions
Improved Worst-Case Response-Tme Calculatons by Upper-Bound Condtons Vctor Pollex, Steffen Kollmann, Karsten Albers and Frank Slomka Ulm Unversty Insttute of Embedded Systems/Real-Tme Systems {frstname.lastname}@un-ulm.de
More informationThe optimal delay of the second test is therefore approximately 210 hours earlier than =2.
THE IEC 61508 FORMULAS 223 The optmal delay of the second test s therefore approxmately 210 hours earler than =2. 8.4 The IEC 61508 Formulas IEC 61508-6 provdes approxmaton formulas for the PF for smple
More informationClock-Driven Scheduling (in-depth) Cyclic Schedules: General Structure
CPSC-663: Real-me Systems n-depth Precompute statc schedule o-lne e.g. at desgn tme: can aord expensve algorthms. Idle tmes can be used or aperodc jobs. Possble mplementaton: able-drven Schedulng table
More informationFixed-Priority Multiprocessor Scheduling with Liu & Layland s Utilization Bound
Fxed-Prorty Multprocessor Schedulng wth Lu & Layland s Utlzaton Bound Nan Guan, Martn Stgge, Wang Y and Ge Yu Department of Informaton Technology, Uppsala Unversty, Sweden Department of Computer Scence
More informationOutline. Communication. Bellman Ford Algorithm. Bellman Ford Example. Bellman Ford Shortest Path [1]
DYNAMIC SHORTEST PATH SEARCH AND SYNCHRONIZED TASK SWITCHING Jay Wagenpfel, Adran Trachte 2 Outlne Shortest Communcaton Path Searchng Bellmann Ford algorthm Algorthm for dynamc case Modfcatons to our algorthm
More informationFixed-Priority Multiprocessor Scheduling with Liu & Layland s Utilization Bound
Fxed-Prorty Multprocessor Schedulng wth Lu & Layland s Utlzaton Bound Nan Guan, Martn Stgge, Wang Y and Ge Yu Department of Informaton Technology, Uppsala Unversty, Sweden Department of Computer Scence
More informationWorst Case Interrupt Response Time Draft, Fall 2007
Worst Case Interrupt esponse Te Draft, Fall 7 Phlp Koopan Carnege Mellon Unversty Copyrght 7, Phlp Koopan eproducton and dssenaton beyond students of CMU ECE 8-348 s prohbted.. Overvew: Interrupt Servce
More informationEDF Scheduling for Identical Multiprocessor Systems
EDF Schedulng for dentcal Multprocessor Systems Maro Bertogna Unversty of Modena, taly As Moore s law goes on Number of transstor/chp doubles every 18 to 24 mm heatng becomes a problem Power densty (W/cm
More informationCritical sections. Using semaphores. Using semaphores. Using semaphores. How long is blocking time? 17/10/2016. Problems caused by mutual exclusion
rtcal sectons Problems caused by mutual excluson crtcal secton wat(s) x = ; y = 5; sgnal(s) wrte global memory buffer nt x; nt y; read wat(s) a = x+; b = y+; c = x+y; crtcal secton sgnal(s) Usng semaphores
More informationGlobal EDF Scheduling for Parallel Real-Time Tasks
Washngton Unversty n St. Lous Washngton Unversty Open Scholarshp Engneerng and Appled Scence Theses & Dssertatons Engneerng and Appled Scence Sprng 5-15-2014 Global EDF Schedulng for Parallel Real-Tme
More informationOverhead-Aware Compositional Analysis of Real-Time Systems
Overhead-Aware ompostonal Analyss of Real-Tme Systems Lnh T.X. Phan, Meng Xu, Jaewoo Lee, nsup Lee, Oleg Sokolsky PRESE enter Department of omputer and nformaton Scence Unversty of Pennsylvana ompostonal
More informationProblem Set 9 Solutions
Desgn and Analyss of Algorthms May 4, 2015 Massachusetts Insttute of Technology 6.046J/18.410J Profs. Erk Demane, Srn Devadas, and Nancy Lynch Problem Set 9 Solutons Problem Set 9 Solutons Ths problem
More informationOn the Multicriteria Integer Network Flow Problem
BULGARIAN ACADEMY OF SCIENCES CYBERNETICS AND INFORMATION TECHNOLOGIES Volume 5, No 2 Sofa 2005 On the Multcrtera Integer Network Flow Problem Vassl Vasslev, Marana Nkolova, Maryana Vassleva Insttute of
More informationParametric Utilization Bounds for Fixed-Priority Multiprocessor Scheduling
2012 IEEE 26th Internatonal Parallel and Dstrbuted Processng Symposum Parametrc Utlzaton Bounds for Fxed-Prorty Multprocessor Schedulng Nan Guan 1,2, Martn Stgge 1, Wang Y 1,2 and Ge Yu 2 1 Uppsala Unversty,
More informationSynchronization Protocols. Task Allocation Bin-Packing Heuristics: First-Fit Subtasks assigned in arbitrary order To allocate a new subtask T i,j
End-to-End Schedulng Framework 1. Tak allocaton: bnd tak to proceor 2. Synchronzaton protocol: enforce precedence contrant 3. Subdeadlne agnment 4. Schedulablty analy Tak Allocaton Bn-Packng eurtc: Frt-Ft
More informationQuantifying the Exact Sub-Optimality of Non-Preemptive Scheduling
Quantfyng the Exact Sub-Optmalty of Non-Preemptve Schedulng Robert I. Davs 1, Abhlash Thekklakattl 2, Olver Gettngs 1, Radu Dobrn 2, and Saskumar Punnekkat 2 1 Real-Tme Systems Research Group, Unversty
More informationOn the Scheduling of Mixed-Criticality Real-Time Task Sets
On the Schedulng of Mxed-Crtcalty Real-Tme Task Sets Donso de Nz, Karthk Lakshmanan, and Ragunathan (Raj) Rajkumar Carnege Mellon Unversty, Pttsburgh, PA - 15232 Abstract The functonal consoldaton nduced
More informationUtilization-Based Scheduling of Flexible Mixed-Criticality Real-Time Tasks
1 Utlzaton-Based Schedulng of Flexble Mxed-Crtcalty Real-Tme Tasks Gang Chen, Nan Guan, D Lu, Qngqang He, Ka Huang, Todor Stefanov, Wang Y arxv:1711.00100v1 [cs.dc] 29 Sep 2017 Abstract Mxed-crtcalty models
More informationPartitioned Mixed-Criticality Scheduling on Multiprocessor Platforms
Parttoned Mxed-Crtcalty Schedulng on Multprocessor Platforms Chuanca Gu 1, Nan Guan 1,2, Qngxu Deng 1 and Wang Y 1,2 1 Northeastern Unversty, Chna 2 Uppsala Unversty, Sweden Abstract Schedulng mxed-crtcalty
More informationLecture 4: November 17, Part 1 Single Buffer Management
Lecturer: Ad Rosén Algorthms for the anagement of Networs Fall 2003-2004 Lecture 4: November 7, 2003 Scrbe: Guy Grebla Part Sngle Buffer anagement In the prevous lecture we taled about the Combned Input
More informationKernel Methods and SVMs Extension
Kernel Methods and SVMs Extenson The purpose of ths document s to revew materal covered n Machne Learnng 1 Supervsed Learnng regardng support vector machnes (SVMs). Ths document also provdes a general
More informationCollege of Computer & Information Science Fall 2009 Northeastern University 20 October 2009
College of Computer & Informaton Scence Fall 2009 Northeastern Unversty 20 October 2009 CS7880: Algorthmc Power Tools Scrbe: Jan Wen and Laura Poplawsk Lecture Outlne: Prmal-dual schema Network Desgn:
More informationModule 9. Lecture 6. Duality in Assignment Problems
Module 9 1 Lecture 6 Dualty n Assgnment Problems In ths lecture we attempt to answer few other mportant questons posed n earler lecture for (AP) and see how some of them can be explaned through the concept
More informationWorst-case response time analysis of real-time tasks under fixed-priority scheduling with deferred preemption
Real-Tme Syst (2009) 42: 63 119 DOI 10.1007/s11241-009-9071-z Worst-case response tme analyss of real-tme tasks under fxed-prorty schedulng wth deferred preempton Render J. Brl Johan J. Lukken Wm F.J.
More informationSimultaneous Optimization of Berth Allocation, Quay Crane Assignment and Quay Crane Scheduling Problems in Container Terminals
Smultaneous Optmzaton of Berth Allocaton, Quay Crane Assgnment and Quay Crane Schedulng Problems n Contaner Termnals Necat Aras, Yavuz Türkoğulları, Z. Caner Taşkın, Kuban Altınel Abstract In ths work,
More informationNUMERICAL DIFFERENTIATION
NUMERICAL DIFFERENTIATION 1 Introducton Dfferentaton s a method to compute the rate at whch a dependent output y changes wth respect to the change n the ndependent nput x. Ths rate of change s called the
More informationEEL 6266 Power System Operation and Control. Chapter 3 Economic Dispatch Using Dynamic Programming
EEL 6266 Power System Operaton and Control Chapter 3 Economc Dspatch Usng Dynamc Programmng Pecewse Lnear Cost Functons Common practce many utltes prefer to represent ther generator cost functons as sngle-
More informationA Simple Inventory System
A Smple Inventory System Lawrence M. Leems and Stephen K. Park, Dscrete-Event Smulaton: A Frst Course, Prentce Hall, 2006 Hu Chen Computer Scence Vrgna State Unversty Petersburg, Vrgna February 8, 2017
More informationQueueing Networks II Network Performance
Queueng Networks II Network Performance Davd Tpper Assocate Professor Graduate Telecommuncatons and Networkng Program Unversty of Pttsburgh Sldes 6 Networks of Queues Many communcaton systems must be modeled
More informationWeek3, Chapter 4. Position and Displacement. Motion in Two Dimensions. Instantaneous Velocity. Average Velocity
Week3, Chapter 4 Moton n Two Dmensons Lecture Quz A partcle confned to moton along the x axs moves wth constant acceleraton from x =.0 m to x = 8.0 m durng a 1-s tme nterval. The velocty of the partcle
More informationCover Page. The handle holds various files of this Leiden University dissertation
Cover Page The handle http://hdl.handle.net/887/32963 holds varous fles of ths Leden Unversty dssertaton uthor: Zha, Jal Teddy Ttle: daptve streamng applcatons : analyss and mplementaton models Issue Date:
More informationCOS 511: Theoretical Machine Learning. Lecturer: Rob Schapire Lecture # 15 Scribe: Jieming Mao April 1, 2013
COS 511: heoretcal Machne Learnng Lecturer: Rob Schapre Lecture # 15 Scrbe: Jemng Mao Aprl 1, 013 1 Bref revew 1.1 Learnng wth expert advce Last tme, we started to talk about learnng wth expert advce.
More informationAn Integrated OR/CP Method for Planning and Scheduling
An Integrated OR/CP Method for Plannng and Schedulng John Hooer Carnege Mellon Unversty IT Unversty of Copenhagen June 2005 The Problem Allocate tass to facltes. Schedule tass assgned to each faclty. Subect
More informationCHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE
CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE Analytcal soluton s usually not possble when exctaton vares arbtrarly wth tme or f the system s nonlnear. Such problems can be solved by numercal tmesteppng
More informationAppendix B: Resampling Algorithms
407 Appendx B: Resamplng Algorthms A common problem of all partcle flters s the degeneracy of weghts, whch conssts of the unbounded ncrease of the varance of the mportance weghts ω [ ] of the partcles
More informationThe strict priority scheduler
6. SP and GPS schedulers Pag. The strct prorty scheduler The strct prorty scheduler s very smple and effcent In the followng, we wll carry out the analyss of ths scheduler to determne the formulas for
More informationPolynomial Regression Models
LINEAR REGRESSION ANALYSIS MODULE XII Lecture - 6 Polynomal Regresson Models Dr. Shalabh Department of Mathematcs and Statstcs Indan Insttute of Technology Kanpur Test of sgnfcance To test the sgnfcance
More informationarxiv: v3 [cs.os] 12 Mar 2016
Mxed-Crtcalty Schedulng wth I/O Erc Mssmer, Katherne Zhao and Rchard West Computer Scence Department Boston Unversty Boston, MA 02215 Emal: mssmer,kzhao,rchwest}@cs.bu.edu arxv:1512.07654v3 [cs.os] 12
More informationModule 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur
Module 3 LOSSY IMAGE COMPRESSION SYSTEMS Verson ECE IIT, Kharagpur Lesson 6 Theory of Quantzaton Verson ECE IIT, Kharagpur Instructonal Objectves At the end of ths lesson, the students should be able to:
More informationMin Cut, Fast Cut, Polynomial Identities
Randomzed Algorthms, Summer 016 Mn Cut, Fast Cut, Polynomal Identtes Instructor: Thomas Kesselhem and Kurt Mehlhorn 1 Mn Cuts n Graphs Lecture (5 pages) Throughout ths secton, G = (V, E) s a mult-graph.
More informationECE559VV Project Report
ECE559VV Project Report (Supplementary Notes Loc Xuan Bu I. MAX SUM-RATE SCHEDULING: THE UPLINK CASE We have seen (n the presentaton that, for downlnk (broadcast channels, the strategy maxmzng the sum-rate
More informationHandling Overload (G. Buttazzo, Hard Real-Time Systems, Ch. 9) Causes for Overload
PS-663: Real-Te Systes Handlng Overloads Handlng Overload (G Buttazzo, Hard Real-Te Systes, h 9) auses for Overload Bad syste desgn eg poor estaton of worst-case executon tes Sultaneous arrval of unexpected
More informationUsing non-preemptive regions and path modification to improve schedulability of real-time traffic over priority-based NoCs
Real-Tme Syst (2017) 53:886 915 DOI 10.1007/s11241-017-9276-5 Usng non-preemptve regons and path modfcaton to mprove schedulablty of real-tme traffc over prorty-based NoCs Meng Lu 1 Matthas Becker 1 Mors
More informationStructure and Drive Paul A. Jensen Copyright July 20, 2003
Structure and Drve Paul A. Jensen Copyrght July 20, 2003 A system s made up of several operatons wth flow passng between them. The structure of the system descrbes the flow paths from nputs to outputs.
More informationTOPICS MULTIPLIERLESS FILTER DESIGN ELEMENTARY SCHOOL ALGORITHM MULTIPLICATION
1 2 MULTIPLIERLESS FILTER DESIGN Realzaton of flters wthout full-fledged multplers Some sldes based on support materal by W. Wolf for hs book Modern VLSI Desgn, 3 rd edton. Partly based on followng papers:
More informationx i1 =1 for all i (the constant ).
Chapter 5 The Multple Regresson Model Consder an economc model where the dependent varable s a functon of K explanatory varables. The economc model has the form: y = f ( x,x,..., ) xk Approxmate ths by
More informationPreDVS: Preemptive Dynamic Voltage Scaling for Real-time Systems using Approximation Scheme
PreDVS: Preemptve Dynamc Voltage Scalng for Real-tme Systems usng Approxmaton Scheme Wexun Wang and Prabhat Mshra Department of Computer and Informaton Scence and Engneerng Unversty of Florda, Ganesvlle,
More informationDifference Equations
Dfference Equatons c Jan Vrbk 1 Bascs Suppose a sequence of numbers, say a 0,a 1,a,a 3,... s defned by a certan general relatonshp between, say, three consecutve values of the sequence, e.g. a + +3a +1
More informationOptimal Static Partition Configuration in ARINC653 System
JOURNAL OF ELECTRONIC SCIENCE AND TECHNOLOGY, VOL. 9, NO. 4, DECEMBER 7 Optmal Statc rtton Confguraton n ARINC6 System Sheng-Ln Gu, Le Luo, Sen-Sen Tang, and Yang Meng Abstract ARINC6 systems, whch have
More informationParallel Real-Time Scheduling of DAGs
Washngton Unversty n St. Lous Washngton Unversty Open Scholarshp All Computer Scence and Engneerng Research Computer Scence and Engneerng Report Number: WUCSE-013-5 013 Parallel Real-Tme Schedulng of DAGs
More informationSchedulability Analysis of Task Sets with Upper- and Lower-Bound Temporal Constraints
Schedulablty Analyss of Task Sets wth Upper- and Lower-Bound Temporal Constrants The MIT Faculty has made ths artcle openly avalable. Please share how ths access benefts you. Your story matters. Ctaton
More information1 GSW Iterative Techniques for y = Ax
1 for y = A I m gong to cheat here. here are a lot of teratve technques that can be used to solve the general case of a set of smultaneous equatons (wrtten n the matr form as y = A), but ths chapter sn
More informationTwo-Phase Low-Energy N-Modular Redundancy for Hard Real-Time Multi-Core Systems
1 Two-Phase Low-Energy N-Modular Redundancy for Hard Real-Tme Mult-Core Systems Mohammad Saleh, Alreza Ejlal, and Bashr M. Al-Hashm, Fellow, IEEE Abstract Ths paper proposes an N-modular redundancy (NMR)
More informationOffline Equivalence: A Non-Preemptive Scheduling Technique for Resource-Constrained Embedded Real-Time Systems
Offlne Equvalence: A Non-Preemptve Schedulng Technque for Resource-Constraned Embedded Real-Tme Systems Mtra Nasr Björn B. Brandenburg Max Planck Insttute for Software Systems (MPI-SWS) Abstract We consder
More informationMMA and GCMMA two methods for nonlinear optimization
MMA and GCMMA two methods for nonlnear optmzaton Krster Svanberg Optmzaton and Systems Theory, KTH, Stockholm, Sweden. krlle@math.kth.se Ths note descrbes the algorthms used n the author s 2007 mplementatons
More informationLinear Regression Analysis: Terminology and Notation
ECON 35* -- Secton : Basc Concepts of Regresson Analyss (Page ) Lnear Regresson Analyss: Termnology and Notaton Consder the generc verson of the smple (two-varable) lnear regresson model. It s represented
More informationMixed-Criticality Scheduling with I/O
Mxed-Crtcalty Schedulng wth I/O Erc Mssmer, Katherne Mssmer and Rchard West Computer Scence Department Boston Unversty Boston, USA Emal: mssmer,kzhao,rchwest}@cs.bu.edu Abstract Ths paper addresses the
More informationProcrastination Scheduling for Fixed-Priority Tasks with Preemption Thresholds
Procrastnaton Schedulng for Fxed-Prorty Tasks wth Preempton Thresholds XaoChuan He, Yan Ja Insttute of Network Technology and Informaton Securty School of Computer Scence Natonal Unversty of Defense Technology
More informationImprovements in the configuration of Posix b scheduling
Improvements n the confguraton of Posx 1003.1b schedulng Matheu Grener, Ncolas Navet To cte ths verson: Matheu Grener, Ncolas Navet. Improvements n the confguraton of Posx 1003.1b schedulng. Ncolas Navet
More informationLecture 5 Decoding Binary BCH Codes
Lecture 5 Decodng Bnary BCH Codes In ths class, we wll ntroduce dfferent methods for decodng BCH codes 51 Decodng the [15, 7, 5] 2 -BCH Code Consder the [15, 7, 5] 2 -code C we ntroduced n the last lecture
More informationImproving the Sensitivity of Deadlines with a Specific Asynchronous Scenario for Harmonic Periodic Tasks scheduled by FP
Improvng the Senstvty of Deadlnes wth a Specfc Asynchronous Scenaro for Harmonc Perodc Tasks scheduled by FP P. Meumeu Yoms, Y. Sorel, D. de Rauglaudre AOSTE Project-team INRIA Pars-Rocquencourt Le Chesnay,
More informationManaging Capacity Through Reward Programs. on-line companion page. Byung-Do Kim Seoul National University College of Business Administration
Managng Caacty Through eward Programs on-lne comanon age Byung-Do Km Seoul Natonal Unversty College of Busness Admnstraton Mengze Sh Unversty of Toronto otman School of Management Toronto ON M5S E6 Canada
More informationResource Allocation with a Budget Constraint for Computing Independent Tasks in the Cloud
Resource Allocaton wth a Budget Constrant for Computng Independent Tasks n the Cloud Wemng Sh and Bo Hong School of Electrcal and Computer Engneerng Georga Insttute of Technology, USA 2nd IEEE Internatonal
More informationLecture Notes on Linear Regression
Lecture Notes on Lnear Regresson Feng L fl@sdueducn Shandong Unversty, Chna Lnear Regresson Problem In regresson problem, we am at predct a contnuous target value gven an nput feature vector We assume
More informationAnnexes. EC.1. Cycle-base move illustration. EC.2. Problem Instances
ec Annexes Ths Annex frst llustrates a cycle-based move n the dynamc-block generaton tabu search. It then dsplays the characterstcs of the nstance sets, followed by detaled results of the parametercalbraton
More informationEfficient Feasibility Analysis for Real-Time Systems with EDF scheduling*
Effcent Feasblty Analyss for Real-Tme Systems wth EF schedulng* Karsten Albers, Frank Slomka epartment of omputer Scence Unversty of Oldenburg Ammerländer Heerstraße 114-118 26111 Oldenburg, Germany {albers,
More informationAnalysis of Queuing Delay in Multimedia Gateway Call Routing
Analyss of Queung Delay n Multmeda ateway Call Routng Qwe Huang UTtarcom Inc, 33 Wood Ave. outh Iseln, NJ 08830, U..A Errol Lloyd Computer Informaton cences Department, Unv. of Delaware, Newark, DE 976,
More informationEnergy-Efficient Scheduling Fixed-Priority tasks with Preemption Thresholds on Variable Voltage Processors
Energy-Effcent Schedulng Fxed-Prorty tasks wth Preempton Thresholds on Varable Voltage Processors XaoChuan He, Yan Ja Insttute of Network Technology and Informaton Securty School of Computer Scence Natonal
More informationCalculation of time complexity (3%)
Problem 1. (30%) Calculaton of tme complexty (3%) Gven n ctes, usng exhaust search to see every result takes O(n!). Calculaton of tme needed to solve the problem (2%) 40 ctes:40! dfferent tours 40 add
More informationComputing Correlated Equilibria in Multi-Player Games
Computng Correlated Equlbra n Mult-Player Games Chrstos H. Papadmtrou Presented by Zhanxang Huang December 7th, 2005 1 The Author Dr. Chrstos H. Papadmtrou CS professor at UC Berkley (taught at Harvard,
More informationComparison of Regression Lines
STATGRAPHICS Rev. 9/13/2013 Comparson of Regresson Lnes Summary... 1 Data Input... 3 Analyss Summary... 4 Plot of Ftted Model... 6 Condtonal Sums of Squares... 6 Analyss Optons... 7 Forecasts... 8 Confdence
More informationJoint Statistical Meetings - Biopharmaceutical Section
Iteratve Ch-Square Test for Equvalence of Multple Treatment Groups Te-Hua Ng*, U.S. Food and Drug Admnstraton 1401 Rockvlle Pke, #200S, HFM-217, Rockvlle, MD 20852-1448 Key Words: Equvalence Testng; Actve
More informationAmiri s Supply Chain Model. System Engineering b Department of Mathematics and Statistics c Odette School of Business
Amr s Supply Chan Model by S. Ashtab a,, R.J. Caron b E. Selvarajah c a Department of Industral Manufacturng System Engneerng b Department of Mathematcs Statstcs c Odette School of Busness Unversty of
More informationFoundations of Arithmetic
Foundatons of Arthmetc Notaton We shall denote the sum and product of numbers n the usual notaton as a 2 + a 2 + a 3 + + a = a, a 1 a 2 a 3 a = a The notaton a b means a dvdes b,.e. ac = b where c s an
More information3.1 Expectation of Functions of Several Random Variables. )' be a k-dimensional discrete or continuous random vector, with joint PMF p (, E X E X1 E X
Statstcs 1: Probablty Theory II 37 3 EPECTATION OF SEVERAL RANDOM VARIABLES As n Probablty Theory I, the nterest n most stuatons les not on the actual dstrbuton of a random vector, but rather on a number
More informationWinter 2008 CS567 Stochastic Linear/Integer Programming Guest Lecturer: Xu, Huan
Wnter 2008 CS567 Stochastc Lnear/Integer Programmng Guest Lecturer: Xu, Huan Class 2: More Modelng Examples 1 Capacty Expanson Capacty expanson models optmal choces of the tmng and levels of nvestments
More informationSimulated Power of the Discrete Cramér-von Mises Goodness-of-Fit Tests
Smulated of the Cramér-von Mses Goodness-of-Ft Tests Steele, M., Chaselng, J. and 3 Hurst, C. School of Mathematcal and Physcal Scences, James Cook Unversty, Australan School of Envronmental Studes, Grffth
More informationLecture 8: Time & Clocks. CDK: Sections TVS: Sections
Lecture 8: Tme & Clocks CDK: Sectons 11.1 11.4 TVS: Sectons 6.1 6.2 Topcs Synchronzaton Logcal tme (Lamport) Vector clocks We assume there are benefts from havng dfferent systems n a network able to agree
More informationEcon107 Applied Econometrics Topic 3: Classical Model (Studenmund, Chapter 4)
I. Classcal Assumptons Econ7 Appled Econometrcs Topc 3: Classcal Model (Studenmund, Chapter 4) We have defned OLS and studed some algebrac propertes of OLS. In ths topc we wll study statstcal propertes
More informationNON LINEAR ANALYSIS OF STRUCTURES ACCORDING TO NEW EUROPEAN DESIGN CODE
October 1-17, 008, Bejng, Chna NON LINEAR ANALYSIS OF SRUCURES ACCORDING O NEW EUROPEAN DESIGN CODE D. Mestrovc 1, D. Czmar and M. Pende 3 1 Professor, Dept. of Structural Engneerng, Faculty of Cvl Engneerng,
More informationImproving the Quality of Control of Periodic Tasks Scheduled by FP with an Asynchronous Approach
Improvng the Qualty of Control of Perodc Tasks Scheduled by FP wth an Asynchronous Approach P. Meumeu Yoms, L. George, Y. Sorel, D. de Rauglaudre AOSTE Project-team INRIA Pars-Rocquencourt Le Chesnay,
More informationLecture 4. Instructor: Haipeng Luo
Lecture 4 Instructor: Hapeng Luo In the followng lectures, we focus on the expert problem and study more adaptve algorthms. Although Hedge s proven to be worst-case optmal, one may wonder how well t would
More informationOn the Throughput of Clustered Photolithography Tools:
On the hroughput of lustered Photolthography ools: Wafer Advancement and Intrnsc Equpment Loss Maruth Kumar Mutnur James R. Morrson, Ph.D. September 23, 2007 Presentaton Outlne Motvaton Model : Synchronous
More informationLecture 4: Universal Hash Functions/Streaming Cont d
CSE 5: Desgn and Analyss of Algorthms I Sprng 06 Lecture 4: Unversal Hash Functons/Streamng Cont d Lecturer: Shayan Oves Gharan Aprl 6th Scrbe: Jacob Schreber Dsclamer: These notes have not been subjected
More informationScheduling within Temporal Partitions: Response-time Analysis and Server Design
chedulng wthn Temporal Parttons: Response-tme Analyss and erver Desgn Lus Almeda LE-IEETA/DET Unversdade de Avero Avero, Portugal lda@det.ua.pt Paulo Pedreras LE-IEETA/DET Unversdade de Avero Avero, Portugal
More informationPartitioned Scheduling of Multi-Modal Mixed- Criticality Real-Time Systems on Multiprocessor Platforms
Unversty of Pennsylvana ScholarlyCommons Departmental Papers (CIS) Department of Computer & Informaton Scence 4-2014 Parttoned Schedulng of Mult-Modal Mxed- Crtcalty Real-Tme Systems on Multprocessor Platforms
More informationThe Schedulability Region of Two-Level Mixed-Criticality Systems based on EDF-VD
The Schedulablty Regon of Two-Level Mxed-Crtcalty Systems based on EDF-VD Drk Müller and Alejandro Masrur Department of Computer Scence TU Chemntz, Germany Abstract The algorthm Earlest Deadlne Frst wth
More information