Quantifying the Exact Sub-Optimality of Non-Preemptive Scheduling

Size: px
Start display at page:

Download "Quantifying the Exact Sub-Optimality of Non-Preemptive Scheduling"

Transcription

1 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 of York, UK and AOSTE team, Inra, Pars-Rocquencourt, France 2 Mälardalen Real-Tme Research Center, Mälardalen Unversty, Sweden Abstract Fxed prorty schedulng s used n many real-tme systems; however, both preemptve and non-preemptve varants (FP-P and FP-NP) are known to be sub-optmal when compared to an optmal unprocessor schedulng algorthm such as preemptve Earlest Deadlne Frst (EDF-P). In ths paper, we nvestgate the sub-optmalty of fxed prorty non-preemptve schedulng. Specfcally, we derve the exact processor speed-up factor requred to guarantee the feasblty under FP-NP (.e. schedulablablty assumng an optmal prorty assgnment) of any task set that s feasble under EDF-P. As a consequence of ths work, we also derve a lower bound on the sub-optmalty of non-preemptve EDF (EDF-NP), whch snce t matches a recently publshed upper bound gves the exact sub-optmalty for EDF-NP. It s known that nether preemptve, nor non-preemptve fxed prorty schedulng domnates the other,.e., there are task sets that are feasble on a processor of unt speed under FP-P that are not feasble under FP-NP and vce-versa. Hence comparng these two algorthms, there are non-trval speedup factors n both drectons. We derve the exact speed-up factor requred to guarantee the FP-NP feasblty of any FP-P feasble task set. Further, we derve upper and lower bounds on the speed-up factor requred to guarantee FP-P feasblty of any FP-NP feasble task set. Emprcal evdence suggests that the lower bound may be tght, and hence equate to the exact speed-up factor n ths case. Keywords-real-tme; unprocessor; resource augmentaton; speedup factor; sub-optmalty; non-preemptve schedulng; preemptve schedulng; EDF; fxed prorty. I. INTRODUCTION Real-tme systems are prevalent n a wde varety of applcaton areas ncludng telecommuncatons, consumer electroncs, aerospace systems, automotve electroncs, robotcs, and medcal systems. The functonalty of these systems s typcally mapped to a set of perodc or sporadc real-tme tasks, wth each task gvng rse to a potentally unbounded sequence of jobs. Tmely executon of the tasks and ther jobs s supported by the use of real-tme schedulng algorthms. Real-tme schedulng algorthms for sngle processor systems may be classfed nto two man types: fxed prorty and dynamc prorty. Fxed prorty schedulng s the defacto standard approach used n many applcatons. Here, a unque statc prorty s assgned to each task and nherted by all of ts jobs. At runtme, the scheduler uses these prortes to determne whch job to execute. Earlest Deadlne Frst (EDF) s the most common example of a dynamc prorty schedulng algorthm. EDF uses prortes based on the absolute deadlne of each job to make schedulng decsons. Real-tme schedulng algorthms may also be classfed n terms of when and f preempton s permtted. Thus we have preemptve and non-preemptve varants of both fxed prorty (FP-P and FP-NP) and EDF (EDF-P and EDF-NP) schedulng. There are a number of dfferent ways n whch the performance of real-tme schedulng algorthms can be compared. Emprcal technques typcally rely on generatng a large number of task sets wth parameters chosen from some approprate dstrbutons. The performance of the schedulng algorthms are then compared by determnng task set schedulablty accordng to exact or suffcent schedulablty tests and plottng a graph of the success rato,.e. the proporton of task sets that are deemed schedulable, at dfferent utlsaton levels. More advanced approaches use a weghted schedulablty metrc [8] to llustrate how schedulablty vares wth a further parameter, for example task set cardnalty, or the range of task perods. Smlar comparsons may be obtaned by usng a smulaton of each algorthm as a necessary schedulablty test, hence showng the proporton of task sets found to be defntely unschedulable due to a deadlne mss n the smulaton. These emprcal approaches tend to focus on the average-case behavour over large numbers of task sets rather than hghlghtng those task sets that are partcularly dffcult to schedule usng one algorthm, but may be easy to schedule usng another. Metrcs such as breakdown utlsaton [26] and optmalty degree [9] can also be used to examne average-case performance. In ths paper, we focus on a theoretcal method of comparng the worst-case performance of real-tme schedulng algorthms based on a resource augmentaton metrc referred to as the processor speedup factor [25]. Specfcally, we derve bounds on the factor by whch the speed of the processor needs to be ncreased to ensure that any task set that s feasble under some schedulng algorthm A s guaranteed to be feasble under another algorthm B. When A s an optmal algorthm then ths speedup factor provdes a measure of the sub-optmalty of algorthm B. Note, when we refer to a task set as beng feasble under a partcular schedulng algorthm, f that algorthm uses fxed

2 prortes, then we mean that the task set s schedulable under that algorthm wth an optmal prorty assgnment. In ths paper, we use speedup factors to compare fxed prorty non-preemptve schedulng (FP-NP) wth both fxed prorty preemptve (FP-P) and Earlest Deadlne Frst (EDF-P) schedulng. Our nterest n FP-NP schedulng stems from the fact that n modern unprocessor systems, pre-empton can sgnfcantly ncrease overheads due to a number of factors. These nclude context swtch costs and cache related pre-empton delays (CRPD) whch have to be accounted for n both FP-P [2] and EDF-P [30] schedulng. CRPD can have a substantal mpact, ncreasng task executon tmes by as much as 33% [11]. One way of reducng or elmnatng CRPD s to partton the cache; however, allocatng each task a cache partton, whch s some fracton of the overall sze of the cache, has an mpact on the task s worst-case executon tme (WCET) whch may be sgnfcantly nflated. Such parttonng rarely mproves upon schedulablty compared to accountng for CRPD and allowng tasks to use the entre cache [3]. An alternatve method whch elmnates CRPD wthout ncreasng WCETs s to employ a fully non-preemptve scheduler. Non-preemptve schedulng has the addtonal advantage of reducng memory requrements, as well as mprovng the dependablty of real-tme systems [32]. It s however well known that non-preemptve schedulng can be nfeasble at low processor utlzaton levels due to the long task problem [32], where some task has a WCET greater than the deadlne of another task. When consderng the theoretcal optmalty of unprocessor schedulng algorthms (.e., wthout accountng for overheads), then EDF-P s optmal n the sense that any task set that s feasble on a unprocessor under some other schedulng algorthm s also feasble usng EDF-P [21]. As a result, EDF-P domnates other unprocessor schedulng algorthms such as FP-P, FP-NP, and EDF-NP. When usng fxed prorty schedulng, prorty assgnment has a sgnfcant mpact on schedulablty. For FP-P schedulng, Deadlne Monotonc Prorty Orderng (DMPO) s optmal for constraned-deadlne task sets [28]. In other words, any constraned-deadlne task set that s schedulable under FP-P wth some other prorty orderng s also guaranteed to be schedulable wth DMPO. DMPO s not however optmal f task deadlnes are arbtrary [27] (.e. may be larger than ther perods). In that case, Audsley s algorthm [5] can be used to provde an optmal prorty assgnment. Wthn the class of non-preemptve schedulng algorthms, no work-conservng algorthm s optmal. Ths s because n general t s necessary to nsert dle tme to acheve a feasble schedule [22]. EDF-NP s however weakly optmal n the sense that f a work conservng non-preemptve schedule exsts for a task set, then EDF-NP can schedule t [23], hence EDF- NP domnates FP-NP. Wth FP-NP schedulng, DMPO s not optmal for constraned-deadlne task sets; however, Audsley s algorthm [5] can agan be appled [22]. Comparng the preemptve and non-preemptve paradgms, EDF-P domnates EDF-NP; however, the same s not true wth fxed prortes, FP-P does not domnate FP-NP. Instead, they are ncomparable. In other words, task sets exst that are feasble under FP-NP that are not feasble under FP-P and vce-versa [39]. Ths lack of any domnance relatonshp means that when fxed prortes are used, some systems are easer to schedule preemptvely, whle others are easer to schedule non-preemptvely. (Optmalty for fxed prorty schedulng requres lmted preempton wth fnal non-preemptve regons [14]; consderaton of that more complex model s however beyond the scope of ths paper). A. Speedup Factors In 2009, Davs et al. [20] derved the exact sub-optmalty S = 1/Ω 1.76 of FP-P schedulng for constraned-deadlne task sets. Ths exact bound complements the one for mplctdeadlne task sets S =1/ln(2) 1.44 that may be derved from Lu and Layland s famous results [29]. In 2009, Davs et al. [19] also derved upper and lower bounds of S =1/Ω and S =2on the sub-optmalty of FP-P schedulng for arbtrarydeadlne task sets. In 2015, Davs et al. [15] completed the exact characterzaton of the sub-optmalty of FP-P schedulng by provng that the exact speedup factor requred for arbtrarydeadlne task sets s n fact S =2. In the same paper, the authors also extended these results to the case where tasks share resources under mutual excluson accordng to the Stack Resource Polcy (SRP) [6] or the Dead Floor Protocol (DFP) [12], thus provdng exact speedup factors comparng FP-P + SRP to EDF + SRP or EDF + DFP. In 2010, Davs et al. [17] derved upper and lower bounds on the speedup factor requred to guarantee FP-NP feasblty of all EDF-NP feasble task sets. These bounds are S =1/Ω and S = 2 respectvely for all three classes of task set (mplct, constraned and arbtrary deadlne). In 2015, von der Brüggen et al. [38] proved upper bounds of S =1/Ω for the mplct and constraned deadlne cases, thus along wth the pror results, showng that these values are exact. Later n 2015, Davs et al. [15] also completed the exact characterzaton of the speedup factors requred to guarantee FP-NP feasblty of EDF-NP feasble task sets by showng that the exact speedup factor for the arbtrary deadlne case s S =2(the same as n the preemptve case for FP-P v. EDF-P). In 2013, Thekklakattl et al. [35][36] quantfed the sub-optmalty of EDF-NP (wth respect to EDF-P), brdgng between the preemptve and non-preemptve paradgms. (Ths result was subsequently extended to the case of global deadlne based schedulng [34]). In 2015, Abugchem et al. [1] subsequently provded a tghter upper bound on the sub-optmalty of EDF-NP. In ths paper, we focus on quantfyng the sub-optmalty of unprocessor FP-NP schedulng wth respect to an optmal algorthm such as EDF-P. As a consequence of ths work, we also quantfy the exact sub-optmalty of unprocessor EDF-NP schedulng. Further, we use the speedup factor

3 metrc to compare the performance of FP-P and FP-NP schedulng n both drectons, gven the lack of any domnance relaton between them. The man contrbutons of ths paper are n determnng for unprocessor systems: S1: The exact speedup factor requred to guarantee FP-NP feasblty of any EDF-P feasble task set (.e. the exact sub-optmalty of FP-NP). S2: The exact speedup factor requred to guarantee FP-NP feasblty for any task set that s FP-P feasble. S3: The exact speedup factor requred to guarantee EDF-NP feasblty of any EDF-P feasble task set (.e. the exact sub-optmalty of EDF-NP). S4: Upper and lower bounds on the speedup factor requred to guarantee FP-P feasblty for any task set that s FP-NP feasble. Note, where we refer to the exact sub-optmalty, orexact speedup factor for a non-preemptve schedulng algorthm compared to a preemptve one, then t s mportant to clarfy precsely what we mean. Snce non-preemptve schedulng suffers from the long task problem [32], whereby a task set may be trvally unschedulable because the longest executon tme C max of one task exceeds the shortest deadlne of another, then assumng freely determned task parameters no fnte speedup factor exsts. Ths s the case, because C max / can be made arbtrarly large. Instead, n ths paper we provde exact speedup factors that are parametrc n the rato C max /, and thus hold wth ths mnmal constrant on task parameters such that a fnte speedup factor exsts. We note that wth further nformaton about task set characterstcs t may be possble to determne more precse speedup factors wth narrower scope,.e. more constrants on ther valdty. In the extreme, each ndvdual task set effectvely has a precse speedup factor whch may be computed by referrng to all of the parameters of ts component tasks. In ths paper, as n prevous work on speedup factors [20], [19], [17], [35], [15] we assume that changes n processor speed have a lnear effect on the tme requred to execute each task. Consderng a unprocessor system n more detal, our assumpton s that the clock frequency may be changed and that ths has a lnear effect on the speed of all hardware components (processor, memory etc.) thus producng a lnear scalng of executon tmes. Such behavour s a reasonable approxmaton for smple systems. Whle the results presented n ths paper are manly theoretcal, they may also have practcal utlty n enablng system desgners to quantfy the maxmum penalty for usng FP-NP schedulng n terms of the addtonal processng capacty requred as compared to FP-P or EDF-P. Ths performance penalty can then be weghed aganst other factors such as the addtonal overheads (such as context swtch costs and CRPD) ncurred by preemptve schedulng, when consderng whch algorthm to use. B. Organzaton The rest of the paper s organzed as follows: the system model s presented n Secton II. Secton III recaps on the schedulablty analyses for preemptve and non-preemptve EDF and fxed prorty schedulng. Our man results on sub-optmalty and speedup factors are presented n Sectons IV and V, wth the results of an emprcal nvestgaton reported n Secton VI. Secton VII concludes wth a summary and a dscusson of open problems. II. SYSTEM MODEL In ths secton we descrbe the system model, termnology, and notaton used n the rest of the paper. A. Task Model We consder the schedulablty of a set of sporadc tasks on a unprocessor system. A task set Γ comprses a statc set of n tasks {τ 1,τ 2,...τ n }. Each task τ s characterzed by ts mnmum nter-arrval tme T, bounded worst-case executon tme C, and relatve deadlne D. Deadlnes may be mplct (D = T ), constraned (D T ), or arbtrary (ndependent of the task s perod). The longest executon tme of any of the tasks s denoted by C max = max C. Smlarly, the τ Γ shortest deadlne s denoted by = mn D. In the case τ Γ of fxed prorty schedulng, we use hp() and hep() to denote respectvely the set of tasks wth prortes hgher than, and hgher than or equal to that of task τ. Smlarly, we use lp() to denote the set of tasks wth prortes lower than that of task τ. (Note, we assume that prortes are unque). Further, we use B to denote the longest tme for whch task τ may be blocked by a lower prorty task that s executng non-preemptvely. The utlzaton U of a task τ s gven by U = C T and the utlzaton of the task set s the sum of the utlzatons of the ndvdual tasks U = n =1 U. B. Executon Tme Model To ease readablty, and wthout loss of generalty, we assume that the task set of nterest s ntally executng on a processor of unt speed. Accordngly, we assume that C represents the WCET of task τ on a processor of speed S =1. We assume a lnear relatonshp between executon tme and processor speed. The WCET of task τ on a processor of speed S s therefore gven by C S = C /S. Conversely, the speed S requred to obtan an executon tme of C S s gven by S = C /C S. Ths model allows us to use processor speedup factors and processor speeds nterchangeably. In other words, changng the processor speed from S =1to S = x, s equvalent to speedng up the processor by a factor of x. C. Schedulng Model In ths paper, we consder four schedulng algorthms EDF-P, EDF-NP, FP-P, and FP-NP. Wth EDF-P, at any gven tme the ready task wth the job that has the earlest absolute deadlne s executed by the processor. Smlarly, wth FP-P

4 schedulng, at any gven tme the processor executes the job of the ready task wth the hghest prorty. By contrast, wth EDF-NP, whenever a job s released that has an earler absolute deadlne than the currently executng job, nstead of preemptng the executng job the scheduler blocks the new job untl the currently executng job completes. Only at that pont s the ready job wth the earlest absolute deadlne dspatched for executon. Smlarly, wth FP-NP schedulng, whenever a hgher prorty task s released durng the executon of a lower prorty task τ, nstead of preemptng τ the scheduler blocks the hgher prorty task untl τ completes ts executon. Only at that pont s the hghest prorty ready task dspatched for executon. We note that all four schedulng algorthms are work-conservng and so never dle the processor when there s a task ready to execute. D. Defntons We now provde formal defntons for the terms speedup factor, speedup optmal task set and sub-optmalty. Recall that when we use the term feasble, then n the case of fxed prorty schedulng, we mean schedulable wth an optmal prorty assgnment. Defnton II.1. The speed-up factor of a schedulng algorthm A wth respect to a schedulng algorthm B s defned as the mnmum factor S, S 1, such that any task set that s feasble under B on a processor of unt speed, s guaranteed to be feasble under A on a processor that s S tmes faster. Defnton II.2. A task set s sad to be speed-up optmal for the comparson between schedulng algorthms A and B f t s feasble on a processor of unt speed under B and requres the processor speed to be ncreased by the speedup factor S n order to be feasble under A. Defnton II.3. The sub-optmalty of a schedulng algorthm A s defned by ts speedup factor wth respect to an optmal schedulng algorthm. Defnton II.4. A schedulng algorthm s sad to be optmal f t can schedule every task set that s feasble under some other schedulng algorthm, on a processor of equvalent speed. The lower the sub-optmalty of a partcular schedulng algorthm, the closer t s to beng optmal, wth a value of S =1mplyng optmalty. We note that FP-P, FP-NP, and EDF-NP are all sub-optmal wth respect to an optmal unprocessor schedulng algorthm such as EDF-P. III. SCHEDULABILITY ANALYSIS In ths secton, we recaptulate schedulablty analyss for fxed prorty and EDF schedulng under both preemptve and non-preemptve paradgms. A. Fxed Prorty Preemptve Schedulng The schedulablty of a set of arbtrary-deadlne sporadc tasks under FP-P can be determned usng response tme analyss [37] [27]. Response tme analyss nvolves calculatng the worst-case response tme R P of each task τ and comparng t to ts deadlne D. To determne schedulablty, the analyss must check each job of task τ n the longest prorty level- busy perod. Ths busy perod starts wth a crtcal nstant correspondng to the synchronous arrval of a job of task τ and jobs of all hgher prorty tasks. Jobs of these tasks are then re-released as soon as possble. The length of the prorty level- busy perod s gven by the soluton to the followng recurrence relaton: A P = A P C j (1) τ j hep() The number of jobs of task τ n the busy perod s gven by Q P = AP T. The completon tme W P (q) of job q of task τ relatve to the start of the busy perod s gven by the followng recurrence relaton: W P (q) =(q +1)C + W P (q) C j (2) τ j hp() Iteraton starts wth W P (q) =(q +1)C and ends ether on convergence or when W P (q) qt >D n whch case the job and therefore the task s unschedulable. Assumng that all Q P jobs n the busy perod are schedulable, then the worst-case response tme of the task s gven by: R P = max (W (q) qt ) (3) q=0,1,2,...q P 1 For task sets wth constraned deadlnes, only the response tme of the frst job n the busy perod need be checked, leadng to a smpler exact test [4], [24], based on the followng recurrence relaton: R P = C + τ j hp() τ j hep() R P C j (4) Iteraton starts wth R P = C and ends ether on convergence or when R P >D n whch case the task s unschedulable. B. Fxed Prorty Non-Preemptve Schedulng Determnng exact schedulablty of a task τ under FP-NP also requres checkng all of the jobs of task τ wthn a prorty level- busy perod [10]. In ths case, the busy perod starts wth an nterval of blockng and so ts length s gven by the soluton to the followng recurrence relaton: A NP = B + A NP C j (5) where B s the blockng factor: { max B = C k Δ <n τ k lp() 0 = n and Δ s the tme granularty 1. 1 Wthout loss of generalty, we assume that Δ s the granularty of the processor clock and that Δ C k for every task τ k even when we ncrease the processor speed. (6)

5 The number of jobs of task τ n the busy perod s gven by Q NP = ANP T. The start tme W NP (q) of job q of task τ relatve to the start of the busy perod s gven by the followng recurrence relaton: W NP (q) =B + qc + W NP (q)+δ C j (7) τ j hp() Iteraton starts wth W NP (q) = B + qc and ends ether on convergence or when W NP (q)+c qt >D n whch case the job and therefore the task s unschedulable. Assumng that all Q NP jobs n the busy perod are schedulable, then the worst-case response tme of the task s gven by: R NP = max q=0,1,2,...q NP (W NP (q)+c qt ) (8) 1 Note, n the above formulaton we use a celng functon wth +Δ, rather than the alternatve of a floor functon +1, snce ths asssts n the proofs gven later n the paper. The two formulatons are however equvalent. We make use of the followng suffcent schedulablty tests for each task τ under FP-NP. The frst s based on a lnear equaton [17]: B + D C j D (9) τ j hep() The second, whch s only applcable to constraned-deadlne task sets s based on a recurrence relaton [16]: W NP = C max + R NP τ j hp() W NP +Δ C j = W NP + C (10) where W NP s an upper bound on the longest tme from release to the start of any job of task τ. C. Preemptve Earlest Deadlne Frst Schedulng A task set s schedulable under preemptve EDF f and only f n every tme nterval, the total processor demand requested by the task set s no greater than the length of the nterval [7]. A task set s EDF-P feasble f and only f : DBF (t) t (11) where τ Γ t = k + D j, k N,j [1,n] t A P n ( DBF (t) =max 0, 1+ t D T ) C (12) and A P n s the length of the longest busy perod, gven by (1) [31] [33]. IV. EXACT SUB-OPTIMALITY AND SPEEDUP FACTORS In ths secton, we compare the effectveness of fxed prorty non-preemptve schedulng (FP-NP) wth that of preemptve schedulng; both FP-P and EDF-P. We determne the exact sub-optmalty of FP-NP. Specfcally, we derve the exact speedup factor S1 requred to guarantee feasblty under FP-NP of all EDF-P feasble task sets. Further, we derve the exact speedup factor S2 requred to guarantee feasblty under FP-NP of all FP-P feasble task sets. Surprsngly these two speedup factors are the same (S1 = S2). We also derve an exact speedup factor for the case of FP-NP v. FP-P, when tasks have constraned deadlnes. Ths speedup factor s smaller than n the arbtrary-deadlne case. We obtan the exact speedup factors by dervng upper bounds va analyss and lower bounds from example task sets and then showng that they are the same. The example task set we use to provde a lower bound for FP-NP v. EDF-P also apples to EDF-NP v. EDF-P, hence we also obtan S3, the exact sub-optmalty of EDF-NP, snce our lower bound s the same as the upper bound recently publshed by Abugchem et al. [1]. Lemma IV.1. An upper bound on the speedup factor requred such that FP-NP, usng optmal prorty assgnment can schedule any arbtrary-deadlne sporadc task set that s feasble under EDF-P s gven by: Proof: We show that the speedup factor n the lemma s enough to ensure schedulablty under FP-NP accordng to the suffcent test gven by (9) usng DMPO, snce that suffces to also prove schedulablty wth an exact test and optmal prorty assgnment. Comparng (9) and (12) and assumng DMPO we observe that: D DBF j (2D ) C j (13) τ j Γ τ j hep() τ j:d j D D C j From (9), (13), and the fact that B C max then schedulablty under FP-NP s assured on a processor of speed S provded that for every task τ : C max + τ k Γ DBF k(2d ) D (14) S Snce the task set s schedulable under EDF-P on a processor of unt speed, then t follows from (11) that τ k Γ DBF k(2d ) 2D. Substtutng nto (14) and re-arrangng, we have: S 2+ C max D Substtutng for D gves an upper bound on the speedup factor requred.

6 Lemma IV.2. An upper bound on the speedup factor requred such that FP-NP, usng optmal prorty assgnment can schedule any arbtrary-deadlne sporadc task set that s feasble under FP-P schedulng s gven by: Proof: Follows drectly from Lemma IV.1 and the fact that EDF-P can schedule all task sets that are feasble under FP-P schedulng. [21]. Lemma IV.3. A lower bound on the speedup factor requred such that FP-NP, usng optmal prorty assgnment can schedule any mplct, constraned, or arbtrary-deadlne sporadc task set that s feasble under EDF-P (or FP-P) s gven by: Proof: Consder the followng task set: τ 1 : C 1 = k 1, D 1 = k, T 1 = k τ 2 : C 2 = k 2 +1, D 2 =, T 2 = We note that the task set s trvally schedulable on a processor of unt speed usng ether EDF-P or FP-P. For the task set to be schedulable wth FP-NP effectvely requres that the executon tme of both tasks 2 (.e. k 2 + k) can be accommodated wthn the smallest deadlne D 1 = k. Hence we have S (k 2 +k)/k = k+1. Snce Cmax = k+ 1 k we obtan: S 1+ C max 1 k and so as k we have a lower bound of: S 1+ C max Theorem IV.1. The exact sub-optmalty (S3) of EDF-NP,.e, the exact speedup factor requred such that EDF-NP can schedule any mplct, constraned, or arbtrary-deadlne sporadc task set that s feasble under EDF-P s gven by: Proof: Follows from a consderaton of the task set n Lemma IV.3. For the task set to be schedulable under EDF- NP also requres that the total executon tme of both tasks can be accommodated wthn the smallest deadlne resultng n the same requrement on the speedup factor. Snce the lower bound from Lemma IV.3 matches the upper bound gven by Abugchem et al. [1] the value s exact. Lemma IV.4. An upper bound on the speedup factor requred such that FP-NP schedulng, usng optmal prorty assgnment can schedule any constraned-deadlne sporadc task set that s feasble under FP-P schedulng s gven by: 2 For ease of presentaton, and snce t does not affect the result, we omt the small reducton n blockng due to the tme granularty Δ 1. (Note ths Lemma does not apply to arbtrary-deadlne tasks sets). Proof: Let Γ be a task set that s schedulable under FP-P schedulng on a processor of unt speed, usng DMPO, whch s optmal n the constraned deadlne case. We wll prove that Γ s schedulable on a processor of speed S under FP-NP schedulng usng the same prorty orderng. We note that ths orderng s not necessarly optmal for FP-NP schedulng, but suffces to prove feasblty. Let W P be the completon tme of the frst job of task τ n the prorty level- busy perod under FP-P schedulng. Snce all tasks are schedulable and have constraned deadlnes, then W P = R P D. We consder two cases. Case 1: W P Let E P (t) equate to C plus the maxmum amount of executon from tasks of hgher prorty than τ released n an nterval of length t: E P (t) =C + t C j (15) τ j hp() From (4), t follows that E P (W P )=W P = R P where R P s the exact response tme of task τ under FP-P schedulng. Let E NP (t) be the maxmum amount of executon from tasks of hgher prorty than τ released n an nterval of length t ncludng any releases at the end of the nterval: E NP (t) = t +Δ C j (16) τ j hp() From the suffcent test for constraned-deadlne task sets under FP-NP schedulng (10) we have E NP (W NP )+C max + C = W NP + C where W NP s an upper bound on the tme from the release of a job of task τ untl t starts to execute, under FP-NP schedulng, and W NP + C s an upper bound on the task s response tme. From (15) and (16), observe that the followng holds x Δ and t x: E NP (t x)+c E P (t) (17) To ensure schedulablty under FP-NP schedulng, we speed up the processor by some factor S 1 such that the latest completon tme of task τ under FP-NP schedulng s no greater than W P the completon tme under FP-P schedulng on a processor of unt speed. It follows that the start tme of τ must be at the latest W P C S. An upper bound on the nterference from hgher prorty tasks n an nterval of ths length s gven by E NP (W P C S ). Schedulablty under FP-NP s then ensured provded that: C max + E NP (W P C S )+C W P (18) S Ths follows, snce f (18) holds then the upper bound response tme for task τ computed va (10) wll be W P. Snce even on the faster processor of speed S, the executon tme of τ cannot be less than the tme granularty ( C S

7 Δ), then from (17), t follows that E NP (W P C S )+C E P (W P ).AsEP (W P )=W P, substtutng nto (18) and re-arrangng we have: S 1+ C max W p (19) From the assumpton of ths case (Case 1) W P and hence the task set s guaranteed to be schedulable on a processor of speed S, where: < S 1+ C max (20) Case 2: W P Snce deadlnes are constraned, there are no tasks wth perods that are less than, and so under FP-P schedulng on a processor of unt speed, we have: W P = C + C j (21) j hp() In ths case, to ensure schedulablty under FP-NP on a processor of speed S, we smply requre that task τ completes before hence, we requre that: C max + E NP ( C S )+C (22) S where S s the processor speed. Followng the same logc as n Case 1, we observe that E NP ( C S )+C E P (W P )=W P. Snce n ths case (Case 2) W P < substtutng nto (22) and re-arrangng we obtan the speed S at whch the task set s guaranteed to be schedulable: S 1+ C max (23) Theorem IV.2. The exact speedup factor requred such that FP-NP, usng optmal prorty assgnment can schedule any mplct, or constraned-deadlne sporadc task set that s feasble under FP-P schedulng s gven by: Proof: Proof follows from the lower bound gven by Lemma IV.3 and the upper bound gven by Lemma IV.4 whch have the same value. Lemma IV.5. A lower bound on the speedup factor requred such that FP-NP schedulng, usng optmal prorty assgnment can schedule any arbtrary-deadlne sporadc task set that s feasble under FP-P schedulng s gven by: Proof: Consder the followng task set: τ wth =1,...,k 1: C =1, D = k +1, T = k τ k : C k =1, D k = k +1, T k = k +1 τ k+1 : C k+1 = k 2, D k+1 =, T k+1 = Ths task set s trvally schedulable on a processor of unt speed under FP-P. In the prorty order shown, then for j =1 to k, task τ j has a response tme of j. Further, task τ k+1 executes n the one spare unt of executon tme n each Least Common Multple k(k +1) of the perods of tasks τ 1 to τ k and therefore has a worst-case response tme of k 3 (k +1). Under FP-NP on a processor of speed S 1 consder the operaton of Audsleys OPA algorthm, whch s optmal n ths case [22]. Frst, task τ k+1 s assgned as t s trvally schedulable at the lowest prorty on a processor of unt speed or hgher. There are then two cases to consder 3. Case 1: τ k s assgned the next hgher prorty level above τ k+1. In ths case, task τ k s subject to blockng due to task τ k+1 and nterference (before t starts to execute) from tasks τ 1 to τ k 1. Consderng the crtcal nstant for task τ k, there are two possble scenaros whch could result n the task beng schedulable. In the frst scenaro, the frst jobs of all tasks except τ k must complete ther executon strctly before the second jobs of tasks τ 1 to τ k 1 are released at tme k. Ths allows task τ k to start executng before tme k, thus avodng nterference from the second job of each hgher prorty task. For ths to happen mples the followng constrant: S>(k 2 + k 1)/k = k +(k 1)/k. Further, task τ k must also complete by tme k +1, whch gves the weaker constrant S (k 2 + k)/(k +1)=k. The alternatve scenaro s that task τ k does not get to start before the second jobs of tasks τ 1 to τ k 1 are released at tme k. In ths scenaro, for task τ k to be schedulable, the frst job of task τ k+1, the frst and second jobs of tasks τ 1 to τ k 1, and the frst job of task τ k must complete ther executon by tme k + 1, whch leads to the constrant that S (k 2 +2k 1)/(k +1)=k +(k 1)/(k +1). Case 2: τ k 1 s assgned the next hgher prorty level above τ k+1 (snce τ 1 to τ k 1 are dentcal ths s effectvely the only other opton asde from Case 1 for ths prorty level). Consderng the crtcal nstant for task τ k 1, there are two possble scenaros whch could result n the task beng schedulable. In the frst scenaro, the frst jobs of all tasks except τ k 1 must complete ther executon strctly before the second jobs of tasks τ 1 to τ k 2 are released at tme k. Ths allows task τ k 1 to start executng before tme k, thus avodng nterference from the second job of each hgher prorty task. As n Case 1, ths mples the followng constrant: S>(k 2 + k 1)/k = k +(k 1)/k. In addton task τ k 1 must also complete by tme k +1, whch agan gves S (k 2 + k)/(k +1)=k. The alternatve scenaro s that the frst job of task τ k 1 does not get to start before the second jobs of tasks τ 1 to τ k 1 are released at tme k. In ths scenaro, for task τ k 1 to be schedulable, then the frst job of task τ k+1, the frst and second jobs of tasks τ 1 to τ k 2, and the frst job of task τ k 1 must complete ther executon by tme k +1, whch leads to the constrant S (k 2 +2k 2)/(k +1)=k +(k 2)/(k +1). 3 Agan, for ease of presentaton, and snce t does not affect the result, we omt the small reducton n blockng due to the tme granularty Δ 1.

8 Consderng both Case 1 and Case 2, then the mnmum speed necessary for FP-NP schedulablty s S (k 2 +2k 2)/(k +1) = k +(k 2)/(k +1). Snce C max / = k 2 /(k +1) we obtan: S C max + k2 +2k 2 k2 k +1 k +1 = C max + 2k 2 k +1 As k ths gves a lower bound of S =2+ Cmax for the speedup factor Theorem IV.3. The exact speedup factor (S2) requred such that FP-NP schedulng, usng optmal prorty assgnment can schedule any arbtrary-deadlne sporadc task set that s feasble under FP-P schedulng s gven by: Fg. 1. Fxed Prorty Non-Preemptve Schedule. Proof: Proof follows from the lower bound gven by Lemma IV.5 and the upper bound gven by Lemma IV.2 whch have the same value. From Theorems IV.2 and IV.3, t s nterestng to note that when comparng FP-NP aganst FP-P schedulng, then the relaxaton from constraned-deadlne task sets to the general case of arbtrary-deadlne tasks results n an ncrease n the exact speedup factor requred from to 2+ C max Theorem IV.4. The exact sub-optmalty (S1) of FP-NP.e. the exact speedup factor requred such that FP-NP schedulng, usng optmal prorty assgnment can schedule any arbtrarydeadlne sporadc task set that s feasble under EDF-P s gven by: Proof: Lemma IV.1 shows that the speedup factor n the theorem s a vald upper bound. Lemma IV.5 and the fact that EDF-P domnates FP-P shows that t s also a vald lower bound and hence exact for arbtrary-deadlne task sets. V. PREEMPTIVE FPS VS. NON-PREEMPTIVE FPS Preemptve and non-preemptve fxed prorty schedulng are ncomparable,.e., there are task sets that FP-P can schedule that FP-NP cannot and vce versa, hence there are non-trval speed-up factors n both drectons between these two schedulng algorthms. In ths secton, we derve upper and lower bounds on the processor speed-up factor S4 that guarantees FP-P feasblty of FP-NP feasble task sets. Theorem V.1. An upper bound on the speed-up factor that guarantees FP-P feasblty of all FP-NP feasble task sets s gven by: S =2 Fg. 2. Fxed Prorty Preemptve Schedule. Proof: Snce EDF-P domnates FP-NP and Theorem 2 from [20] states that an upper bound on the speed-up factor requred to guarantee FP-P feasblty of any EDF-P feasble task set s S =2then such an ncrease n processor speed must also be suffcent to guarantee FP-P feasblty of all FP-NP feasble task sets. Theorem V.2. A lower bound on the speed-up factor that guarantees FP-P feasblty of all FP-NP feasble task sets s gven by: S = 2 Proof: Consder the followng task set scheduled on a processor of unt speed under FP-NP schedulng. τ 1 : C 1 =2 2, D 1 =1, T 1 =1 τ 2 : C 2 = 2 1, D 2 = 2, T 2 = τ 3 : C 3 = 2 1, D 3 = 2, T 3 = Ths task set s schedulable wth DMPO under FP-NP as evdenced by the exact schedulablty test emboded n (8). The response tmes of the three tasks are as follows: R 1 =1 Δ, R 2 = 2 Δ, R 3 = 2. Note, that n each case we need only examne the response tme of the frst job. For task τ 1, the prorty level-1 busy perod s of length 1 and so ncludes only one job of the task, whle tasks τ 2 and τ 3 have nfnte perods and so only gve rse to a sngle job. The schedule startng wth task τ 1 s llustrated n Fgure 1. Next, consder the same task set scheduled on a processor of speed S = 2 under FP-P schedulng, agan usng DMPO whch s optmal n ths case. The scaled task executon tmes are now C S 1 = 2 1, C S 2 =(2 2)/2, and C S 3 =(2 2)/2. The schedule s as llustrated n Fgure 2, agan startng wth task τ 1. In ths case, the worst-case response tme of task τ 3 s 1. Further, any ncrease n the executon tmes of the tasks (.e. by usng a smaller speedup factor) would result n task τ 3 mssng ts deadlne, due to preempton by the second job of task τ 1 whch s released at tme t =1. Hence the speedup factor requred by ths task set s S = 2. In the next secton, we descrbe the results of an emprcal

9 study whch hnts that the lower bound derved above may be tght (.e., the exact speed-up factor may be 2 rather than some larger value such as the upper bound of 2). VI. EMPIRICAL INVESTIGATION In ths secton, we descrbe the results of an emprcal nvestgaton nto the speed-up factor needed to ensure that FP-NP feasble task sets are schedulable under FP-P. Ths was done by usng a genetc algorthm to explore the search space of task parameters. The operaton of the genetc algorthm s outlned below. Frst, an ntal populaton of N task sets each wth n tasks were created. The task utlsatons were assgned accordng to the UUnfast [9] algorthm. Task perods were chosen n the range [10 4, 10 7 ] accordng to a log unform dstrbuton. For task sets wth constraned deadlnes, deadlnes were chosen accordng to a log unform dstrbuton n the range [C, T] and for arbtrary deadlne task sets from the range [C, 10T ]. Computaton tmes were determned accordng to C = U T. All parameters were dscrete and represented usng 64-bt ntegers. The speed-up factor for each task set was found by performng two bnary searches to determne respectvely, the scalng factors f FP NP and f FP P requred such that that the task set was just schedulable accordng to FP-NP and just unschedulable accordng to FP-P. Audsleys algorthm was used n both cases to determne the optmal prorty assgnment, along wth exact schedulablty tests for arbtrary deadlne task sets under FP-NP (8), and FP-P (3). The speed-up factor for the task set was then gven by S = f FP P. Ths approach ensured f FP NP that any lack of precson n the computed speed-up factor caused by mprecson n the bnary searches could only result n a small underestmate (and no overestmate) of the precse speed-up factor for the specfc task set. The precson of the bnary searches was 0.01% (.e., the termnaton condton was such that the low and hgh values for the scalng factor were wthn 0.01% of each other). Crossover type 1-pont Crossover probablty 0.5 Mutaton 20% of C, D, or T Mutaton probablty 0.6 Parent selecton Tournament Survval selecton Tournament on combned old and new populaton Populaton sze 20,000 Tournament sze 50 Generatons 400 TABLE I EXPERIMENTAL PARAMETERS The computed speed-up factor for each task set was used as the ftness functon n the genetc algorthm. The genetc algorthm operated as follows. Frst a populaton of N random task sets each wth n tasks were created, as descrbed above. The ftness (speed-up factor) of each of these task sets was Fg. 3. Emprcal results evaluated, wth the maxmum speed-up factor of any task set n the populaton recorded at ths and each subsequent stage. A new generaton of N chld task sets was then produced. Parent task sets were selected from the exstng populaton usng a tournament selecton process. These parents produced chldren va crossover and mutaton operatons, whch occurred wth specfed probabltes. Frst copes were made of the parent task sets, whch became the chldren. If crossover occurred, then a random poston n the lst of tasks was chosen and the chld task sets splt and recombned at that pont. (The head of one beng joned to the tal of the other). Each chld task set was then potentally subject to mutaton. If mutaton occurred, then a sngle parameter C, D, ort was selected at random, and ncreased or decreased by a random value n the range [0, 20%]. The parameters were then repared as necessary to ensure that any constrants on task deadlnes contnued to be met. For example, wth constraned deadlnes, f the perod of a task was decreased below ts deadlne, then the deadlne was adjusted to be equal to the perod. (Repars were also made to avod parameters gong out of range). Once N chld nodes had been produced, then ther ftness was evaluated, and a further tournament selecton used to reduce the overall populaton (parents and chldren) to N task sets. Ths overall process was then repeated for further generatons, wth task sets wth hgher speed-up factors more lkely to survve and produce offsprng. The tournament selecton process nvolved random selecton of 50 task sets wth the one wth the hghest speed-up factor selected for the next part of the process. Here a large tournament sze ncreases selecton pressure, but reduces dversty n the populaton. The parameters enumerated n Table I were found emprcally to be effectve for ths problem. Fgure 3 shows the results obtaned for task sets wth mplct, constraned and arbtrary deadlnes. These results were produced usng the genetc algorthm descrbed above. 400 generatons of a populaton of 20, 000 task sets,.e., 8 mllon task sets were generated for each task set cardnalty and deadlne type. We note that wth both mplct and constraned deadlnes, task sets of cardnalty two have a

10 speed-up factor of 1. Ths s because wth FP-NP both tasks have the same worst-case response tme whch must be less than the smaller of ther deadlnes, and hence perods. Ths response tme s the same as that of the lowest prorty task under FP-P, hence all task sets of cardnalty two that are schedulable under FP-NP are also schedulable under FP-P, mplyng a speed-up factor of 1. For three or more tasks, then wth constraned or arbtrary deadlnes, the maxmum speed-up factor found by the genetc algorthm s very close to 2 = In fact the values range from to (constraned deadlnes) and from to (arbtrary deadlnes) for task sets of cardnalty 3 to 10. Wth mplct-deadlne task sets, the largest speed-up factor found was somewhat lower at The fact that the maxmum value found emprcally (1.4139) s very close to but does not exceed 2= gves credence to the hypothess that the theoretcal lower bound (of 2 ) on the speed-up factor s the exact value. It remans an nterestng open queston whether or not ths s the case [18]. VII. SUMMARY AND CONCLUSIONS The man contrbuton of ths paper s the dervaton of resource augmentaton bounds for preemptve and non-preemptve schedulng algorthms on a unprocessor. Specfcally, we derved the followng sub-optmalty and speedup factor results: S1: Exact sub-optmalty of FP-NP for tasks wth arbtrary deadlnes: For task sets wth mplct or constraned-deadlnes: Lower Bound Upper Bound S2: Exact speedup factor requred for FP-NP feasblty of any arbtrary deadlne task set that s FP-P feasble: For task sets wth mplct or constraned deadlnes: S3: Exact sub-optmalty of EDF-NP for mplct, constraned or arbtrary deadlne task sets: S4: Speedup factor requred for FP-P feasblty of any constraned or arbtrary deadlne task set that s FP-NP feasble. Lower Bound S = 2 Upper Bound S =2 A summary of the results derved n ths paper (underlned), together wth the state-of-the-art for arbtrary deadlne task sets s presented n Fgure 4. (The dashed arrows on the fgure represent domnance relatonshps, where the exact speed-up factor n the reverse drecton s 1). The major remanng open problems nvolve tghtenng the upper and lower bounds where exact values are not yet known. These nclude determnng the exact sub-optmalty of FP-NP for the case of mplct and constraned deadlne task sets, and determnng the exact speedup factor requred for FP-P feasblty of any task set that s FP-NP feasble for the mplct, constraned and arbtrary deadlne cases. Whle the speedup factor results derved n ths paper are manly of nterest n provdng a theoretcal comparson focusng on the worst-case behavour of the dfferent schedulng algorthms, these results also help provde practcal gudance. For example, the majorty of real-tme operatng systems support fxed prorty schedulng, wth those mandated for automotve systems by the OSEK and AUTOSAR standards supportng both FP-P and FP-NP schedulng. Here, t s nterestng to consder the comparson between FP-P and FP-NP; even though the two schedulng polces are ncomparable. The exact speedup factor requred for FP-NP feasblty of any constraned deadlne task set that s FP-P feasble s S =1+ Cmax (see Theorem IV.2). Thus f we have a system where the longest executon tme of any task s substantally less than the shortest deadlne (C max ), we can quantfy the small processng speed penalty for usng non-preemptve schedulng. Ths can then be weghed aganst the addtonal overheads (e.g. preempton costs, cache related preempton delays, support for mutually exclusve resource accesses etc.) ncurred n usng preemptve schedulng; as well as other consderatons such as the addtonal complexty nvolved n accurately modellng and testng a preemptve system. When C max then t s clear that the penalty for usng fully non-preemptve schedulng s very hgh (the long task problem [32]), n such cases methods that support lmted preempton, effectvely breakng long tasks nto a set of non-preemptve regons may be preferable. A further avenue for the extenson of ths work s to systems that support lmted preempton [13], n partcular ncludng fnal non-preemptve regons, snce that paradgm domnates both FP-P and FP-NP schedulng [14]. ACKNOWLEDGMENTS Ths work was funded n part by the EPSRC project MCC (EP/K011626/1) and the Inra Internatonal Char program. EPSRC Research Data Management: No new prmary data was created durng ths study. REFERENCES [1] Fath Abugchem, Mchael Short, and Dongla Xu. A note on the suboptmalty of non-preemptve real-tme schedulng. Embedded Systems Letters, IEEE, PP(99):1 1, [2] Sebastan Altmeyer, Robert I. Davs, and Clare Maza. Improved cache related pre-empton delay aware response tme analyss for fxed prorty pre-emptve systems. Real-Tme Systems, 48(5): , [3] Sebastan Altmeyer, Roeland Douma, Wll Lunnss, and Robert I. Davs. Evaluaton of cache parttonng for hard real-tme systems. In proceedngs Euromcro Conference on Real-Tme Systems (ECRTS), pages 15 26, July 2014.

11 FP-P Exact = 2 [15] EDF-P (unprocessor optmal) Upper Bound = Lower Bound = Exact = Exact = Exact = FP-NP Exact = 2 [15] EDF-NP Fg. 4. Summary of speed-up factors for arbtrary deadlne task sets. [4] Nel Audsley, Alan Burns, Mke Rchardson, Ken Tndell, and Andrew J. Wellngs. Applyng new schedulng theory to statc prorty pre-emptve schedulng. Software Engneerng Journal, 8(5): , Sep [5] Nel. C. Audsley. On prorty asgnment n fxed prorty schedulng. Informaton Processng Letters, 79(1):39 44, May [6] Ted P. Baker. Stack-based schedulng for realtme processes. Real-Tme Systems, 3(1):67 99, Aprl [7] Sanjoy K. Baruah, Aloysus K. Mok, and Lous E. Roser. Preemptvely schedulng hard-real-tme sporadc tasks on one processor. In proceedngs Real-Tme Systems Symposum (RTSS), pages , Dec [8] Andrea Baston, Bjrn B. Brandenburg, and James H. Anderson. Cacherelated preempton and mgraton delays: Emprcal approxmaton and mpact on schedulablty. In proceedngs Operatng Systems Platforms for Embedded Real-Tme applcatons (OSPERT), July [9] Enrco Bn and Gorgo C. Buttazzo. Measurng the performance of schedulablty tests. Real-Tme Systems, 30(1-2): , [10] Render J. Brl, Johan J. Lukken, and Wm F.J. Verhaegh. Worst-case response tme analyss of real-tme tasks under fxed-prorty schedulng wth deferred preempton. Real-Tme Systems, 42(1-3):63 119, [11] Bach D. Bu, Marco Caccamo, Lu Sha, and Joseph Martnez. Impact of cache parttonng on mult-taskng real tme embedded systems. In proceedngs Real-Tme Computng Systems and Applcatons (RTCSA), pages , Aug [12] Alan Burns, Marna Guterrez, Maro Aldea Rvas, and Mchael Gonzalez Harbour. A deadlne-floor nhertance protocol for edf scheduled embedded real-tme systems wth resource sharng. IEEE Transactons on Computers, 64(5): , May [13] Gorgo C. Buttazzo, Marko Bertogna, and Gang Yao. Lmted preemptve schedulng for real-tme systems. a survey. IEEE Transactons on Industral Informatcs, 9(1):3 15, Feb [14] Robert I. Davs and Marko Bertogna. Optmal fxed prorty schedulng wth deferred pre-empton. In proceedngs Real-Tme Systems Symposum (RTSS), pages 39 50, Dec [15] Robert I. Davs, Alan Burns, Sanjoy Baruah, Thomas Rothvoss, Laurent George, and Olver Gettngs. Exact comparson of fxed prorty and edf schedulng based on speedup factors for both pre-emptve and non-preemptve paradgms. Real-Tme Systems, 51(5): , [16] Robert I. Davs, Alan Burns, Render J. Brl, and Johan J. Lukken. Controller area network (can) schedulablty analyss: Refuted, revsted and revsed. Real-Tme Systems, 35(3): , [17] Robert I. Davs, Laurent George, and Perre Courbn. Quantfyng the sub-optmalty of unprocessor fxed prorty non-pre-emptve schedulng. In proceedngs Real-Tme and Network Systems (RTNS), pages 1 10, [18] Robert I. Davs, Olver Gettngs, Abhlash Thekklakattl, Radu Dobrn, and Saskumar Punnekkat. What s the exact speedup factor for fxed prorty pre-emptve versus fxed prorty non-pre-emptve schedulng? In proceedngs Real-Tme Schedulng Open Problems Semnar (RTSOPS), pages 23 24, [19] Robert I. Davs, Thomas Rothvoss, Sanjoy K. Baruah, and Alan Burns. Quantfyng the sub-optmalty of unprocessor fxed prorty pre-emptve schedulng for sporadc tasksets wth arbtrary deadlnes. In proceedngs Real-Tme and Network Systems (RTNS), pages [20] Robert I. Davs, Thomas Rothvoss, Sanjoy K. Baruah, and Alan Burns. Exact quantfcaton of the sub-optmalty ofunprocessor fxed prorty pre-emptve schedulng. Real-Tme Systems, 43(3): , [21] Mchael L. Dertouzos. Control robotcs: The procedural control of physcal processes. In proceedngs IFIP Congress, pages [22] Laurent George, Ncolas Rverre, and Marco Spur. Preemptve and Non-Preemptve Real-Tme UnProcessor Schedulng. Research report, INRIA, [23] Kevn Jeffay, Donald F. Stanat, and Charles U. Martel. On nonpreemptve schedulng of perod and sporadc tasks. In proceedngs Real-Tme Systems Symposum (RTSS), pages , Dec [24] M. Joseph and P. Pandya. Fndng response tmes n a real-tme system. The Computer Journal, 29(5): , [25] Bala Kalyanasundaram and Krk Pruhs. Speed s as powerful as clarvoyance. Journal of ACM, 47(4): , July [26] John Lehoczky, Lu Sha, and Y. Dng. The rate monotonc schedulng algorthm: exact characterzaton and average case behavor. In proceedngs Real Tme Systems Symposum (RTSS), pages , Dec [27] John P. Lehoczky. Fxed prorty schedulng of perodc task sets wth arbtrary deadlnes. In proceedngs Real-Tme Systems Symposum (RTSS), pages , Dec [28] Joseph Y.-T. Leung and Jennfer Whtehead. On the complexty of fxedprorty schedulng of perodc, real-tme tasks. Performance Evaluaton, 2(4): , [29] C. L. Lu and James W. Layland. Schedulng algorthms for multprogrammng n a hard-real-tme envronment. The Journal of ACM, 20(1):46 61, January [30] Wll Lunnss, Robert I. Davs, Clare Maza, and Sebastan Altmeyer. Integratng cache related pre-empton delay analyss nto edf schedulng. In proceedngs Real-Tme and Embedded Technology and Applcatons Symposum (RTAS), pages 75 84, Aprl [31] Ismael Rpoll, Alfons Crespo, and Aloysus K. Mok. Improvement n feasblty testng for real-tme tasks. Real-Tme Systems, 11(1):19 39, [32] Mchael Short. The case for non-preemptve, deadlne-drven schedulng n real-tme embedded systems. In proceedngs of the World Congress on Engneerng (WCE), pages , [33] Marco Spur. Analyss of deadlne scheduled real-tme systems. Inra Research Report RR-2772, [34] Abhlash Thekklakattl, Sanjoy Baruah, Radu Dobrn, and Saskumar Punnekkat. The global lmted preemptve earlest deadlne frst feasblty of sporadc real-tme tasks. In proceedngs Euromcro Conference on Real-Tme Systems (ECRTS), pages , July [35] Abhlash Thekklakattl, Radu Dobrn, and Saskumar Punnekkat. Quantfyng the sub-optmalty of non-preemptve real-tme schedulng. In proceedngs Euromcro Conference on Real-Tme Systems (ECRTS), pages , July [36] Abhlash Thekklakattl, Radu Dobrn, and Saskumar Punnekkat. The lmted-preemptve feasblty of real-tme tasks on unprocessors. Real- Tme Systems, 51(3): , [37] Ken Tndell, Alan Burns, and Andrew J. Wellngs. An extendble approach for analyzng fxed prorty hard real-tme tasks. Real-Tme Systems, 6(2), [38] Georg van der Bruggen, Jan-Ja Chen, and Wen-Hung Huang. Schedulablty and optmzaton analyss for non-preemptve statc prorty schedulng based on task utlsaton and blockng factors. In proceedngs Euromcro Conference on Real-Tme Systems (ECRTS), pages , July [39] Gang Yao, Gorgo C. Buttazzo, and Marko Bertogna. Boundng the maxmum length of non-preemptve regons under fxed prorty schedulng. In proceedngs Real-Tme Computng Systems and Applcatons (RTCSA), pages , Aug 2009.

Real-Time Systems. Multiprocessor scheduling. Multiprocessor scheduling. Multiprocessor scheduling

Real-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 information

Quantifying the Sub-optimality of Uniprocessor Fixed Priority Pre-emptive Scheduling for Sporadic Tasksets with Arbitrary Deadlines

Quantifying 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 information

Quantifying the Sub-optimality of Uniprocessor Fixed Priority Non-Pre-emptive Scheduling

Quantifying 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 information

Keynote: RTNS Getting ones priorities right

Keynote: 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 information

Improved Worst-Case Response-Time Calculations by Upper-Bound Conditions

Improved 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 information

Problem Set 9 Solutions

Problem 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 information

AN EXTENDIBLE APPROACH FOR ANALYSING FIXED PRIORITY HARD REAL-TIME TASKS

AN 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 information

Embedded Systems. 4. Aperiodic and Periodic Tasks

Embedded 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 information

Last Time. Priority-based scheduling. Schedulable utilization Rate monotonic rule: Keep utilization below 69% Static priorities Dynamic priorities

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 information

Improving the Sensitivity of Deadlines with a Specific Asynchronous Scenario for Harmonic Periodic Tasks scheduled by FP

Improving 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 information

EDF Scheduling for Identical Multiprocessor Systems

EDF 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 information

Appendix B: Resampling Algorithms

Appendix 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 information

Two Methods to Release a New Real-time Task

Two 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 information

College of Computer & Information Science Fall 2009 Northeastern University 20 October 2009

College 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 information

Resource Allocation with a Budget Constraint for Computing Independent Tasks in the Cloud

Resource 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 information

Structure and Drive Paul A. Jensen Copyright July 20, 2003

Structure 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 information

Fixed-Priority Multiprocessor Scheduling with Liu & Layland s Utilization Bound

Fixed-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 information

Limited Preemptive Scheduling for Real-Time Systems: a Survey

Limited 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 information

Simultaneous Optimization of Berth Allocation, Quay Crane Assignment and Quay Crane Scheduling Problems in Container Terminals

Simultaneous 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 information

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

Worst-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 information

Improving the Quality of Control of Periodic Tasks Scheduled by FP with an Asynchronous Approach

Improving 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 information

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Module 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 information

Stanford University CS359G: Graph Partitioning and Expanders Handout 4 Luca Trevisan January 13, 2011

Stanford University CS359G: Graph Partitioning and Expanders Handout 4 Luca Trevisan January 13, 2011 Stanford Unversty CS359G: Graph Parttonng and Expanders Handout 4 Luca Trevsan January 3, 0 Lecture 4 In whch we prove the dffcult drecton of Cheeger s nequalty. As n the past lectures, consder an undrected

More information

Real-Time Operating Systems M. 11. Real-Time: Periodic Task Scheduling

Real-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 information

Module 9. Lecture 6. Duality in Assignment Problems

Module 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 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

Scheduling Motivation

Scheduling Motivation 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.

More information

Feature Selection: Part 1

Feature Selection: Part 1 CSE 546: Machne Learnng Lecture 5 Feature Selecton: Part 1 Instructor: Sham Kakade 1 Regresson n the hgh dmensonal settng How do we learn when the number of features d s greater than the sample sze n?

More information

CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE

CHAPTER 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 information

Global EDF Scheduling for Parallel Real-Time Tasks

Global 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 information

Simulated Power of the Discrete Cramér-von Mises Goodness-of-Fit Tests

Simulated 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 information

COMPARISON OF SOME RELIABILITY CHARACTERISTICS BETWEEN REDUNDANT SYSTEMS REQUIRING SUPPORTING UNITS FOR THEIR OPERATIONS

COMPARISON OF SOME RELIABILITY CHARACTERISTICS BETWEEN REDUNDANT SYSTEMS REQUIRING SUPPORTING UNITS FOR THEIR OPERATIONS Avalable onlne at http://sck.org J. Math. Comput. Sc. 3 (3), No., 6-3 ISSN: 97-537 COMPARISON OF SOME RELIABILITY CHARACTERISTICS BETWEEN REDUNDANT SYSTEMS REQUIRING SUPPORTING UNITS FOR THEIR OPERATIONS

More information

Lecture 4: November 17, Part 1 Single Buffer Management

Lecture 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 information

Computer Control: Task Synchronisation in Dynamic Priority Scheduling

Computer 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 information

Chapter 13: Multiple Regression

Chapter 13: Multiple Regression Chapter 13: Multple Regresson 13.1 Developng the multple-regresson Model The general model can be descrbed as: It smplfes for two ndependent varables: The sample ft parameter b 0, b 1, and b are used to

More information

Parallel Real-Time Scheduling of DAGs

Parallel 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 information

Assortment Optimization under MNL

Assortment Optimization under MNL Assortment Optmzaton under MNL Haotan Song Aprl 30, 2017 1 Introducton The assortment optmzaton problem ams to fnd the revenue-maxmzng assortment of products to offer when the prces of products are fxed.

More information

EEL 6266 Power System Operation and Control. Chapter 3 Economic Dispatch Using Dynamic Programming

EEL 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 information

x = , so that calculated

x = , so that calculated Stat 4, secton Sngle Factor ANOVA notes by Tm Plachowsk n chapter 8 we conducted hypothess tests n whch we compared a sngle sample s mean or proporton to some hypotheszed value Chapter 9 expanded ths to

More information

Fixed-Priority Multiprocessor Scheduling with Liu & Layland s Utilization Bound

Fixed-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 information

Partitioned Mixed-Criticality Scheduling on Multiprocessor Platforms

Partitioned 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 information

Single-Facility Scheduling over Long Time Horizons by Logic-based Benders Decomposition

Single-Facility Scheduling over Long Time Horizons by Logic-based Benders Decomposition Sngle-Faclty Schedulng over Long Tme Horzons by Logc-based Benders Decomposton Elvn Coban and J. N. Hooker Tepper School of Busness, Carnege Mellon Unversty ecoban@andrew.cmu.edu, john@hooker.tepper.cmu.edu

More information

Lecture Notes on Linear Regression

Lecture 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 information

CHAPTER 17 Amortized Analysis

CHAPTER 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 information

ECE559VV Project Report

ECE559VV 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 information

CS : Algorithms and Uncertainty Lecture 17 Date: October 26, 2016

CS : Algorithms and Uncertainty Lecture 17 Date: October 26, 2016 CS 29-128: Algorthms and Uncertanty Lecture 17 Date: October 26, 2016 Instructor: Nkhl Bansal Scrbe: Mchael Denns 1 Introducton In ths lecture we wll be lookng nto the secretary problem, and an nterestng

More information

The Schedulability Region of Two-Level Mixed-Criticality Systems based on EDF-VD

The 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

Global Sensitivity. Tuesday 20 th February, 2018

Global Sensitivity. Tuesday 20 th February, 2018 Global Senstvty Tuesday 2 th February, 28 ) Local Senstvty Most senstvty analyses [] are based on local estmates of senstvty, typcally by expandng the response n a Taylor seres about some specfc values

More information

Resource Sharing. CSCE 990: Real-Time Systems. Steve Goddard. Resources & Resource Access Control (Chapter 8 of Liu)

Resource 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 information

Foundations of Arithmetic

Foundations 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 information

Efficient Feasibility Analysis for Real-Time Systems with EDF scheduling*

Efficient 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 information

Uncertainty in measurements of power and energy on power networks

Uncertainty in measurements of power and energy on power networks Uncertanty n measurements of power and energy on power networks E. Manov, N. Kolev Department of Measurement and Instrumentaton, Techncal Unversty Sofa, bul. Klment Ohrdsk No8, bl., 000 Sofa, Bulgara Tel./fax:

More information

On the correction of the h-index for career length

On the correction of the h-index for career length 1 On the correcton of the h-ndex for career length by L. Egghe Unverstet Hasselt (UHasselt), Campus Depenbeek, Agoralaan, B-3590 Depenbeek, Belgum 1 and Unverstet Antwerpen (UA), IBW, Stadscampus, Venusstraat

More information

find (x): given element x, return the canonical element of the set containing x;

find (x): given element x, return the canonical element of the set containing x; COS 43 Sprng, 009 Dsjont Set Unon Problem: Mantan a collecton of dsjont sets. Two operatons: fnd the set contanng a gven element; unte two sets nto one (destructvely). Approach: Canoncal element method:

More information

NP-Completeness : Proofs

NP-Completeness : Proofs NP-Completeness : Proofs Proof Methods A method to show a decson problem Π NP-complete s as follows. (1) Show Π NP. (2) Choose an NP-complete problem Π. (3) Show Π Π. A method to show an optmzaton problem

More information

ANSWERS. Problem 1. and the moment generating function (mgf) by. defined for any real t. Use this to show that E( U) var( U)

ANSWERS. Problem 1. and the moment generating function (mgf) by. defined for any real t. Use this to show that E( U) var( U) Econ 413 Exam 13 H ANSWERS Settet er nndelt 9 deloppgaver, A,B,C, som alle anbefales å telle lkt for å gøre det ltt lettere å stå. Svar er gtt . Unfortunately, there s a prntng error n the hnt of

More information

Parametric Utilization Bounds for Fixed-Priority Multiprocessor Scheduling

Parametric 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 information

For now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results.

For now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results. Neural Networks : Dervaton compled by Alvn Wan from Professor Jtendra Malk s lecture Ths type of computaton s called deep learnng and s the most popular method for many problems, such as computer vson

More information

NUMERICAL DIFFERENTIATION

NUMERICAL 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 information

FREQUENCY DISTRIBUTIONS Page 1 of The idea of a frequency distribution for sets of observations will be introduced,

FREQUENCY DISTRIBUTIONS Page 1 of The idea of a frequency distribution for sets of observations will be introduced, FREQUENCY DISTRIBUTIONS Page 1 of 6 I. Introducton 1. The dea of a frequency dstrbuton for sets of observatons wll be ntroduced, together wth some of the mechancs for constructng dstrbutons of data. Then

More information

DUE: WEDS FEB 21ST 2018

DUE: WEDS FEB 21ST 2018 HOMEWORK # 1: FINITE DIFFERENCES IN ONE DIMENSION DUE: WEDS FEB 21ST 2018 1. Theory Beam bendng s a classcal engneerng analyss. The tradtonal soluton technque makes smplfyng assumptons such as a constant

More information

Statistics II Final Exam 26/6/18

Statistics II Final Exam 26/6/18 Statstcs II Fnal Exam 26/6/18 Academc Year 2017/18 Solutons Exam duraton: 2 h 30 mn 1. (3 ponts) A town hall s conductng a study to determne the amount of leftover food produced by the restaurants n the

More information

One-sided finite-difference approximations suitable for use with Richardson extrapolation

One-sided finite-difference approximations suitable for use with Richardson extrapolation Journal of Computatonal Physcs 219 (2006) 13 20 Short note One-sded fnte-dfference approxmatons sutable for use wth Rchardson extrapolaton Kumar Rahul, S.N. Bhattacharyya * Department of Mechancal Engneerng,

More information

2.3 Nilpotent endomorphisms

2.3 Nilpotent endomorphisms s a block dagonal matrx, wth A Mat dm U (C) In fact, we can assume that B = B 1 B k, wth B an ordered bass of U, and that A = [f U ] B, where f U : U U s the restrcton of f to U 40 23 Nlpotent endomorphsms

More information

Overhead-Aware Compositional Analysis of Real-Time Systems

Overhead-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 information

The optimal delay of the second test is therefore approximately 210 hours earlier than =2.

The 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 information

Annexes. EC.1. Cycle-base move illustration. EC.2. Problem Instances

Annexes. 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 information

Online Appendix. t=1 (p t w)q t. Then the first order condition shows that

Online Appendix. t=1 (p t w)q t. Then the first order condition shows that Artcle forthcomng to ; manuscrpt no (Please, provde the manuscrpt number!) 1 Onlne Appendx Appendx E: Proofs Proof of Proposton 1 Frst we derve the equlbrum when the manufacturer does not vertcally ntegrate

More information

A PROBABILITY-DRIVEN SEARCH ALGORITHM FOR SOLVING MULTI-OBJECTIVE OPTIMIZATION PROBLEMS

A PROBABILITY-DRIVEN SEARCH ALGORITHM FOR SOLVING MULTI-OBJECTIVE OPTIMIZATION PROBLEMS HCMC Unversty of Pedagogy Thong Nguyen Huu et al. A PROBABILITY-DRIVEN SEARCH ALGORITHM FOR SOLVING MULTI-OBJECTIVE OPTIMIZATION PROBLEMS Thong Nguyen Huu and Hao Tran Van Department of mathematcs-nformaton,

More information

Kernel Methods and SVMs Extension

Kernel 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 information

On the Multicriteria Integer Network Flow Problem

On 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 information

princeton univ. F 17 cos 521: Advanced Algorithm Design Lecture 7: LP Duality Lecturer: Matt Weinberg

princeton univ. F 17 cos 521: Advanced Algorithm Design Lecture 7: LP Duality Lecturer: Matt Weinberg prnceton unv. F 17 cos 521: Advanced Algorthm Desgn Lecture 7: LP Dualty Lecturer: Matt Wenberg Scrbe: LP Dualty s an extremely useful tool for analyzng structural propertes of lnear programs. Whle there

More information

Speeding up Computation of Scalar Multiplication in Elliptic Curve Cryptosystem

Speeding up Computation of Scalar Multiplication in Elliptic Curve Cryptosystem H.K. Pathak et. al. / (IJCSE) Internatonal Journal on Computer Scence and Engneerng Speedng up Computaton of Scalar Multplcaton n Ellptc Curve Cryptosystem H. K. Pathak Manju Sangh S.o.S n Computer scence

More information

A Robust Method for Calculating the Correlation Coefficient

A Robust Method for Calculating the Correlation Coefficient A Robust Method for Calculatng the Correlaton Coeffcent E.B. Nven and C. V. Deutsch Relatonshps between prmary and secondary data are frequently quantfed usng the correlaton coeffcent; however, the tradtonal

More information

Partitioned EDF Scheduling in Multicore systems with Quality of Service constraints

Partitioned EDF Scheduling in Multicore systems with Quality of Service constraints Parttoned EDF Schedulng n Multcore systems wth Qualty of Servce constrants Nadne Abdallah, Audrey Queudet, Marylne Chetto, Rafc Hage Chehade To cte ths verson: Nadne Abdallah, Audrey Queudet, Marylne Chetto,

More information

Outline. Communication. Bellman Ford Algorithm. Bellman Ford Example. Bellman Ford Shortest Path [1]

Outline. 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 information

Two-Phase Low-Energy N-Modular Redundancy for Hard Real-Time Multi-Core Systems

Two-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 information

Lecture 14: Bandits with Budget Constraints

Lecture 14: Bandits with Budget Constraints IEOR 8100-001: Learnng and Optmzaton for Sequental Decson Makng 03/07/16 Lecture 14: andts wth udget Constrants Instructor: Shpra Agrawal Scrbed by: Zhpeng Lu 1 Problem defnton In the regular Mult-armed

More information

Improvements in the configuration of Posix b scheduling

Improvements 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 information

Energy-Efficient Scheduling Fixed-Priority tasks with Preemption Thresholds on Variable Voltage Processors

Energy-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 information

The Study of Teaching-learning-based Optimization Algorithm

The Study of Teaching-learning-based Optimization Algorithm Advanced Scence and Technology Letters Vol. (AST 06), pp.05- http://dx.do.org/0.57/astl.06. The Study of Teachng-learnng-based Optmzaton Algorthm u Sun, Yan fu, Lele Kong, Haolang Q,, Helongang Insttute

More information

Difference Equations

Difference 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 information

Common loop optimizations. Example to improve locality. Why Dependence Analysis. Data Dependence in Loops. Goal is to find best schedule:

Common loop optimizations. Example to improve locality. Why Dependence Analysis. Data Dependence in Loops. Goal is to find best schedule: 15-745 Lecture 6 Data Dependence n Loops Copyrght Seth Goldsten, 2008 Based on sldes from Allen&Kennedy Lecture 6 15-745 2005-8 1 Common loop optmzatons Hostng of loop-nvarant computatons pre-compute before

More information

Chapter - 2. Distribution System Power Flow Analysis

Chapter - 2. Distribution System Power Flow Analysis Chapter - 2 Dstrbuton System Power Flow Analyss CHAPTER - 2 Radal Dstrbuton System Load Flow 2.1 Introducton Load flow s an mportant tool [66] for analyzng electrcal power system network performance. Load

More information

On the Scheduling of Mixed-Criticality Real-Time Task Sets

On 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 information

3.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

3.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 information

Markov Chain Monte Carlo Lecture 6

Markov Chain Monte Carlo Lecture 6 where (x 1,..., x N ) X N, N s called the populaton sze, f(x) f (x) for at least one {1, 2,..., N}, and those dfferent from f(x) are called the tral dstrbutons n terms of mportance samplng. Dfferent ways

More information

4 Analysis of Variance (ANOVA) 5 ANOVA. 5.1 Introduction. 5.2 Fixed Effects ANOVA

4 Analysis of Variance (ANOVA) 5 ANOVA. 5.1 Introduction. 5.2 Fixed Effects ANOVA 4 Analyss of Varance (ANOVA) 5 ANOVA 51 Introducton ANOVA ANOVA s a way to estmate and test the means of multple populatons We wll start wth one-way ANOVA If the populatons ncluded n the study are selected

More information

Homework Assignment 3 Due in class, Thursday October 15

Homework Assignment 3 Due in class, Thursday October 15 Homework Assgnment 3 Due n class, Thursday October 15 SDS 383C Statstcal Modelng I 1 Rdge regresson and Lasso 1. Get the Prostrate cancer data from http://statweb.stanford.edu/~tbs/elemstatlearn/ datasets/prostate.data.

More information

Winter 2008 CS567 Stochastic Linear/Integer Programming Guest Lecturer: Xu, Huan

Winter 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 information

Minimizing Cache Overhead via Loaded Cache Blocks and Preemption Placement

Minimizing Cache Overhead via Loaded Cache Blocks and Preemption Placement Mnmzng Cache Overhead va Loaded Cache Blocks and Preempton Placement John Cavccho, Corey Tessler, and Nathan Fsher Wayne State Unversty {ba6444, corey.tessler, fshern}@wayne.edu Abstract Schedulablty analyss

More information

Lecture 4. Instructor: Haipeng Luo

Lecture 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 information

Welfare Properties of General Equilibrium. What can be said about optimality properties of resource allocation implied by general equilibrium?

Welfare Properties of General Equilibrium. What can be said about optimality properties of resource allocation implied by general equilibrium? APPLIED WELFARE ECONOMICS AND POLICY ANALYSIS Welfare Propertes of General Equlbrum What can be sad about optmalty propertes of resource allocaton mpled by general equlbrum? Any crteron used to compare

More information

The Minimum Universal Cost Flow in an Infeasible Flow Network

The Minimum Universal Cost Flow in an Infeasible Flow Network Journal of Scences, Islamc Republc of Iran 17(2): 175-180 (2006) Unversty of Tehran, ISSN 1016-1104 http://jscencesutacr The Mnmum Unversal Cost Flow n an Infeasble Flow Network H Saleh Fathabad * M Bagheran

More information

Numerical Heat and Mass Transfer

Numerical Heat and Mass Transfer Master degree n Mechancal Engneerng Numercal Heat and Mass Transfer 06-Fnte-Dfference Method (One-dmensonal, steady state heat conducton) Fausto Arpno f.arpno@uncas.t Introducton Why we use models and

More information

= z 20 z n. (k 20) + 4 z k = 4

= z 20 z n. (k 20) + 4 z k = 4 Problem Set #7 solutons 7.2.. (a Fnd the coeffcent of z k n (z + z 5 + z 6 + z 7 + 5, k 20. We use the known seres expanson ( n+l ( z l l z n below: (z + z 5 + z 6 + z 7 + 5 (z 5 ( + z + z 2 + z + 5 5

More information

O-line Temporary Tasks Assignment. Abstract. In this paper we consider the temporary tasks assignment

O-line Temporary Tasks Assignment. Abstract. In this paper we consider the temporary tasks assignment O-lne Temporary Tasks Assgnment Yoss Azar and Oded Regev Dept. of Computer Scence, Tel-Avv Unversty, Tel-Avv, 69978, Israel. azar@math.tau.ac.l??? Dept. of Computer Scence, Tel-Avv Unversty, Tel-Avv, 69978,

More information

Procrastination Scheduling for Fixed-Priority Tasks with Preemption Thresholds

Procrastination 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 information

Generalized Linear Methods

Generalized Linear Methods Generalzed Lnear Methods 1 Introducton In the Ensemble Methods the general dea s that usng a combnaton of several weak learner one could make a better learner. More formally, assume that we have a set

More information

Real-Time Scheduling of Parallel Tasks under a General DAG Model

Real-Time Scheduling of Parallel Tasks under a General DAG Model Washngton Unversty n St. Lous Washngton Unversty Open Scholarshp All Computer Scence and Engneerng Research Computer Scence and Engneerng Report Number: WUCSE-01-14 01 Real-Tme Schedulng of Parallel Tasks

More information