Multitasking and Real-time Scheduling

Size: px
Start display at page:

Download "Multitasking and Real-time Scheduling"

Transcription

1 Multtaskng and Real-tme Schedulng EE8205: Embedded Computer Systems Dr. Gul N. Khan Electrcal and Computer Engneerng Ryerson Unversty Overvew RTX - Preemptve Schedulng Real-tme Schedulng Technques Fxed-Prorty and Earlest Deadlne Frst Schedulng Utlzaton and Response-tme Analyss Prorty Inverson Sporadc and Aperodc Process Schedulng Chapter 6 of the Text by Wolf, Chapter 13 of Text by Burns and Wellngs and Kel-RTX documents G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 1

2 Prorty-drven Schedulng Rules: each process has a fxed prorty (1 lowest); hghest-prorty ready process gets CPU; process contnues untl done. Processes P1: prorty 3, executon tme 10 P2: prorty 2, executon tme 30 P3: prorty 1, executon tme 20 P3 ready t=18 P2 ready t=0 P1 ready t=15 P2 P1 P2 P G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 2 tme

3 RTX Schedulng Optons RTX allows us to buld an applcaton wth three dfferent kernelschedulng optons: Pre-Emptve schedulng Each task has a dfferent prorty and wll run untl t s preempted or has reached a blockng OS call. Round-Robn schedulng Each task has the same prorty and wll run for a fxed perod, or tme slce, or untl has reached a blockng OS call. Co-operatve mult-taskng Each task has the same prorty and the Round-Robn s dsabled. Each task wll run untl t reached a blockng OS call or uses the os_tsk_pass() call. The default schedulng opton for RTX s Round-Robn Preemptve. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 3

4 RTX: Preemptve Schedulng When a task wth a hgher prorty than the currently runnng task becomes ready to run, RTX suspends the currently runnng task. A preemptve task swtch occurs when: the task scheduler s executed from the system tck tmer nterrupt. Task scheduler processes the delays of tasks. If the delay for a task wth a hgher prorty has expred, then the hgher prorty task starts to execute nstead of the current task. an event s set for a hgher prorty task by the currently runnng task or by an nterrupt servce routne. The currently runnng task s suspended, and the hgher prorty task starts to run. a token s returned to a semaphore, and a hgher prorty task s watng for the semaphore token. The currently runnng task s suspended, and the hgher prorty task starts to run. The token can be returned by the currently runnng task or by an nterrupt servce routne. a mutex s released and a hgher prorty task s watng for the mutex. The currently runnng task s suspended, and the hgher prorty task starts to run. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 4

5 Pre-emptve Schedulng A preemptve task swtch occurs when: a message s posted to a malbox, and a hgher prorty task s watng for the malbox message. The currently runnng task s suspended, and the hgher prorty task starts to run. The message can be posted by the currently runnng task or by an nterrupt servce routne. a malbox s full, and a hgher prorty task s watng to post a message to a malbox. As soon as the currently runnng task or an nterrupt servce routne takes a message out from the malbox, the hgher prorty task starts to run. the prorty of the currently runnng task s reduced. If another task s ready to run and has a hgher prorty than the new prorty of the currently runnng task, then the current task s suspended mmedately, and the hgher prorty task resumes ts executon. os_tsk_pro ( ) functon changes the executon prorty of the task dentfed by the argument task_d e.g. os_tsk_pro_self (5); os_tsk_pro(tsk2, 10); G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 5

6 RTX - Preemptve Swtchng Example Task job1 has a hgher prorty than task job2. When job1 starts, t creates task job2 and then enters the os_evt_wat_or functon. The RTX kernel suspends job1 at ths pont, and job2 starts executng. As soon as job2 sets an event flag for job1, the RTX kernel suspends job2 and then resumes job1. Task job1 then ncrements counter cnt1 and calls the os_evt_wat_or functon, whch suspends t agan. The kernel resumes job2, whch ncrements counter cnt2 and sets an event flag for job1. os_evt_set Ths process of task swtchng contnues ndefntely. #nclude <rtl.h> OS_TID tsk1,tsk2; nt cnt1,cnt2; task vod job1 (vod); task vod job2 (vod); G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 6

7 RTX - Task Swtchng Example task vod job1 (vod) { os_tsk_pro (2); tsk1 = os_tsk_self (); os_tsk_create (job2, 1); whle (1) { os_evt_wat_or (0x0001, 0xffff); cnt1++; } } task vod job2 (vod) { whle (1) { os_evt_set (0x0001, tsk1); cnt2++; } } vod man (vod) { os_sys_nt (job1); whle (1); } G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 7

8 RTX and Interrupt Functons RTX can work wth nterrupt functons n parallel. However, t s better to avod IRQ nestng. An IRQ functon can send a sgnal/ or message to start a hgh prorty task. Interrupt functons are added to an ARM applcaton n the same way as n any other non-rtx projects. FIQ nterrupts are never dsabled by the RTX kernel. We cannot call the sr_ lbrary functons from the FIQ nterrupt functon. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 8

9 Threads - Sgnals/Wats Threads support s avalable wth for RTX wth CMSIS-RTOS API vod led_thread1 (vod const *argument); osthreaddef(led_thread1, osprortynormal, 1, 0); osthreadid Thr_led_ID1; nt man(vod){... Thr_led_ID1 = osthreadcreate(osthread(led_thread1), NULL);...} A wat flag may be set n the code as follows: ossgnalwat (0x03,osWatForever); The thread s watng for the sgnal flag 0x03 to be asserted. oswatforever parameter ndcates the maxmum duraton n msecs that the thread should wat to be sgnaled. A sgnal may be send to a thread or cleared usng: ossgnalset(thr_led_id2,0x01); or ossgnalclear(thr_led_id2, 0x01); G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 9

10 The Schedulng Problem Can we meet all deadlnes? Must be able to meet deadlnes n all cases. How much CPU tme, we need to meet the deadlnes? Process Intaton Perodc process: executes on (almost) every perod. Aperodc process: executes on demand. Analyzng aperodc process set s harder---must consder worst-case combnatons of process actvatons. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 10

11 Process Tmng Requrements Perod: nterval between process actvatons. Intaton nterval: recprocal of perod. Intaton tme: tme at whch process becomes ready. Deadlne: tme at whch process must fnsh. Tmng volatonswhat happens f a process doesn t fnsh by ts deadlne? Hard deadlne: system fals f mssed. Soft deadlne: user may notce, but system doesn t necessarly fal. Example: Space Shuttle software error A software tmng error delayed shuttle s frst launch: Prmary control system PASS and backup system BFS. BFS faled to synchronze wth PASS. Change to one routne added delay that threw off start tme calculaton. 1 n 67 chance of tmng problem. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 11

12 Process Model The applcaton s assumed to consst of a fxed set of processes. Processes are completely ndependent of each other. All system's overheads, context-swtchng tmes and so on are gnored (.e. assumed to have zero cost) All processes are perodc, wth known perods. All processes have a deadlne equal to ther perod (that s, each process must complete before t s next released) All processes have a fxed worst-case executon tme. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 12

13 Real-tme Schedulng Technques Fxed-Prorty Schedulng (FPS) Earlest Deadlne Frst (EDF) FPS: Fxed-Prorty Schedulng Ths s the most wdely used approach. Each process has a fxed, (statc) prorty that s computed before executon. The runnable processes are executed n the order determned by ther prorty. In real-tme systems, the prorty of a process s derved from ts temporal requrements, not ts mportance to the correct functonng of the system or ts ntegrty. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 13

14 FPS: Fxed-Prorty Schedulng Rate Monotonc Prorty Assgnment Each process s assgned a (unque) prorty based on ts perod; the shorter the perod, the hgher the prorty For two processes and j: T < T j P > An optmal prorty assgnment means: f any process set can be scheduled (usng preemptve prorty-based schedulng) wth a fxed-prorty assgnment scheme, then the gven process set can also be scheduled wth a rate monotonc assgnment scheme Prorty 1 s the lowest (least) prorty P j G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 14

15 Prorty Assgnment: An Example Perod T: Mnmum tme between process releases. C: Worst-case computaton tme (WCET) of the process. U: The utlzaton of each process (equal to C/T). R: Worst-case response tme of the process. B: Worst-case blockng tme for the process. D: Deadlne of the process. N: Number of process. The nterference tme of the process. Release jtter of the process. Process Perod, T Prorty, P a 25 5 b 60 3 c 42 4 d e 75 2 G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 15

16 Utlzaton-Based Analyss For D=T process sets, a suffcent but not necessary schedulablty test exsts. U N = 1 C T ( 2 N Utlzaton bound % % % % % % N 1 / N 1) G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 16

17 Process Set A Utlzaton-Based Analyss Process Perod, T Computaton Tme, C Prorty, P Utlzaton, U a b c The combned utlzaton s 0.82 (or 82%) Ths s above the threshold for three processes (0.78) and, hence, ths process set fals the utlzaton test. c b a c b Tme G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 17

18 Tme-Lne for Process Set A Process a b c Process Release Tme Process Completon Tme Deadlne Met Process Completon Tme Deadlne Mssed Preempted Executng Tme c b a c b G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 18

19 Utlzaton-Based Analyss Process Set B Process Perod Computaton Tme Prorty Utlzaton T C P U a b c The combned utlzaton s (or 77.5%) Ths s below the threshold for three processes (0.78) and, hence, ths process set wll meet all ts deadlnes. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 19

20 Utlzaton-Based Analyss Process Set C Process Perod Computaton Tme Prorty Utlzaton T C P U a b c The combned utlzaton s 1.0 Ths s above the threshold for three processes (0.78) but the process set wll meet all ts deadlnes. The Utlzaton test s sad to be suffcent but not necessary G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 20

21 Process Tme-Lne for Process Set C a b c Tme Utlzaton-based test s nether exact nor general but ts O(N) G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 21

22 Earlest Deadlne Frst (EDF) Schedulng The runnable processes are executed n the order determned by the absolute deadlnes of the processes. The next process to run beng the one wth the shortest (nearest) deadlne. It s possble to know the relatve deadlnes of each process e.g. 25ms after release. The absolute deadlnes are computed at run tme and hence the scheme s descrbed as dynamc. Value Based (VBS) Schedulng If a system can become overloaded then smple statc prortes or deadlnes are not suffcent; a more adaptve scheme s needed. Ths often takes the form of assgnng a value to each process and employng an on-lne value-based schedulng algorthm to decde whch process to run next. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 22

23 Preempton and Non-Preempton Wth prorty-based schedulng, a hgh-prorty process may be released durng the executon of a lower prorty one. In a preemptve scheme, there wll be an mmedate swtch to the hgher-prorty process Wth non-preempton, the lower-prorty process wll be allowed to complete before the other executes. Preemptve schemes enable hgher-prorty processes to be more reactve, and hence they are preferred. Alternatve strateges allow a lower prorty process to contnue to execute for a bounded tme. These schemes are known as deferred preempton or cooperatve dspatchng. Schemes such as EDF and VBS can also take on a preemptve or non pre-emptve form. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 23

24 Utlzaton-based Test for EDF N = 1 C T 1 A much smpler test Superor to FPS; t can support hgh utlzatons. However, FPS s easer to mplement, as prortes are statc. EDF s dynamc and requres a more complex run-tme system that wll have hgher overhead. It s easer to ncorporate processes wthout deadlnes nto FPS; gvng a process an arbtrary deadlne s more artfcal It s easer to ncorporate other factors nto the noton of prorty than t s nto the noton of deadlne. Durng overload stuatons: FPS s more predctable; Low prorty process mss ther deadlnes frst EDF s unpredctable; a domno effect can occur n whch a large number of processes mss deadlnes G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 24

25 Response-Tme Analyss Task 's worst-case response tme, R s calculated frst and then checked (trvally) wth ts deadlne. R D R = C + I where I s the nterference from hgher prorty tasks Durng R, each hgher prorty task j wll execute a no. of tmes. Number of Releases = Total nterference = R T j R C j T j Celng functon gves the smallest nteger greater than the fractonal number on whch t acts. Celng of 1/3 = 2, 6/5 = 2 And 6/3 =2 G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 25

26 Response Tme R R = C + j hp ( ) T j C j where hp() s the set of tasks wth prorty hgher than task Solve by formng a recurrence relatonshp: n n + 1 w = C + j hp ( ) T j n The set of values w, w, w,..., w,.. s monotoncally non-decreasng n When = n+1 0 w w the soluton to the equaton has been found, w must not be greater than R (e.g. 0 or C ) w C j G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 26

27 Response Tme Calculaton Algorthm for n 1..N loop -- for each process n turn n := 0 n w : = C loop n+1 calculate new w n+1 n f w = w then n R = w ext value found end f n+1 f w > T then ext value not found end f n := n + 1 end loop end loop G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 27

28 Response Tme Calculaton Example Process Set D Process Perod, T Computaton Tme, C Prorty, P a b c R a = 3 w w w 0 b 1 b 2 b = 3 3 = = 6 = = 6 7 R b = 6 G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 28

29 G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 29 Response Tme Calculaton Process c = + + = = + + = = + + = = c c c c w w w w = = + + = = + + = c c c R w w

30 Process Set C Process Perod, T Computaton Tme, C Prorty, P Response Tme, R a b c The combned utlzaton s 1.0. Ths was above the utlzaton threshold for three processes (0.78) therefore t faled the test. The response tme analyss shows that the process set wll meet all ts deadlnes. RTA s necessary and suffcent. If the process set passes the test they wll meet all ther deadlnes; f they fal the test then, at run-tme, a process wll mss ts deadlne. (unless computaton tme estmatons themselves turn out to be pessmstc) G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 30

31 Worst-Case Executon Tme WCET Obtaned by ether measurement or analyss The problem wth measurement s that t s dffcult to be sure when the worst case has been observed. The drawback of analyss s that an effectve model of the processor (ncludng caches, ppelnes, memory wat states and so on) must be avalable. Most analyss technques nvolve two dstnct actvtes. The frst takes the process and decomposes ts code nto a drected graph of basc blocks. These basc blocks represent straght-lne code. The second component of the analyss takes the machne code correspondng to a basc block and uses the processor model to estmate ts worst-case executon tme. Once the tmes for all the basc blocks are known, the drected graph can be collapsed. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 31

32 WCET Analyss Need Semantc Informaton for I n loop f Cond then -- basc block of cost 100 else -- basc block of cost 10 end f; end loop; Smple cost 10 x 100 (+overhead), say But f Cond only true on 3 occasons then cost s 375 G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 32

33 Real-tme Schedulng Exercses Exercse-1: Consder three processes P, Q and S. P has a perod of 100msec n whch t requres 30msecs of processng. The correspondng values for Q and S are (6, 1) and (25, 5) respectvely. Assume that P s the most mportant process n the system, followed by Q and then S. (1) What s the behavor of the scheduler f prorty s based on mportance? (2) What s the process utlzaton of P, Q and S. (3) How should the process be scheduled so that all deadlnes are met. (4) Illustrate one of the schemes that allows these processes to be scheduled. Exercse-2: Add a fourth process R, to the set of processes gven n Exercse-1. Falure of ths process wll not lead to safety beng undermned. R has a perod of 50ms, but has a processng requrement that s data dependent and vares from 5 to 25 ms. Dscuss how ths process should be ntegrated wth P, Q and S. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 33

34 Hard and Soft Real-tme Processes Hard Real-tme Process: The deadlne must not be mssed. Soft Real-tme Process: The applcaton s tolerant of mssed deadlnes. In many stuatons the WCET (worst-case executon tme) fgures for sporadc processes are consderably hgher than the averages. Measurng schedulablty wth worst-case fgures may lead to very low processor utlzatons. Interrupts often arrve n bursts e.g. an abnormal sensor readng may lead to sgnfcant addtonal computaton. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 34

35 Sporadc Processes A Sporadc process s that whch has hard real-tme applcatons. Sporadc processes have a mnmum nter-arrval tme. They also requre D < T The response tme algorthm for fxed prortyschedulng works perfectly for values of D less than T as long as the stoppng crtera becomes W n+1 > D It also works perfectly well wth any prorty orderng, hp() always gves the set of hgher-prorty processes G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 35

36 Hard/Soft Process Schedulng Gudelnes Rule 1 all processes should be schedulable usng average executon tmes and average arrval rates. Rule 2 all hard real-tme processes should be schedulable usng worst-case executon tmes and worst-case arrval rates of all processes (ncludng soft) A consequent of Rule 1 s that there may be stuatons n whch t s not possble to meet all current deadlnes Ths condton s known as a transent overload Rule 2 ensures that no hard process wll mss ts deadlne If Rule 2 gves rse to unacceptably low utlzatons for normal executon then acton must be taken to reduce the worst-case executon tmes (or arrval rates) G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 36

37 Aperodc Processes Aperodc processes have soft real-tme jobs. They do not have mnmum nter-arrval tmes. Can run aperodc processes at a prorty below the prortes assgned to hard processes, therefore, they cannot steal, n a pre-emptve system, resources from the hard processes. Ths does not provde adequate support to soft processes, whch wll often mss ther deadlnes. To mprove the stuaton for soft processes, a server (sporadc) can be employed. Servers protect the processng resources needed by hard processes but otherwse allow soft processes to run as soon as possble. POSIX support Sporadc Servers G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 37

38 Process Sets wth D < T For D = T, Rate Monotonc prorty orderng s optmal. For D < T, (DMPO) Deadlne Monotonc Prorty Orderng s optmal. D < T Example Process Set Process Perod T D < D P > Deadlne Computaton Prorty D Tme, C P a b c d Proof of DMPO s Optmal s gven n the text j P j Response Tme, R G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 38

39 Deadlne Schedulng Exercses Exercse-1: Consder two jobs, A and B, n a deadlne schedulng system. The deadlne for A s before the deadlne for B. Explan why we should run A before B, that s, show that f runnng A then B fals to meet some deadlne then runnng B before A wll also fal to meet some deadlne. Exercse 2: Consder a set of 5 aperodc tasks whose executon profles are gven below. Develop the schedulng dagram of these processes employng EDF and FCFS. Process Arrval Tme Executon Tme Startng Deadlne A B C D E G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 39

40 Process Interactons and Blockng If a process s suspended watng for a lower-prorty process to complete some requred computaton then the prorty model s, n some sense, beng undermned. The process s sad to suffer prorty nverson. If a process s watng for a lower-prorty process, the process s sad to be blocked. Dynamc prortes can vary durng executon. One has to avod Prorty Inverson. Bounded Prorty Inverson Duraton s not longer than that of the crtcal secton where the lower-prorty process owns the resource. Unbounded Prorty Inverson Occurs when a thrd (medum-prorty) process preempts the lowprorty process durng the nverson for an ndefnte tme. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 40

41 Prorty Inverson An extreme example of prorty nverson, consder the executons of four perodc processes: a, b, c and d; and two resources: Q and V Example of Prorty Inverson Process Prorty Executon Sequence Release Tme a 1 EQQQQE 0 b 2 EE 2 c 3 EVVE 2 d 4 EEQVE 4 G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 41

42 Process Example of Prorty Inverson d c b Process Completon Tme Deadlne Met Process Release Tme a Executng Preempted Executng wth Q locked Executng wth V locked Blocked G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 42

43 Prorty Inhertance If process a s blockng the process d, then t runs wth the prorty of d. Process d Process Release Tme Process Completon Tme Deadlne Met c b a G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 43

44 G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 44 Calculatng Blockng If a process has m crtcal sectons that can lead to ts blockng then the maxmum number of tmes t can be blocked s m. If B s the maxmum blockng tme and K s the number of crtcal sectons, the process has an upper bound on ts Response Tme and Blockng: = = K k k C k usage B 1 ) ( ), ( blockng gven by: I B C R + + = j hp j j C T R B C R + + = ) ( j hp j j n n C T w B C w + + = + ) ( 1

45 RTX - Prorty Inversons To prevent prorty nversons, RTX employs the Prorty nhertance technque. For a short tme, the lower-prorty task runs at a prorty of a hgher-prorty pendng task. The RTX mutex objects (Mutual Exclusve Lock objects) employ the Prorty nhertance. Mutex Management Routnes os_mut_nt: Intalzes a mutex object. os_mut_release: Releases a mutex object. os_mut_wat: Wats for a mutex object to become avalable Mutual excluson locks (mutexes) are an alternatve to avod synchronzaton and memory access problems. Mutexes are software objects that a task can use to lock the common resource. Only the task that locks the mutex can access the common resource. The kernel blocks all other tasks that request the mutex untl the task that locked the mutex unlocks t. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 45

46 Prorty Celng Protocols OCPP: Orgnal celng prorty protocol ICPP: Immedate celng prorty protocol OCPP Each process has a statc default prorty assgned (perhaps by the deadlne monotonc scheme) Each resource has a statc celng value defned, ths s the maxmum prorty of the processes that use t. A process has a dynamc prorty that s the maxmum of ts own statc prorty and any t nherts due to t blockng the hgherprorty processes. A process can only lock a resource f ts dynamc prorty s hgher than the celng of any currently locked resource. (excludng any that t has already locked tself) G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 46

47 OCPP Inhertance Process d Executng Executng wth Q locked Executng wth V locked Process Completon Tme Deadlne Met Process Release Tme c b a G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 47

48 ICPP Each process has a statc default prorty assgned (perhaps by the deadlne monotonc scheme). Each resource has a statc celng value defned, ths s the maxmum prorty of the processes that use t. A process has a dynamc prorty that s the maxmum of ts own statc prorty and the celng values of any resources t has locked. As a consequence, a process wll only suffer a block at the very begnnng of ts executon. Once the process starts actually executng, all the resources t needs must be free; f they were not, then some process would have an equal or hgher prorty and the process's executon would be postponed. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 48

49 ICPP Inhertance Process Executng Executng wth Q locked Executng wth V locked Process Completon Tme Deadlne Met Process Release Tme d c b a G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 49

50 OCPP versus ICPP The worst-case behavor of the two celng schemes s dentcal (from a schedulng vew pont) A hgh-prorty process can be blocked at most once durng ts executon by lower-prorty processes Deadlocks are prevented. Transtve blockng s prevented. Ensure mutual exclusve access to resources (by protocol tself) There are some ponts of dfference: ICPP s easer to mplement than the orgnal (OCPP) as blockng relatonshps need not be montored ICPP leads to less context swtches as blockng s pror to frst executon ICPP requres more prorty movements as ths happens wth all resource usage OCPP changes prorty only f an actual block has occurred. ICPP s called Prorty Protect Protocol n POSIX G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 50

51 Mars Pathfnder Suffered Unbounded Prorty Inverson Low-prorty Meteorologcal Process: Acqured the (shared) bus. Medum-prorty, Long-runnng, Communcatons Process: Woke up and preempted the meteorologcal thread. Hgh-prorty Bus Management Process: Woke up and was blocked because t couldn't acqure the bus; When t couldn't meet ts deadlne t rentalzed the computer va a hardware reset. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 51

52 Mars Pathfnder G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 52

53 Duraton of Unbounded Prorty Inverson Lmtng the duraton of unbounded prorty nverson prevents low-prorty process from beng preempted by the medumprorty processes durng the prorty nverson. Technque: Manpulate process prortes at run-tme. Schedulng: Processes wth hgher prorty are scheduled to run frst. Objectve: Assgn prortes n such a way that all outputs are computed before ther deadlnes. Deadlne-Drven Assgnment: Assgn hghest prortes to processes wth shortest deadlnes. Rate Monotonc Assgnment: Assgn hghest prortes to processes that run most frequently wthout regard to deadlnes. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 53

54 Modfed Process Model Untl Now: Deadlnes can be less than perod (D < T) Sporadc and aperodc processes, as well as perodc processes, can be supported Process nteractons are possble, wth the resultng blockng beng factored nto the response tme equatons. Extensons to the Orgnal Model Cooperatve Schedulng Release Jtter Arbtrary Deadlnes Fault Tolerance Offsets Optmal Prorty Assgnment G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 54

55 Cooperatve Schedulng True preemptve behavor s not always acceptable for safetycrtcal systems Cooperatve or deferred preempton splts processes nto slots Mutual excluson s va non-preempton The use of deferred preempton has two mportant advantages It ncreases the schedulablty of the system, and t can lead to lower values of C(computaton tme).wth deferred preempton, no nterference can occur durng the last slot of executon. Let the executon tme of the fnal block be After the soluton converge.e. The response tme s gven by: n n w + 1 w = BMAX + C F + j hp( ) Tj n w = n+1 w n R = w + F C j G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 55

56 G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 56 Arbtrary Deadlnes To cater for the stuatons where D (and hence potentally R) > T The number of releases s bounded by the lowest value of q for whch the followng relaton s true: The worst-case response tme s then the maxmum value found for each q: j hp j j n n C T q w C q B q w = ) ( 1 ) ( 1) ( ) ( ) ( max 0,1,2,... q R R q = = n qt q w q R = ) ( ) ( T q R ) (

57 Fault Tolerance Fault tolerance va ether forward or backward error recovery always results n extra computaton Ths could be an excepton handler or a recovery block. In a real-tme fault tolerant system, deadlnes should stll be met even when a certan level of faults occur Ths level of fault tolerance s know as the fault model If the extra computaton tme resultng from an error n process, s f C R = C + B + R C j max j hp( ) T k hep( ) j where hep() s set of processes wth prorty equal to or hgher than + C f k G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 57

58 G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 58 Fault Tolerance If F s the number of faults allows If there s a mnmum arrval nterval = f k f hep k j hp j j C T R C T R B C R max ) ( ) ( f k hep k j hp j j FC C T R B C R max ) ( ) ( =

59 Dynamc Systems and Onlne Analyss There are dynamc soft real-tme applcatons n whch arrval patterns and computaton tmes are not known a pror. Although some level of off-lne analyss may stll be applcable, ths can no longer be complete and hence some form of on-lne analyss s requred. The man task of an on-lne schedulng scheme s to manage any overload that s lkely to occur due to the dynamcs of the system's envronment. EDF s a dynamc schedulng scheme that s an optmal. Durng transent overloads EDF performs very badly. It s possble to get a cascade effect n whch each process msses ts deadlne but uses suffcent resources to result n the next process also mssng ts deadlne. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 59

60 Admsson Schemes To counter ths detrmental domno effect many on-lne schemes have two mechansms: An admssons control module that lmts the number of processes that are allowed to compete for the processors, and An EDF dspatchng routne for those processes that are admtted. An deal admssons algorthm prevents the processors gettng overloaded so that the EDF routne works effectvely. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 60

61 Values If some processes are to be admtted, whlst others rejected, relatve mportance of each process must be known. Ths s usually acheved by assgnng value. Values can be classfed as: Statc: a process always has the same value whenever t s released. Dynamc: the process's value can only be computed at the tme the process s released (because t s dependent on ether envronmental factors or the current state of the system) Adaptve: here the dynamc nature of the system s such that the value of the process wll change durng ts executon. To assgn statc values requres the doman specalsts to artculate ther understandng of the desrable behavor of the system. G. Khan Embedded Computer Systems EE8205: Real-tme Schedulng Page: 61

Real-time Scheduling

Real-time Scheduling Real-tme Schedulng COE718: Embedded System Desgn http://www.ee.ryerson.ca/~courses/coe718/ Dr. Gul N. Khan http://www.ee.ryerson.ca/~gnkhan Electrcal and Computer Engneerng Ryerson Unversty Overvew RTX

More information

Scheduling. In general, a scheduling scheme provides two features: An algorithm for ordering the use of system resources (in particular the CPUs)

Scheduling. In general, a scheduling scheme provides two features: An algorithm for ordering the use of system resources (in particular the CPUs) Schedulng Goal To understand the role that schedulng and schedulablty analyss plays n predctng that real-tme applcatons meet ther deadlnes Topcs Smple process model The cyclc executve approach Process-based

More information

Multitasking and Real-time Scheduling

Multitasking and Real-time Scheduling Multtaskng and Real-tme Schedulng EE8205: Embedded Computer Systems http://www.ee.ryerson.ca/~courses/ee8205/ Dr. Gul N. Khan http://www.ee.ryerson.ca/~gnkhan Electrcal and Computer Engneerng Ryerson Unversty

More information

AADL : about scheduling analysis

AADL : about scheduling analysis AADL : about schedulng analyss Schedulng analyss, what s t? Embedded real-tme crtcal systems have temporal constrants to meet (e.g. deadlne). Many systems are bult wth operatng systems provdng multtaskng

More information

Lecture 7 Real Time Task Scheduling. Forrest Brewer

Lecture 7 Real Time Task Scheduling. Forrest Brewer Lecture 7 Real Tme Task Schedulng Forrest Brewer Real Tme ANSI defnes real tme as A Real tme process s a process whch delvers the results of processng n a gven tme span A data may requre processng at a

More information

Verification by testing

Verification by testing Real-Tme Systems Specfcaton Implementaton System models Executon-tme analyss Verfcaton Verfcaton by testng Dad? How do they know how much weght a brdge can handle? They drve bgger and bgger trucks over

More information

Real-Time Systems. Real-Time Systems. Verification by testing. Verification by testing

Real-Time Systems. Real-Time Systems. Verification by testing. Verification by testing EDA222/DIT161 Real-Tme Systems, Chalmers/GU, 2014/2015 Lecture #8 Real-Tme Systems Real-Tme Systems Lecture #8 Specfcaton Professor Jan Jonsson Implementaton System models Executon-tme analyss Department

More information

An Investigation into Server Parameter Selection for Hierarchical Fixed Priority Pre-emptive Systems

An Investigation into Server Parameter Selection for Hierarchical Fixed Priority Pre-emptive Systems An Investgaton nto Server Parameter Selecton for Herarchcal Fxed Prorty Pre-emptve Systems R.I. Davs and A. Burns Real-Tme Systems Research Group, Department of omputer Scence, Unversty of York, YO10 5DD,

More information

Virtual Memory. Background. No. 10. Virtual Memory: concept. Logical Memory Space (review) Demand Paging(1) Virtual Memory

Virtual Memory. Background. No. 10. Virtual Memory: concept. Logical Memory Space (review) Demand Paging(1) Virtual Memory Background EECS. Operatng System Fundamentals No. Vrtual Memory Prof. Hu Jang Department of Electrcal Engneerng and Computer Scence, York Unversty Memory-management methods normally requres the entre process

More information

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz Compler Desgn Sprng 2014 Regster Allocaton Sample Exercses and Solutons Prof. Pedro C. Dnz USC / Informaton Scences Insttute 4676 Admralty Way, Sute 1001 Marna del Rey, Calforna 90292 pedro@s.edu Regster

More information

Perfecting Preemption Threshold Scheduling for Object-Oriented Real-Time System Design: From The Perspective of Real-Time Synchronization

Perfecting Preemption Threshold Scheduling for Object-Oriented Real-Time System Design: From The Perspective of Real-Time Synchronization Perfectng Preempton Threshold Schedulng for Obect-Orented Real-Tme System Desgn: From The Perspectve of Real-Tme Synchronzaton Saehwa Km School of Electrcal Engneerng and Computer Scence Seoul Natonal

More information

Maintaining temporal validity of real-time data on non-continuously executing resources

Maintaining temporal validity of real-time data on non-continuously executing resources Mantanng temporal valdty of real-tme data on non-contnuously executng resources Tan Ba, Hong Lu and Juan Yang Hunan Insttute of Scence and Technology, College of Computer Scence, 44, Yueyang, Chna Wuhan

More information

Mixed-Criticality Scheduling on Multiprocessors using Task Grouping

Mixed-Criticality Scheduling on Multiprocessors using Task Grouping Mxed-Crtcalty Schedulng on Multprocessors usng Task Groupng Jankang Ren Lnh Th Xuan Phan School of Software Technology, Dalan Unversty of Technology, Chna Computer and Informaton Scence Department, Unversty

More information

Real-Time Guarantees. Traffic Characteristics. Flow Control

Real-Time Guarantees. Traffic Characteristics. Flow Control Real-Tme Guarantees Requrements on RT communcaton protocols: delay (response s) small jtter small throughput hgh error detecton at recever (and sender) small error detecton latency no thrashng under peak

More information

Course Introduction. Algorithm 8/31/2017. COSC 320 Advanced Data Structures and Algorithms. COSC 320 Advanced Data Structures and Algorithms

Course Introduction. Algorithm 8/31/2017. COSC 320 Advanced Data Structures and Algorithms. COSC 320 Advanced Data Structures and Algorithms Course Introducton Course Topcs Exams, abs, Proects A quc loo at a few algorthms 1 Advanced Data Structures and Algorthms Descrpton: We are gong to dscuss algorthm complexty analyss, algorthm desgn technques

More information

A Generic and Compositional Framework for Multicore Response Time Analysis

A Generic and Compositional Framework for Multicore Response Time Analysis A Generc and Compostonal Framework for Multcore Response Tme Analyss Sebastan Altmeyer Unversty of Luxembourg Unversty of Amsterdam Clare Maza Grenoble INP Vermag Robert I. Davs Unversty of York INRIA,

More information

S1 Note. Basis functions.

S1 Note. Basis functions. S1 Note. Bass functons. Contents Types of bass functons...1 The Fourer bass...2 B-splne bass...3 Power and type I error rates wth dfferent numbers of bass functons...4 Table S1. Smulaton results of type

More information

Tolerating Transient Faults in Statically Scheduled Safety-Critical Embedded Systems

Tolerating Transient Faults in Statically Scheduled Safety-Critical Embedded Systems Toleratng Transent Faults n Statcally Scheduled Safety-Crtcal Embedded Systems Nagaraan Kandasamy *, John P. Hayes *, and Bran T. Murray ** * Department of Electrcal Engneerng ** Delph Automotve Systems

More information

Mathematics 256 a course in differential equations for engineering students

Mathematics 256 a course in differential equations for engineering students Mathematcs 56 a course n dfferental equatons for engneerng students Chapter 5. More effcent methods of numercal soluton Euler s method s qute neffcent. Because the error s essentally proportonal to the

More information

Parallelism for Nested Loops with Non-uniform and Flow Dependences

Parallelism for Nested Loops with Non-uniform and Flow Dependences Parallelsm for Nested Loops wth Non-unform and Flow Dependences Sam-Jn Jeong Dept. of Informaton & Communcaton Engneerng, Cheonan Unversty, 5, Anseo-dong, Cheonan, Chungnam, 330-80, Korea. seong@cheonan.ac.kr

More information

The Greedy Method. Outline and Reading. Change Money Problem. Greedy Algorithms. Applications of the Greedy Strategy. The Greedy Method Technique

The Greedy Method. Outline and Reading. Change Money Problem. Greedy Algorithms. Applications of the Greedy Strategy. The Greedy Method Technique //00 :0 AM Outlne and Readng The Greedy Method The Greedy Method Technque (secton.) Fractonal Knapsack Problem (secton..) Task Schedulng (secton..) Mnmum Spannng Trees (secton.) Change Money Problem Greedy

More information

A Binarization Algorithm specialized on Document Images and Photos

A Binarization Algorithm specialized on Document Images and Photos A Bnarzaton Algorthm specalzed on Document mages and Photos Ergna Kavalleratou Dept. of nformaton and Communcaton Systems Engneerng Unversty of the Aegean kavalleratou@aegean.gr Abstract n ths paper, a

More information

RAP. Speed/RAP/CODA. Real-time Systems. Modeling the sensor networks. Real-time Systems. Modeling the sensor networks. Real-time systems:

RAP. Speed/RAP/CODA. Real-time Systems. Modeling the sensor networks. Real-time Systems. Modeling the sensor networks. Real-time systems: Speed/RAP/CODA Presented by Octav Chpara Real-tme Systems Many wreless sensor network applcatons requre real-tme support Survellance and trackng Border patrol Fre fghtng Real-tme systems: Hard real-tme:

More information

A Free-Collision MAC Proposal for Networks

A Free-Collision MAC Proposal for Networks 12th Brazlan Workshop on Real-Tme and Embedded Systems 89 A Free-Collson MAC Proposal for 802.11 Networks Omar Alment 1,2, Gullermo Fredrch 1, Gullermo Reggan 1 1 SITIC Group Unversdad Tecnológca Naconal

More information

Burst Round Robin as a Proportional-Share Scheduling Algorithm

Burst Round Robin as a Proportional-Share Scheduling Algorithm Burst Round Robn as a Proportonal-Share Schedulng Algorthm Tarek Helmy * Abdelkader Dekdouk ** * College of Computer Scence & Engneerng, Kng Fahd Unversty of Petroleum and Mnerals, Dhahran 31261, Saud

More information

Scheduling and queue management. DigiComm II

Scheduling and queue management. DigiComm II Schedulng and queue management Tradtonal queung behavour n routers Data transfer: datagrams: ndvdual packets no recognton of flows connectonless: no sgnallng Forwardng: based on per-datagram forwardng

More information

Real-time Fault-tolerant Scheduling Algorithm for Distributed Computing Systems

Real-time Fault-tolerant Scheduling Algorithm for Distributed Computing Systems Real-tme Fault-tolerant Schedulng Algorthm for Dstrbuted Computng Systems Yun Lng, Y Ouyang College of Computer Scence and Informaton Engneerng Zheang Gongshang Unversty Postal code: 310018 P.R.CHINA {ylng,

More information

CHAPTER 2 PROPOSED IMPROVED PARTICLE SWARM OPTIMIZATION

CHAPTER 2 PROPOSED IMPROVED PARTICLE SWARM OPTIMIZATION 24 CHAPTER 2 PROPOSED IMPROVED PARTICLE SWARM OPTIMIZATION The present chapter proposes an IPSO approach for multprocessor task schedulng problem wth two classfcatons, namely, statc ndependent tasks and

More information

CMPS 10 Introduction to Computer Science Lecture Notes

CMPS 10 Introduction to Computer Science Lecture Notes CPS 0 Introducton to Computer Scence Lecture Notes Chapter : Algorthm Desgn How should we present algorthms? Natural languages lke Englsh, Spansh, or French whch are rch n nterpretaton and meanng are not

More information

Concurrent Apriori Data Mining Algorithms

Concurrent Apriori Data Mining Algorithms Concurrent Apror Data Mnng Algorthms Vassl Halatchev Department of Electrcal Engneerng and Computer Scence York Unversty, Toronto October 8, 2015 Outlne Why t s mportant Introducton to Assocaton Rule Mnng

More information

Technical Report. i-game: An Implicit GTS Allocation Mechanism in IEEE for Time- Sensitive Wireless Sensor Networks

Technical Report. i-game: An Implicit GTS Allocation Mechanism in IEEE for Time- Sensitive Wireless Sensor Networks www.hurray.sep.pp.pt Techncal Report -GAME: An Implct GTS Allocaton Mechansm n IEEE 802.15.4 for Tme- Senstve Wreless Sensor etworks Ans Koubaa Máro Alves Eduardo Tovar TR-060706 Verson: 1.0 Date: Jul

More information

The Codesign Challenge

The Codesign Challenge ECE 4530 Codesgn Challenge Fall 2007 Hardware/Software Codesgn The Codesgn Challenge Objectves In the codesgn challenge, your task s to accelerate a gven software reference mplementaton as fast as possble.

More information

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1)

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1) Secton 1.2 Subsets and the Boolean operatons on sets If every element of the set A s an element of the set B, we say that A s a subset of B, or that A s contaned n B, or that B contans A, and we wrte A

More information

Chapter 1. Introduction

Chapter 1. Introduction Chapter 1 Introducton 1.1 Parallel Processng There s a contnual demand for greater computatonal speed from a computer system than s currently possble (.e. sequental systems). Areas need great computatonal

More information

A comparison of MPCP and MSRP when sharing resources in the Janus multiple-processor on a chip platform

A comparison of MPCP and MSRP when sharing resources in the Janus multiple-processor on a chip platform A comparson of MPCP and MSRP when sharng resources n the Janus multple-processor on a chp platform Paolo Ga, Marco D Natale, Guseppe Lpar, Scuola Superore Sant Anna, Psa, Italy {pj,marco,lpar}@sssup.t

More information

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009.

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009. Farrukh Jabeen Algorthms 51 Assgnment #2 Due Date: June 15, 29. Assgnment # 2 Chapter 3 Dscrete Fourer Transforms Implement the FFT for the DFT. Descrbed n sectons 3.1 and 3.2. Delverables: 1. Concse descrpton

More information

Nachos Project 3. Speaker: Sheng-Wei Cheng 2010/12/16

Nachos Project 3. Speaker: Sheng-Wei Cheng 2010/12/16 Nachos Project Speaker: Sheng-We Cheng //6 Agenda Motvaton User Programs n Nachos Related Nachos Code for User Programs Project Assgnment Bonus Submsson Agenda Motvaton User Programs n Nachos Related Nachos

More information

A Genetic Algorithm Based Dynamic Load Balancing Scheme for Heterogeneous Distributed Systems

A Genetic Algorithm Based Dynamic Load Balancing Scheme for Heterogeneous Distributed Systems Proceedngs of the Internatonal Conference on Parallel and Dstrbuted Processng Technques and Applcatons, PDPTA 2008, Las Vegas, Nevada, USA, July 14-17, 2008, 2 Volumes. CSREA Press 2008, ISBN 1-60132-084-1

More information

REAL-TIME and embedded systems are applied in many

REAL-TIME and embedded systems are applied in many 95 IEEE TRANSACTIONS ON COMPUTERS, VOL. 57, NO. 7, JULY 008 Deferrable Schedulng for Mantanng Real-Tme Data Freshness: Algorthms, Analyss, and Results Mng Xong, Member, IEEE, Song Han, Student Member,

More information

Adaptive Resource Allocation Control with On-Line Search for Fair QoS Level

Adaptive Resource Allocation Control with On-Line Search for Fair QoS Level Adaptve Resource Allocaton Control wth On-Lne Search for Far QoS Level Fumko Harada, Toshmtsu Usho, Graduate School of Engneerng Scence Osaka Unversty {harada@hopf, usho@}sysesosaka-uacjp Yukkazu akamoto

More information

Response-Time Guarantees in ATM Networks

Response-Time Guarantees in ATM Networks Response-Tme Guarantees n ATM Networks Andreas Ermedahl Hans Hansson Mkael Sjödn Department of Computer Systems Uppsala Unversty Sweden E-mal: febbe,hansh,mcg@docs.uu.se Abstract We present a method for

More information

A fault tree analysis strategy using binary decision diagrams

A fault tree analysis strategy using binary decision diagrams Loughborough Unversty Insttutonal Repostory A fault tree analyss strategy usng bnary decson dagrams Ths tem was submtted to Loughborough Unversty's Insttutonal Repostory by the/an author. Addtonal Informaton:

More information

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour 6.854 Advanced Algorthms Petar Maymounkov Problem Set 11 (November 23, 2005) Wth: Benjamn Rossman, Oren Wemann, and Pouya Kheradpour Problem 1. We reduce vertex cover to MAX-SAT wth weghts, such that the

More information

Learning the Kernel Parameters in Kernel Minimum Distance Classifier

Learning the Kernel Parameters in Kernel Minimum Distance Classifier Learnng the Kernel Parameters n Kernel Mnmum Dstance Classfer Daoqang Zhang 1,, Songcan Chen and Zh-Hua Zhou 1* 1 Natonal Laboratory for Novel Software Technology Nanjng Unversty, Nanjng 193, Chna Department

More information

Simulation Based Analysis of FAST TCP using OMNET++

Simulation Based Analysis of FAST TCP using OMNET++ Smulaton Based Analyss of FAST TCP usng OMNET++ Umar ul Hassan 04030038@lums.edu.pk Md Term Report CS678 Topcs n Internet Research Sprng, 2006 Introducton Internet traffc s doublng roughly every 3 months

More information

CS 268: Lecture 8 Router Support for Congestion Control

CS 268: Lecture 8 Router Support for Congestion Control CS 268: Lecture 8 Router Support for Congeston Control Ion Stoca Computer Scence Dvson Department of Electrcal Engneerng and Computer Scences Unversty of Calforna, Berkeley Berkeley, CA 9472-1776 Router

More information

User Authentication Based On Behavioral Mouse Dynamics Biometrics

User Authentication Based On Behavioral Mouse Dynamics Biometrics User Authentcaton Based On Behavoral Mouse Dynamcs Bometrcs Chee-Hyung Yoon Danel Donghyun Km Department of Computer Scence Department of Computer Scence Stanford Unversty Stanford Unversty Stanford, CA

More information

CHAPTER 2 DECOMPOSITION OF GRAPHS

CHAPTER 2 DECOMPOSITION OF GRAPHS CHAPTER DECOMPOSITION OF GRAPHS. INTRODUCTION A graph H s called a Supersubdvson of a graph G f H s obtaned from G by replacng every edge uv of G by a bpartte graph,m (m may vary for each edge by dentfyng

More information

Sorting Review. Sorting. Comparison Sorting. CSE 680 Prof. Roger Crawfis. Assumptions

Sorting Review. Sorting. Comparison Sorting. CSE 680 Prof. Roger Crawfis. Assumptions Sortng Revew Introducton to Algorthms Qucksort CSE 680 Prof. Roger Crawfs Inserton Sort T(n) = Θ(n 2 ) In-place Merge Sort T(n) = Θ(n lg(n)) Not n-place Selecton Sort (from homework) T(n) = Θ(n 2 ) In-place

More information

Comparison of Heuristics for Scheduling Independent Tasks on Heterogeneous Distributed Environments

Comparison of Heuristics for Scheduling Independent Tasks on Heterogeneous Distributed Environments Comparson of Heurstcs for Schedulng Independent Tasks on Heterogeneous Dstrbuted Envronments Hesam Izakan¹, Ath Abraham², Senor Member, IEEE, Václav Snášel³ ¹ Islamc Azad Unversty, Ramsar Branch, Ramsar,

More information

A Knowledge Sharing Resource Library Platform Based on Multivariate Large Data Predictive Compensation

A Knowledge Sharing Resource Library Platform Based on Multivariate Large Data Predictive Compensation A Knowledge Sharng Resource Lbrary Platform Based on Multvarate Large Data Predctve Compensaton Yng Wang Informaton Engneerng Insttute, Informaton Teachng Appled Technology Extenson Center, Chongqng Vocatonal

More information

VRT012 User s guide V0.1. Address: Žirmūnų g. 27, Vilnius LT-09105, Phone: (370-5) , Fax: (370-5) ,

VRT012 User s guide V0.1. Address: Žirmūnų g. 27, Vilnius LT-09105, Phone: (370-5) , Fax: (370-5) , VRT012 User s gude V0.1 Thank you for purchasng our product. We hope ths user-frendly devce wll be helpful n realsng your deas and brngng comfort to your lfe. Please take few mnutes to read ths manual

More information

Subspace clustering. Clustering. Fundamental to all clustering techniques is the choice of distance measure between data points;

Subspace clustering. Clustering. Fundamental to all clustering techniques is the choice of distance measure between data points; Subspace clusterng Clusterng Fundamental to all clusterng technques s the choce of dstance measure between data ponts; D q ( ) ( ) 2 x x = x x, j k = 1 k jk Squared Eucldean dstance Assumpton: All features

More information

A Novel Fault Tolerant Scheduling Technique In Real-Time Heterogeneous Distributed Systems Using Distributed Recovery Block

A Novel Fault Tolerant Scheduling Technique In Real-Time Heterogeneous Distributed Systems Using Distributed Recovery Block Proceedngs of Natonal Conference VISION 07 on Hgh Performance Computng 2 nd Aprl 07 Government College of Engneerng, Department of CSE, Trunelvel, Taml Nadu, INDIA A Novel Fault Tolerant Schedulng Technque

More information

Brave New World Pseudocode Reference

Brave New World Pseudocode Reference Brave New World Pseudocode Reference Pseudocode s a way to descrbe how to accomplsh tasks usng basc steps lke those a computer mght perform. In ths week s lab, you'll see how a form of pseudocode can be

More information

Problem Definitions and Evaluation Criteria for Computational Expensive Optimization

Problem Definitions and Evaluation Criteria for Computational Expensive Optimization Problem efntons and Evaluaton Crtera for Computatonal Expensve Optmzaton B. Lu 1, Q. Chen and Q. Zhang 3, J. J. Lang 4, P. N. Suganthan, B. Y. Qu 6 1 epartment of Computng, Glyndwr Unversty, UK Faclty

More information

Improvement of Spatial Resolution Using BlockMatching Based Motion Estimation and Frame. Integration

Improvement of Spatial Resolution Using BlockMatching Based Motion Estimation and Frame. Integration Improvement of Spatal Resoluton Usng BlockMatchng Based Moton Estmaton and Frame Integraton Danya Suga and Takayuk Hamamoto Graduate School of Engneerng, Tokyo Unversty of Scence, 6-3-1, Nuku, Katsuska-ku,

More information

Wishing you all a Total Quality New Year!

Wishing you all a Total Quality New Year! Total Qualty Management and Sx Sgma Post Graduate Program 214-15 Sesson 4 Vnay Kumar Kalakband Assstant Professor Operatons & Systems Area 1 Wshng you all a Total Qualty New Year! Hope you acheve Sx sgma

More information

Achieving class-based QoS for transactional workloads

Achieving class-based QoS for transactional workloads Achevng class-based QoS for transactonal workloads Banca Schroeder Mor Harchol-Balter Carnege Mellon Unversty Department of Computer Scence Pttsburgh, PA USA @cs.cmu.edu Arun Iyengar Erch

More information

Dynamic Bandwidth Provisioning with Fairness and Revenue Considerations for Broadband Wireless Communication

Dynamic Bandwidth Provisioning with Fairness and Revenue Considerations for Broadband Wireless Communication Ths full text paper was peer revewed at the drecton of IEEE Communcatons Socety subject matter experts for publcaton n the ICC 008 proceedngs. Dynamc Bandwdth Provsonng wth Farness and Revenue Consderatons

More information

WITH rapid improvements of wireless technologies,

WITH rapid improvements of wireless technologies, JOURNAL OF SYSTEMS ARCHITECTURE, SPECIAL ISSUE: HIGHLY-RELIABLE CPS, VOL. 00, NO. 0, MONTH 013 1 Adaptve GTS Allocaton n IEEE 80.15.4 for Real-Tme Wreless Sensor Networks Feng Xa, Ruonan Hao, Je L, Naxue

More information

An Online Delay Efficient Multi-Class Packet Scheduler for Heterogeneous M2M Uplink Traffic

An Online Delay Efficient Multi-Class Packet Scheduler for Heterogeneous M2M Uplink Traffic An Onlne Delay Effcent Mult-Class Packet Scheduler for Heterogeneous M2M Uplnk Traffc Akshay Kumar, Ahmed Abdelhad and Charles Clancy Hume Center, Vrgna Tech Emal:{akshay2, aabdelhad, tcc}@vt.edu Abstract

More information

NAG Fortran Library Chapter Introduction. G10 Smoothing in Statistics

NAG Fortran Library Chapter Introduction. G10 Smoothing in Statistics Introducton G10 NAG Fortran Lbrary Chapter Introducton G10 Smoothng n Statstcs Contents 1 Scope of the Chapter... 2 2 Background to the Problems... 2 2.1 Smoothng Methods... 2 2.2 Smoothng Splnes and Regresson

More information

Fibre-Optic AWG-based Real-Time Networks

Fibre-Optic AWG-based Real-Time Networks Fbre-Optc AWG-based Real-Tme Networks Krstna Kunert, Annette Böhm, Magnus Jonsson, School of Informaton Scence, Computer and Electrcal Engneerng, Halmstad Unversty {Magnus.Jonsson, Krstna.Kunert}@de.hh.se

More information

A mathematical programming approach to the analysis, design and scheduling of offshore oilfields

A mathematical programming approach to the analysis, design and scheduling of offshore oilfields 17 th European Symposum on Computer Aded Process Engneerng ESCAPE17 V. Plesu and P.S. Agach (Edtors) 2007 Elsever B.V. All rghts reserved. 1 A mathematcal programmng approach to the analyss, desgn and

More information

Module Management Tool in Software Development Organizations

Module Management Tool in Software Development Organizations Journal of Computer Scence (5): 8-, 7 ISSN 59-66 7 Scence Publcatons Management Tool n Software Development Organzatons Ahmad A. Al-Rababah and Mohammad A. Al-Rababah Faculty of IT, Al-Ahlyyah Amman Unversty,

More information

Architectural Optimization & Design of Embedded Systems based on AADL Performance Analysis

Architectural Optimization & Design of Embedded Systems based on AADL Performance Analysis Amercan Journal of Computer Archtecture 2012, 1(2): 21-36 DOI: 10.5923/j.ajca.20120102.02 Archtectural Optmzaton & Desgn of Embedded Roberto Varona-Gómez 1,*, Eugeno Vllar 1, Ana Isabe l Rodrígue z 2,

More information

Solutions for Real-Time Communication over Best-Effort Networks

Solutions for Real-Time Communication over Best-Effort Networks Solutons for Real-Tme Communcaton over Best-Effort Networks Anca Hangan, Ramona Marfevc, Gheorghe Sebestyen Techncal Unversty of Cluj-Napoca, Computer Scence Department {Anca.Hangan, Ramona.Marfevc, Gheorghe.Sebestyen}@cs.utcluj.ro

More information

Virtual Machine Migration based on Trust Measurement of Computer Node

Virtual Machine Migration based on Trust Measurement of Computer Node Appled Mechancs and Materals Onlne: 2014-04-04 ISSN: 1662-7482, Vols. 536-537, pp 678-682 do:10.4028/www.scentfc.net/amm.536-537.678 2014 Trans Tech Publcatons, Swtzerland Vrtual Machne Mgraton based on

More information

Distributed Resource Scheduling in Grid Computing Using Fuzzy Approach

Distributed Resource Scheduling in Grid Computing Using Fuzzy Approach Dstrbuted Resource Schedulng n Grd Computng Usng Fuzzy Approach Shahram Amn, Mohammad Ahmad Computer Engneerng Department Islamc Azad Unversty branch Mahallat, Iran Islamc Azad Unversty branch khomen,

More information

Space-Optimal, Wait-Free Real-Time Synchronization

Space-Optimal, Wait-Free Real-Time Synchronization 1 Space-Optmal, Wat-Free Real-Tme Synchronzaton Hyeonjoong Cho, Bnoy Ravndran ECE Dept., Vrgna Tech Blacksburg, VA 24061, USA {hjcho,bnoy}@vt.edu E. Douglas Jensen The MITRE Corporaton Bedford, MA 01730,

More information

A Frame Packing Mechanism Using PDO Communication Service within CANopen

A Frame Packing Mechanism Using PDO Communication Service within CANopen 28 A Frame Packng Mechansm Usng PDO Communcaton Servce wthn CANopen Mnkoo Kang and Kejn Park Dvson of Industral & Informaton Systems Engneerng, Ajou Unversty, Suwon, Gyeongg-do, South Korea Summary The

More information

Adaptive Connection Admission Control for Mission Critical Real-Time Communication Networks Abstract 1 Introduction

Adaptive Connection Admission Control for Mission Critical Real-Time Communication Networks Abstract 1 Introduction Adaptve Connecton Admsson Control for Msson Crtcal Real-Tme Communcaton etwors B. Devalla, A. Sahoo, Y. Guan, C. L, R. Bettat and W. Zhao Department of Computer Scence, Texas A&M Unversty, College Staton,

More information

Hybrid Job Scheduling Mechanism Using a Backfill-based Multi-queue Strategy in Distributed Grid Computing

Hybrid Job Scheduling Mechanism Using a Backfill-based Multi-queue Strategy in Distributed Grid Computing IJCSNS Internatonal Journal of Computer Scence and Network Securty, VOL.12 No.9, September 2012 39 Hybrd Job Schedulng Mechansm Usng a Backfll-based Mult-queue Strategy n Dstrbuted Grd Computng Ken Park

More information

Efficient Distributed File System (EDFS)

Efficient Distributed File System (EDFS) Effcent Dstrbuted Fle System (EDFS) (Sem-Centralzed) Debessay(Debsh) Fesehaye, Rahul Malk & Klara Naherstedt Unversty of Illnos-Urbana Champagn Contents Problem Statement, Related Work, EDFS Desgn Rate

More information

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following.

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following. Complex Numbers The last topc n ths secton s not really related to most of what we ve done n ths chapter, although t s somewhat related to the radcals secton as we wll see. We also won t need the materal

More information

Load-Balanced Anycast Routing

Load-Balanced Anycast Routing Load-Balanced Anycast Routng Chng-Yu Ln, Jung-Hua Lo, and Sy-Yen Kuo Department of Electrcal Engneerng atonal Tawan Unversty, Tape, Tawan sykuo@cc.ee.ntu.edu.tw Abstract For fault-tolerance and load-balance

More information

Report on On-line Graph Coloring

Report on On-line Graph Coloring 2003 Fall Semester Comp 670K Onlne Algorthm Report on LO Yuet Me (00086365) cndylo@ust.hk Abstract Onlne algorthm deals wth data that has no future nformaton. Lots of examples demonstrate that onlne algorthm

More information

Advanced Computer Networks

Advanced Computer Networks Char of Network Archtectures and Servces Department of Informatcs Techncal Unversty of Munch Note: Durng the attendance check a stcker contanng a unque QR code wll be put on ths exam. Ths QR code contans

More information

On-line Scheduling Algorithm with Precedence Constraint in Embeded Real-time System

On-line Scheduling Algorithm with Precedence Constraint in Embeded Real-time System 00 rd Internatonal Conference on Coputer and Electrcal Engneerng (ICCEE 00 IPCSIT vol (0 (0 IACSIT Press, Sngapore DOI: 077/IPCSIT0VNo80 On-lne Schedulng Algorth wth Precedence Constrant n Ebeded Real-te

More information

Cache Performance 3/28/17. Agenda. Cache Abstraction and Metrics. Direct-Mapped Cache: Placement and Access

Cache Performance 3/28/17. Agenda. Cache Abstraction and Metrics. Direct-Mapped Cache: Placement and Access Agenda Cache Performance Samra Khan March 28, 217 Revew from last lecture Cache access Assocatvty Replacement Cache Performance Cache Abstracton and Metrcs Address Tag Store (s the address n the cache?

More information

Use of Genetic Algorithms in Efficient Scheduling for Multi Service Classes

Use of Genetic Algorithms in Efficient Scheduling for Multi Service Classes Use of Genetc Algorthms n Effcent Schedulng for Mult Servce Classes Shyamale Thlakawardana and Rahm Tafazoll Centre for Communcatons Systems Research (CCSR), Unversty of Surrey, Guldford, GU27XH, UK Abstract

More information

TN348: Openlab Module - Colocalization

TN348: Openlab Module - Colocalization TN348: Openlab Module - Colocalzaton Topc The Colocalzaton module provdes the faclty to vsualze and quantfy colocalzaton between pars of mages. The Colocalzaton wndow contans a prevew of the two mages

More information

ELEC 377 Operating Systems. Week 6 Class 3

ELEC 377 Operating Systems. Week 6 Class 3 ELEC 377 Operatng Systems Week 6 Class 3 Last Class Memory Management Memory Pagng Pagng Structure ELEC 377 Operatng Systems Today Pagng Szes Vrtual Memory Concept Demand Pagng ELEC 377 Operatng Systems

More information

Petri Net Based Software Dependability Engineering

Petri Net Based Software Dependability Engineering Proc. RELECTRONIC 95, Budapest, pp. 181-186; October 1995 Petr Net Based Software Dependablty Engneerng Monka Hener Brandenburg Unversty of Technology Cottbus Computer Scence Insttute Postbox 101344 D-03013

More information

Design and Analysis of Algorithms

Design and Analysis of Algorithms Desgn and Analyss of Algorthms Heaps and Heapsort Reference: CLRS Chapter 6 Topcs: Heaps Heapsort Prorty queue Huo Hongwe Recap and overvew The story so far... Inserton sort runnng tme of Θ(n 2 ); sorts

More information

DESIGNING TRANSMISSION SCHEDULES FOR WIRELESS AD HOC NETWORKS TO MAXIMIZE NETWORK THROUGHPUT

DESIGNING TRANSMISSION SCHEDULES FOR WIRELESS AD HOC NETWORKS TO MAXIMIZE NETWORK THROUGHPUT DESIGNING TRANSMISSION SCHEDULES FOR WIRELESS AD HOC NETWORKS TO MAXIMIZE NETWORK THROUGHPUT Bran J. Wolf, Joseph L. Hammond, and Harlan B. Russell Dept. of Electrcal and Computer Engneerng, Clemson Unversty,

More information

Support Vector Machines

Support Vector Machines /9/207 MIST.6060 Busness Intellgence and Data Mnng What are Support Vector Machnes? Support Vector Machnes Support Vector Machnes (SVMs) are supervsed learnng technques that analyze data and recognze patterns.

More information

A fair buffer allocation scheme

A fair buffer allocation scheme A far buffer allocaton scheme Juha Henanen and Kalev Klkk Telecom Fnland P.O. Box 228, SF-330 Tampere, Fnland E-mal: juha.henanen@tele.f Abstract An approprate servce for data traffc n ATM networks requres

More information

X- Chart Using ANOM Approach

X- Chart Using ANOM Approach ISSN 1684-8403 Journal of Statstcs Volume 17, 010, pp. 3-3 Abstract X- Chart Usng ANOM Approach Gullapall Chakravarth 1 and Chaluvad Venkateswara Rao Control lmts for ndvdual measurements (X) chart are

More information

Parameter estimation for incomplete bivariate longitudinal data in clinical trials

Parameter estimation for incomplete bivariate longitudinal data in clinical trials Parameter estmaton for ncomplete bvarate longtudnal data n clncal trals Naum M. Khutoryansky Novo Nordsk Pharmaceutcals, Inc., Prnceton, NJ ABSTRACT Bvarate models are useful when analyzng longtudnal data

More information

An Optimal Algorithm for Prufer Codes *

An Optimal Algorithm for Prufer Codes * J. Software Engneerng & Applcatons, 2009, 2: 111-115 do:10.4236/jsea.2009.22016 Publshed Onlne July 2009 (www.scrp.org/journal/jsea) An Optmal Algorthm for Prufer Codes * Xaodong Wang 1, 2, Le Wang 3,

More information

An Image Fusion Approach Based on Segmentation Region

An Image Fusion Approach Based on Segmentation Region Rong Wang, L-Qun Gao, Shu Yang, Yu-Hua Cha, and Yan-Chun Lu An Image Fuson Approach Based On Segmentaton Regon An Image Fuson Approach Based on Segmentaton Regon Rong Wang, L-Qun Gao, Shu Yang 3, Yu-Hua

More information

Assembler. Building a Modern Computer From First Principles.

Assembler. Building a Modern Computer From First Principles. Assembler Buldng a Modern Computer From Frst Prncples www.nand2tetrs.org Elements of Computng Systems, Nsan & Schocken, MIT Press, www.nand2tetrs.org, Chapter 6: Assembler slde Where we are at: Human Thought

More information

Agenda & Reading. Simple If. Decision-Making Statements. COMPSCI 280 S1C Applications Programming. Programming Fundamentals

Agenda & Reading. Simple If. Decision-Making Statements. COMPSCI 280 S1C Applications Programming. Programming Fundamentals Agenda & Readng COMPSCI 8 SC Applcatons Programmng Programmng Fundamentals Control Flow Agenda: Decsonmakng statements: Smple If, Ifelse, nested felse, Select Case s Whle, DoWhle/Untl, For, For Each, Nested

More information

Video Proxy System for a Large-scale VOD System (DINA)

Video Proxy System for a Large-scale VOD System (DINA) Vdeo Proxy System for a Large-scale VOD System (DINA) KWUN-CHUNG CHAN #, KWOK-WAI CHEUNG *# #Department of Informaton Engneerng *Centre of Innovaton and Technology The Chnese Unversty of Hong Kong SHATIN,

More information

FAHP and Modified GRA Based Network Selection in Heterogeneous Wireless Networks

FAHP and Modified GRA Based Network Selection in Heterogeneous Wireless Networks 2017 2nd Internatonal Semnar on Appled Physcs, Optoelectroncs and Photoncs (APOP 2017) ISBN: 978-1-60595-522-3 FAHP and Modfed GRA Based Network Selecton n Heterogeneous Wreless Networks Xaohan DU, Zhqng

More information

Halmstad University Post-Print

Halmstad University Post-Print Halmstad Unversty Post-Prnt Admsson Control for Swtched Realtme Ethernet Schedulng Analyss versus etwor Calculus Xng Fan and Magnus Jonsson.B.: When ctng ths wor cte the orgnal artcle. Orgnal Publcaton:

More information

Motivation. EE 457 Unit 4. Throughput vs. Latency. Performance Depends on View Point?! Computer System Performance. An individual user wants to:

Motivation. EE 457 Unit 4. Throughput vs. Latency. Performance Depends on View Point?! Computer System Performance. An individual user wants to: 4.1 4.2 Motvaton EE 457 Unt 4 Computer System Performance An ndvdual user wants to: Mnmze sngle program executon tme A datacenter owner wants to: Maxmze number of Mnmze ( ) http://e-tellgentnternetmarketng.com/webste/frustrated-computer-user-2/

More information

On Achieving Fairness in the Joint Allocation of Buffer and Bandwidth Resources: Principles and Algorithms

On Achieving Fairness in the Joint Allocation of Buffer and Bandwidth Resources: Principles and Algorithms On Achevng Farness n the Jont Allocaton of Buffer and Bandwdth Resources: Prncples and Algorthms Yunka Zhou and Harsh Sethu (correspondng author) Abstract Farness n network traffc management can mprove

More information