Real Time System Iit Notes

  • Uploaded by: sonal
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Real Time System Iit Notes as PDF for free.

More details

  • Words: 49,921
  • Pages: 190
  

!#"%$'&)(*"%+%,.-!%/0&21!430".1*5(76)"%98:1*;"$#<1*1*$#=%,1*>?".@A0-B1DCC%"%(EGFH>0I(J6)*#-K/?*#23L!"%@%&)+%>0$#C;6M=32ON I3 2   3:O@Q1* ".#@2-R"%%STUVS".@)3 /M(W1WNXTUY"(%-Z%/0&01*#@0+)E[FH>0\ ".#@2-R"%4!9"]H"%(G"%*83 6C^2/M!@)(* P V!%/0&21!9( P 1>)"_1`]U!;aQ&0<1 &0@)".bM30"%60$#6CcO@)30 P I32&)".$I(S"%@)3d"%9>e/0&21*=(*! P 3d"f$I".+%@Q&)=6M!`%-U&)(*!9(E:FH>0;TUg!9"f(*"h] 1>0!+%!@?`%-G32(*8Q1*%/?(J]7>0I9>c!%&0$I3L6M="(W#$#C 6M".bM303L".@?3i&)(*3L6C1*>)=#@)32 P I32&)"%$K&)(W(E4FH>0/M(W1WNXTUj!9" I( (*!O@0+!*+!@)!%-(W "%$O$"%@)3i/M%*1"%60$O/0&21*(S".@?3c!%/0&21!9(V=6M30303cO@d P !C3)"hCf"%/0/0$##"_1O@)(!Sk ".8#@0+f".@ #@)32 P #32&?".$#@Q1*!9"%17]7<1>f(* P !9".$'/0&21*(H P *C230"hCE l 5".$ONm1O="%@)3L=6M303253n!%/0&21O@0+"./0/)$OI!".1*#%@)(4O@L1>0A)(W141D]U:!%/0&21O@0+ !9" ]U!`".1*>049".=".@?3L*5(D1*Io13 1 "-R]g(W/M!#"%$O#p!53i"./0/)$OI!".1*#%@)(V(W&)9>i"(V(*/)"="%@)3L32-R@)(*%E4qX@i1*>0/?Q(D1*NrTHj!9".-G/0&21*#@0+?S?1>0=&?(W.-/)&21* (*C2(D1! (6)"(W53%@ ".$ONs1*#J"%@)3!6?53032531*9>)@0%$#%+O5([>)"%(G".$#*5"%32C=1*%&?9>03 P !C`-t"1.-'%&0$OO-R4"%@)3#((D1O$#$)+*_]7#@0+ ".1V" /)"1>)"_1\]U"(7@0 P !4(*!@L6?!-R%%E7uv>0#$#=!6?5303253L/0!((W#@0+;"%@)3fqX@Q1*!@0!1WNr!@)"%60$O53L32 P I5(J>)" P @0_]w!"./01*&03  P !C%@0%x (`# ".+O@)".1*#%@S1*>0Cy".`zD&)(W1;"c(* ".$#$U-R"o1*#%@Y.-,"./0/0$#I!"_1O@)(=1*>)".1>?" P :6M!@Y "32f/?Q(*(*O6)$O6C{*5".$ONm1O (*C2(D1! (!EHqr-]U=!"(W&?".$#$OC $O%8f".%&)@)3&)(!S?]!".@i30#( P !J ".@C .-K1*>0}|~%-B1*!@f1>0!CL"%*`".%&2M".+%53O@)(*I32=(*O/0$# $#%8O@)+32 P I5(!Eqr-Z]UV6)(*! P J!"%*!-R&0$#$OCSQ]UV".@;@).1*I,(* P "%$0+"32+%!1(U".@)3:"./0/0$#I!"_1O@)(]7>0#9>:>)" P 41*230"hC6?5VO@0N 32I(*/?@)(*"%60$#J1*=%&0 P *C30"hC$OO-R%S2"%*J#@ -t"o16?"%(*3%@:!=6M3)323 "%$)" P J&060IaQ&0O1*%&?( !%@)(*&0!7/0232&)1(7(*&)9>L"%(732#+%O1"%$!"."(!S2$O$Z/0>0%@)(S2I_]H" P 4 P !@)(S2!"%!%932!9(S P I32!+Q".(W!1(21*$O5%&2N @0I!".1*#%@{32"%O@d/0232&)o19(`".@?3d"%/0/0$##"_1O@)((W&?9>e"((W!1WNs1*/c6Mh^2(S!"%60$# 232 (!S P %I P !,qDTƒ‚R„[qDT…oS".@)3 P #30! !%@2-R*@)#@0+n"%/0/0$##"_1*#%@?(![%† !:/0232&)1(=(*&)9>‡"(`-t".^d "%9>)O@05(!SK$I"%(*!/0*#@Q1*(S"%@)3‡(*!&0*O1DCe(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O+%#(H".@)330".1".6?"%(*(E

   

   "$! #&%' #("daQ&)".@Q1*O1".1* P @0.1O@‡.-V1*#%E

l 5".$ONm1O#("(W&)*53{&)(*O@0+e"c/0>C(*I!".$,‚R"%$I…$#298kE{uv>0!@0 P ]U Qa &)"%@1<-RC;1*#,&)(*#@0+"/0>C2(WI!"%$'$#98kS]U,30".$k]7O1*>*5".$M1*#%EŠ4@ !^2"%/0$O\&)(*,.-1>0#(7aQ&)"%@Q1*O1"_1 P V@).1*#%@.-Z1*#".@ 6M`%6?(W P 3 O@i" 325(*!*#/21O@%-".@L".&21% "_13f9>0I!"%$/0$I".@Q1EJ%@?(WI32!J1*>0I( ]7>0!@f1>01!/?".1*&0.-K1>0=9>0I!"%$ "o1*#%@e9>)"%=6M!`"_1*1"%O@)("L!!*1"%O@d/032!1*!O@)3c1*/M!9"_1&0%S("hC .‘ VS1>0;(*C(W1* "%&21*".1*I!"%$O$#Cn(*]7<199>0(,%b 1>0;>05"_1*=]7O1*>0#@‡"L/0301**#@03c1O:#@Q1* P ".$sSK(*"hCc]7<1>0O@‡Ž‘LO$#$#(*@)30(E qX@e1>0I(=325(*!*#/21*#%@{%-J"f/)".*1=.-H1>0 6M!>)" P #%.-"9>0!I!".$M/0$I".@Q1SQ1>041O P ".$#&0J1>)"_1H]U"(G-R*3132@0.1(1*>)V"32O@)+(%-Z(W4/0>C2(WI!"%$M!$O298/0(*!@Q1 #@1*>0/0$I".@Q1J".&01*% ".1*#%@f(WC2(W1*!fE

+*-, -.

)(

0/ 123!#&%4 &5768#:9;2
qX@ @Q1*9"%(W1[1* S ‚t"%$#(*,8@0_]7@ "%( P #W1&)".$21Oh…325".$I([]7<1>;"aQ&)".$#<19"_1 P 7@0.1O@%-k1*#V".@)3I( !^/)*5(*(*3 &)(*O@0+  P @1J30!O@0+!$I"_1O@)(7(W&?9>f"(76M-R%%SM"_-B1!5S)(W1*#(S0 P !@Q1*&?".$#$OCS0/0532(S)(*&)!!!530(!S)1%Euv>)O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$##!<1H1>)"_17".$#$MaQ&)"%@Q1*O1"_1 P J ".*#3f&21\&?(W#@0+ ":/0>C2(WI!"%$$#298kE\Š 9>0!I!"%$/0$I".@Q15SM]7>)(*=/)"%W1\6?>)" P OV325(*!*#/21*#%@n#(J| .‘ ,| #(V$#"%*$#C:"".$ONs1*#`(*C2(D1!fE V&0 !^2"%/0$O5((*-t".U]*V*5(D1*Io13 1=1>0,32(O/01*#%@:%-Z/)"%W1#"%$?6M!>)" P #%U.-(*C2(D1! (EKFH>)\!%/0$#1*\6M!>)" P #%U.-"(WC2(W1*! ".@y6ML32(#6?53‡6C‡$##(W1*#@0+d<19(*5(W/M%@)(*;1 P "%*#%&)(!^Q1!@)".$H(W1*#=&0$#mEYqr1 "hC{6Mf@0.13‡1*>)".1 "%$O$U1>0L$I".&)(*(#@y1>0 325(*!*#/21O@ .-k1*>0V6?>)" P OG%-'"`*5".$ONm1O4(*C2(D1! @0!53 @0.1O@ P $ P JaQ&)".@Q1*O1".1* P J5"%(*&0*5([.-'1OEKFH>?"_1I(S$I".+%7/)"%W19( %-'"=32(O/01*#%@.-k1*>)46M!>)" P #%%-'"(*C2(D1!  "hC@0%1G>)" P J".@CaQ&)"%@1<19"_1 P 7^2/0((W#%@)(.-k1*#4"_1"%$O$sS".@)3 (W1*#$O$MaQ&)".$#<-RC "("d"%$0Q(W6?>)" P O !".@ /0$O!1*$OC‡6ML32(#6?53y]7O1*>0&21;&)(*O@)+d"%@QCYa&?".@Q1*O1".1* P  !^/)*5(*(*O@:%-1OI(H.-[%&)(*V@).14"*5".$ONm1O(*C(W1*fE

Ž ;‘“’2R” •2-–2—-’˜1–2™š ’ ›–21—2œv’=}™;‘žœ$ —R” Ÿ ;– —-’1’2— $‘=¡¢œ;-–’2—8$‘¢•£–£¤£-’2;–}”<$‘ -¤4’2$” • -–2—;’˜£–2'¥2—£¦}˜ ¨§n¡;—-©ª*-, -.A«s§’ ¬¡v©7¡v’2$” —;˜£’2™$”=—-’=œ}—£¦1¦;© ¡R­R’8œR  ¡4™-š1š“’-  1—-’2;–›­R’­‘ž¡;—-©¯®1°'”<;¦1¦ ¢¡;2œ;™;‘2¤8¡ ±

²

³µ´¶´¶))·¸¨)¹`º

¹"»  I¼7½)¿¾kÀÁ Œ3‚¿

l 5".$ONm1Oi(*C2(D1! (>)" P f%-\$I"_1%S-R%&0@)3v"%/0/0$##"_1O@)(O@ ]7I32L9".@0+O@0+e"."(!EvqX@ 1>0f-R%$#$O_]7#@0+?S]Uf$OI(D1:(*%L%-V1>0 /0%#@0!@Q1G"%*5"%(.-'"./0/)$OI!".1*#%@.-k*5".$ONm1OJ(*C2(D1! ([".@)3#@ "9>I32!@Q10d$##(W1:]U%&0$I3v6M P *C P "%(W1:<-`]Ui1*CY1*y^2>)".&?(D1 P !$#CY$##(W1"%$O$\"."( ."%/0/0$##"_1*#%@?(J.-["%$)" P ,1>0!-R*=*5(D1*Io13f%&)J$OI(W141*:%@0$#C";>)".@)32-R&0$%-G"."(!S)"%@)3f%&01V.-K1>0(* ]U,>)" P ,^2/0$I".#@053:@0$OC "=-R] (*!$#1*53"%/0/0$##"_1O@)(1*;@)(*! P ,(W/)"Eud>)" P V/M%#@Q1*3&2171*>0`aQ&)"%@Q1*O1"_1 P ,@0.1O@)(

*

Version 2 CSE, IIT Kharagpur

%-1O &)(*3d#@c1>0;32I(*!&)((W53c"%/0/0$##"_1*#%@?(!E;FH>0!^2"%/0$O5(,] /)*5(W@1`"%*#/M%*1"%@Q1\1L%&0`(*&06)(*aQ&0@Q130#(&)((*O@)( "%@)3:]U%&)$#36M*!-R!*53 1*#@1*>0$I"_1!V>)"%/21*(H]7>0@0 P !7aQ&0#*53'E

)! / #:2

3:#&9;2!#&5

   qX@)30&)(D1*I".$?"./0/0$#I!"_1O@)([@)(W1*O1*&21J"V ".zD%[&)(".+H"%*5"4%-M"%$


-(



 % 3: <1%'#:9;20&=!`5 =! / 58



 % 3:!" #
 >0!I!"%$)/0$I".@Q1U!%@Q1*%$M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7.-K"-R!] >Q&)@)3230(7%-#$O$#Z(*@)30(E

fit engine

fit door

fit wheel

chassis

spray paint finished car

(

Conveyor Belt

€#+%&)* – “29>)! "_1# l /0*5(W@Q1"_1O@ %-Š4@fŠ4&21* "_1*53iU".JŠ4((*!=6)$OC:TG$#"%@Q1 

 % 3:.-/ 0/ Š /21 #*$5 / )3"5 =! / 57435£!$6Á9 7"3#*$# !$#&5 890:5;=<

“ UŠ4Šw".," "_1!+%*C %-K30#(W1*O6)&21*53!%@Q1*%$(*C2(D1! (H6M!#@0+ &)(*3O@f ".@C O@)30&)(D1*#(EŠ “)UŠ>JŠw(*C(W1* >0$O/?( ) %@0O1*".@?3;@1*$?"$I".+%4@Q&)=6M!U.-Z32I(D1*#60&213: P @Q1(%-O@Q1!(W1EKqX@ “)UŠ>JŠ‹(*C2(D1! (SQ(*!@)(*%9(G"%*V(*"_1W1!3 "_1 P "%*#%&?(4+!%+"%/0>0I,$O2"_1*#%@?(J1 $O$#1\9"h]w30"_19"n‚m!".$#$#3i P @19(4%-G#@1!(W19…E,FH>)(*30".1":"%*=1*>0@n/025(*(*3 ".@)3d(W1*%3c#@e"f"%$0;30"_19".6)"(W232!$I(;‚R*!)1(9…V1*>0;!&0*@1`(W1".1* .-U1*>) !@ P O%@0@15E FH>030"_19".6)"(W\I(7&0/k30"_13 -R*5aQ&0!@Q1*$#C 1 "%8%,<14""%$OI(D1#\232!$'%-1>0,&0/213)"_1*`(W1".1*,.-1*>)!@ P O%@0@15E[ŠJ@ ^0"./0$#=%-" “?U Š JŠŒ"./)/0$OI!".1*#%@iI(,".? @ G@0!+%A C @i"%@)".+!!@Q1,“2C(W1*L*‚ B@c“0…oE'ŠJ6 @ B@c“f>0!$#/)(V1*f!"%*C%&21,$OQ"%3 6)".$I".@?#@0+O@L".@f$O5o1*I!".$'@0!+%C;30#(W1*O6)&21*#%@L@0!1D]*8kE[FH>0  C@n“(W@)(W5(U1*>0=!@0*+C:@)(W&)/01*#%@f"_171*>)=32I(D1*ON 60&21O@ /?O@Q1(U".@?3 %/0&01*(G1*>)4$#"%3 "(([32ObM*@1U/0>)"(W5(.-'/M_](*&0/0/0$#C%EKqr1H".$I(W>0$O/?(32C@)"%#".$#$OC6)".$I".@? Ž

Version 2 CSE, IIT Kharagpur

1*>0$OQ"%3'E\ŠJ@0%1*>0V!^0"./0$#=.-G"“)UŠ4Š (*C2(D1! #(\":(*C2(D1! 1*>?"_1V@0<1%9(V"%@)3i!%@Q1*%$I(H1*9"_†;=O@d";/)&21* @01D]U%8k E 4/?@)32#@0+f%@n1*>0 (*!@)(*3c$OQ"%3nO@d320@01D]U%8kS?1>0;“)UŠ4Šƒ(WC2(W1*!‰ "%8%(V1>0 *&21*79>)".@0+VO1(71*9"_†;\*&21*#@0+/?$OIC 32C@)".I!".$#$#C%E[FH>0,1*#`@)(D1"%O@Q1HO@L(*&)9>f"“?U Š JŠg"%/0/0$##"_1O@:I(H1*>)".1 1*>0(W@)(*%9(J=&?(D1(W@)(*`1*>)(*C2(D1!‰(D19"_1"_1,!+%&)$#"%4#@1! P ".$I(=‚t("hCf P !C:-R]gO$#$O[(*!%@)30(9…J"%@)3f1>0(".=&)(W1 6?/)*25(*(*3:6?!-R%\1*>0@0!^14(D19"_1*,I(J(*!@)(*3'E

-(

W <#:9;2

ŠY-R]y^0"%/)$O5(%-?30#".$0"./)/0$OI!".1*#%@)(.-M*5".$ONm1OH(WC2(W1*(K"%* *6?%1(S @ l q(*".@0@0(S_9"%32I"_1O@1*>0"%/C aQ&0#/0!@Q1(S26M30(*#30@0O1*%9(S0".@)3/)&21**#p!53".^2#"%$?1%%+"%/0>Ci‚sUŠ[FJ…E 

 % 3: Á5'Š58!   ¢# 19;5 1  / )›5 5 *#  ¨&29-$›<#:58 9}!# 1 W£! / #& 

l % 6M.19(>)" P 6?5 P !C{/?/0&0$I".@0_]H"%30"hC2(".@)3 ". 6M!#@0+e&)(*3YO@ "d]7#30 P "%*#1DC{%-V32I!"%$J"./0/)$OI!".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@ 9"_1VI(U>0#+%>0$#C @0%@)$O#@0"% ]7<1>`(*/?5o11J1*>) P >0I$#G(W/M!53`".@?3`"%!$#!9"_1O@EŠJ$I(*)Sh^2/M!O!@Q19".$%(*&0$O1((W>)_]n1>)"_11*>0/0*5I(W-R&0!$#@_zD1*#%@ 1*>0%&)+%>=&0$O1*#/0$#7/?O@Q1(#([*Hbk1* P H1>)".@;(*O@)+%$#U/M%#@Q1[email protected]o1O@EKqX; @ @iTG€q!@0+O@05(!S.1*>0J/)*5I(WU-R&0$)#@_zD1*#%@ ".1*H"_15"%9>O@_zD5o1O@/M%#@Q1#([301**#@036C="!%/0&21!5EŠJ; @ @iT€q(*C2(D1!g#@_zD1(K-R&)!$)#@Q1*,#@)32 P I32&)"%$)C$#O@?32!9( *5(W&)$<1O@0+,#@6?!1W1* /?_]U![6)"%$#"%@)x.".%@)+41>04C$#O@?32!9(["%(K]U!$#$0"%([>)O+>0![&21*/0&01[-R*g"9>@0J".$#%@0+\]7O1*>-t"%(W1* 1*>0.1*1*$#,*5(W/M%@)(*%EKFH>0,/02((*%U/0*# ".O$#C;@Q1*%$I(1>0,O+@0<1O@:1O#@0+ ".@)3:1*>),aQ&)"%@Q1*O1DC;.--R&0!$k16M,[email protected]o13'E FH>0=$I"_1*1*4I(V"9>0O P 53f6QCL!%@Q1*%$#$O#@0+1>030&0".1*#%@f-RV]7>0I9>L1>0=#@_zD1* P ".$ P =#(V%/M!@f| /M%/0&0$I".$#C 8@0_]7@n"(





Version 2 CSE, IIT Kharagpur

B )C

   EFH>0"%1*#%@)(.-1*>0,/025(*(*%U".V32!1*!O@)3 6QC1>030"_19"=+$O5".@053 -R% (*!@)(*%9($O2!".1*53:".$#$k P G1>0 ! @0+O@)%EVFH>)(*(*!@)(*%9(J@)(W1".@Q1$OCf%@0O1*J1>0"%=60#!@Q1V1*!/M!9"_1&0*S)1>0!@0+O@0%$I".@Q1J1!/M!9"_1*&)*S?!^>?".&)(W1 1*/M!9"_1&0%SG#((W#%@ +Q"%(@1!@Q1(SU!@0+O@0f/0 ‚m(W/M!53)…oS P !>0I$#f*Q"%3y(*/M!3SH!"%@082(W>?"_-B1/?Q(WO1*#%@SH!"% (W>)".-B1 /?Q(WO1*#%@ZS%19.E[ŠJ: @ @iTG€q[!@)+%#@0J]7O1*>; P !@;"%@_Nr60O1/)&21*32("=&?9> 6?!1W1*ZzD6;.-32!1**#@0O@)+=".@;"!&)".1* -R&0!$2#@_zD5o1*#%@9"_1*-R%K+ P !@ P "%$O&05(K.-k(W/M!53"%@)3="!$O".1*#%@=!%/)"%*531*"\!"%*60&)*!1W1*WNr6)"(W53(WC2(W1*!fEKŠJ@ @iTG€q (WC2(W1* @0%1@0$OC ".8(" P !>)#!$OJ*7-R&)!$M†;#!@Q1SQO1U".$I(*`O@0#Op(/?$O$#&21O@;6C32&?#@0+`/)"%W1#"%$?=60&?(D1O@E Multi Point Fuel Injection (MPFI) System



Computer

0*2([Š l "%$
!$#$O&)$#"%(*C(W1* (G>)" P J6MV" P !C/M%/)&0$#"%G"%@)(.-%60#$#V=&0@0I!".1*#%@E[Š‹!$#$#&0$#"%U(*C2(D1!Œ&)(*&)".$#$#C "./?( "=!<1DC#@1!!$#$#(EKqX@:"9>:$O$sS2"`6)"(W\(D19"_1O@;%@0O1*(1*>0\%60#$O\>)"%@)30(*1(/0(*!@Q1#@ 1>0\!!$#$mE[ˆU(*I32(SQ1*>0\6)"%(* (D19"_1O@d/M!*-R% ((W P "%$K1"%(*82((W&?9>‡"%(,$#"_1O@0+i"f&?(WS(W@)32#@0+i".@)3e!! P O@0+L!%@Q1*%$[((".+%5(\1*i"f>)"%@)30(*15S 8%!/0#@0+1*9"%98L%-H".$#$G3219".#$#(\-R`60#$O$##@0+L/0&0/?Q(W5(!S".@)3d>)"%@)3Nr.b‡.-7!"%$O$I("%(1*>0 %6)O$#  P (E:U".$#$>)"%@)3Nr.b‡I( *5aQ&0O3:]7>0!@L"%60#$#\ P (H"h]U"hC-R%}"6?"%(*,(W1".1*#%@E[ŠV(J"60#$O, P 5(U"h]H"hC%SO1(7!! P 53:(*O+@)".$(W1*!@0+%1*> ‚ l “)“0…4-t".$#$#(,"_1,1>06?"%(*(W1".1*#%@E=FH>)6?"%(*(W1".1*#%@n@0<1%9(J1>0I(".@)3c"%(,(W@c"%(V1>0 l “0“L-t"%$O$I(,6M!$#_] " !!*1"%O@ 1*>0(*>0$#3 P ".$#&0%S<1G>?".@)30(WNr.b 1*>)43219".#$#(.-M1*>07@2Ns+%#@0+!"%$O$0%-?1>07%60#$#H1*,1*>)J6)"%(*7(D19"_1O@%-?1>04!!$#$21*]7>0I9> 1*>0\%60#$#4>)"(G P 53'E[FH>04>?".@)3Nr.bL&)(D1H6M\!%/0$#1*53 ]7O1*>0#@"(W&0† !O@Q1*$#C;(W ".$#$M/0*532A?@03;1*#\#@1! P ".$sEK(* 1*>)".171*>0&)(*!4325(7@0.17-R!$".@C;1!/?"%*C32I(W&0/21O@%-(W P I32&0O@)+1*>0`>?".@)3Nr.bKEHFGC/0I!"%$O$#C ".$#$>)".@?3Ns%bnI( *5aQ&0O3;1* 6M`"%9>0# P 3:]7<1>0O@L"-R]jO$#$##(*!%@)30(E  Š -R!] O/M%*1".@Q1&)(* .-H*5".$ONm1O (*C(W1* (,O@{".*Q(W/?"%"./)/0$OI!".1*#%@)("%* " P #%@)#(!S'?O+>1=(*#=&0$I"_1O@S ".#*$##@0\".60#@f ".@)"%+%!@17(*C(W1* (!S)("_1!$#$OO1*\1"98Q#@0+(WC2(W1*(S0".@?3!%/0&21!7@2Ns6M"%3 ".@f".#!".-B1E   /       '  % qX@ "%@QC=232*@".#99"_-B1(S51*>07/)O$#.1!"%@(*!$#1".@ *".&01*,/0#$O%1 V%/21O@EŠV((*Q@"(1*>0H/0#$O%1G(W]7O19>)(1*\1*>) *".&01* /0#$O%1 30%S"%@e%@2Nr6?Q".93n!%/0&21!,1"%8%5(, P !"%$O$!%@Q1*%$I(,.-1*>0;"%O99"_-B1#@)$#&)32#@0+L@)" P #+"_1O@Sk1"%8%!Ns%bSZ"%@)3 $#"%@)32#@0+\.-)1>07".#!".-B1EqX@1*>) ".&21V/)O$#.1 4232%S.1*>07/0&21*[/?*#232I!".$#$#C`(*"%/)$O5( P !$#2O1DC`".@)3"%!!!$#!9"_1O@`.1*>0\".#!".-B1EK€0% 1*>)V("./0$#3;30".1")S1>04@2Nr6?Q".93 %/0&01*!H/0&21*5(SS2".@)3L.Nr%932#@)"_1([%-'1*>0,&)*!@Q1 ".#!".-B1/M(*O1*#%@v".@)3 !%/)".(1>0! ]7<1> 1*>0L/0NX(*/?5OA)3Y1*9"%98‡3)"_1")EjˆU-R*1*>)L@0^1:("./0$# P "%$O&)( ". %6219".#@03S0<1\%/0&01*(71*>0=30 P #".1*#%@-R% 1>0=(*/?5OA)3 1"98 P ".$#&0(4".@)3 1"%8%5(7".@C !%*5o1* P ,"%1*#%@)(71*>)".14 "hC 6?@)5(*(".C%EGqX@f1*>0I(J!"(WS21*>)=(*"%/0$O#@0+ %-1>0 P ".O&)(H/)"%"%!1*(S0".@)3 1>0!#J/02((*O@0+@031 6?=!%/0$#13 ]7<1>0#@f"-R]‹I(*!%@)3)(!E

Á / 5 3 9; 

 % 3: wK

=! / <!?



-(

`58%
 Š57 / › # / 9 /  ˆ! A> L> IK

wK

^>

<&!#&%4 3#& ¨&#&9-£!#:5 -( # <15 `5 b /  39;# <6

 $    qX/?W19".@Q1H&)(W,%-Z*5".$ONm1O,(WC2(W1*(U#@:&0$<1O532#""%@)3;qX@Q1**@)17"./0/0$#ON !".1*#%@)(U#@)$#&)32 P #32 %@0-R!!@)!O@0+".@?3 &0$O1*#532I"=&0$O1*I!"(D15S2qX@1!@01J%&01*!9(H".@)3(*]7<199>0(E   /        qX@‡" P #30!n!%@2-R*@)#@0+n"%/0/0$##"_1*#%@ZS P I32!c".@)3{"%&)32#n(W#+%@?".$I(`".;+%@0!9"_13d6Cd".!9"%(=".@)3{I%/0>)%@05(*!N (W/M1* P $OCE:FH>0:30".1"f".;("./0$#3e"_1="L!!*1".#@d/0*5(W/M!0(*;".1*>0@‡%/0((*3d".@)3e(*!@Q1

 % 3:

,

Version 2 CSE, IIT Kharagpur

"%(\/)"98%19(J11*>0 !! P !\ P \" @0!1D]*8kEŠU1,1>0*5! P WNr!@?3'S'/)"%9819(V"%*%932!3S32!%/0((W53'S".@)3n1*>)!@ /0$I"hC%3EFH>0,1O`!%@)(W1*9".#@Q1H".1U1>0 P !*Ns@)3 I(U1*>)".171*>0!! P &)(D1J/)*25(*(H"%@)3:/)$#"hC 1>0 P 3;-R"%5( "_14" /)*5321!#@053L%@?(D19".@Q1J".1*EHFH>&)(J<-[1>0O*1DC -R"%5(J".,1*:6?(W>0_]7@f P !C:#@&21*S)%@?="-R9"./0$I"hCQNs&21 #(7!%/0$#1%S21>0@0^1H-R9".=&)(W176?/)$#"hC3 ]7<1>0O@1D]U (W5%@?30(!E

"5 3%' /  &19;! / 53#&9 

@)(W&) $O5o1*@0#( "%*5"‡".6M%&)@)30( @Q&)*&)("./0/0$#I!"_1O@)( .-`".$ONs1*#d(WC2(W1*(EƒŠ -R!] (*"%/0$Oi"%/0/0$##"_1O@)(.-,*5".$ONm1OL(*C(W1* ( O@v!%@)(*&0! $O5o1*%@)#(;". L(*1WNs1*/ 6?h^2(SH".&)32#{aQ&0#/0!@Q15S qX@Q1*!@0!11!$#!/0>0@C%SGI_]U" P ; P @)(S[O@Q1*$O$##+%!@Q1 ]H"%(*>0O@)+n "%9>0#@05(!S>0%f(W5&0<1DC‡(*C2(D1! (S".# @)32O1*#%@0#@0+ ".@)3 -RO+!9"_1*#%@ZS1_C2(!S2".@?3!!$#$'/0>0@0(E

  

 % 3:

;(

`1& 35 3

        !$#$G/0>)%@05(`". /?Q(*(*#60$OCc1*>) -t"%(W1*5(D1=+*_]7#@0+L(*!+%@1.-J@)(W&)`!$#1*%@0I!(EfŠ $O$/0>0@0:"_1".@Cn/M%#@Q1=. 1*#=!"%*O5(U%&21V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$"32#".1*#%@E'qX@"7#((W#$#+%&0I30"%@)G(*C2(D1!fS5I((W#$O+%&0I30"%@)[I(Z"9>0O P 53V6C," /)&21*[&0@Q1*53@1*>07I(*(*O$#%EKFH>07%&)@13/0&21*G/0&21*5(1*>0V32 P I"_1*#%@-R%g1>07aQ&0#*53`1".zDo1%C ".@)3;bko19(1"989>?".@0+(%-'1*>0\#((*O$#J1=+%&)#32V<1H%@Q1`1*>)J1"%*+15EFH>0V1*#\!%@)(W1*9".#@Q1G%@;1*>0\%/0&01*!*Nr6)"%(*3 +%&0I30"%@)J(*C2(D1! #(G1*>)".11*>)V(*!@)(*O@)+=".@)31>0J1"98!%*5o1*#%@1"(W82(G=&)(W16M4"%1* P "_1*53-RaQ&0!@Q1$OC!@0&0+%>1=8%!/ 1*>0V#((W#$#J-R%Œ32 P !+%#@0+,-R% 1*>041"%*+1EKFH>041".+%!1(*!@)(*O@)+=".@)3 1*9"%98%o1O@1"%(*82(G"%*71DC/0I!"%$O$#C*5a&)O3 1*c6?L/0$O!1*53‡]7O1*>0#@Y"n-R!] >&0@?32*530(.-4I(*@)30(=% P @y$#((W`1OL32!/M!@?32O@)+c@‡1*>)(*/?3y.-J1>0 #((W#$#,"%@)3:1*>0,1DC/M.-1*>0,19".+%15E

5

 % 3:

W#*$9;1&:35 

# #:&

<# < 39;

!1%

¨&#:9;£!$#&5

   ˆU5(WI32(J1*>0"."%(J.-G"./)/0$OI!".1*#%@)(4".$#*5"%32C32#(&?(*(*3'SM".$ONs1*#`(*C2(D1! (J>?" P -R&0@)3 @&0!%&)(H%1*>0V"./)/0$OI!".1*#%@)(JO@L&0J P !C 30"hC $OO-R%E7Š4@L^0"./0$#`.-[(*&)9>i".@i"%/0/0$##"_1*#%@fI(J" 9".#$O]H"hC;(*! P "_1*#%@ (WC2(W1*E    /  ) $ 21 30")/ qX@ "V9".#$#]U"hC(*! P "_1*#%@(WC2(W1*SQ",!@Q1"%$2*/?Q(WO1**C` "%O@Q1"%O@?(1*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S)@0%1*>0#@0+;&0@Q1_]U"%3I(J+%O@)+1*;>)"%/0/M!@|~1*>0I(J "hC@0.146M`1>0="%(*`]7<1>f1*>0.1>0!\32#(&?(*(*3 "./0/)$OI!".1*#%@)(E

 % 3:

2#& "  $ / £!#:5

!1%

‚*

*



³ 

0 ¨ · ¹ ¶‚'¹`»  I¼7¿¾kÀÁ Œ3‚

ud=>)" P =".$#"%30C:/M%#@13L&2141>)"_1V1*>0I(V6?%8L!%@2A)@)(JO1(*!$O-1 1*>0(*.-B1D]H".#((W&)(J#@i"%$0,(W%-B1D]U"%*7I((W&05(#@ "/)*/?G/M!9(W/M1* P %S]UJ@031=>)" P 4"`6)"(WIJ!%@)!!/21&)".$M&0@)32(W1"%@)32#@0+ %-1*>0&0@)30!$OC#@0+ >?".932]U"%*EVud1*>0*!-R%=#@i1*>)#(,(*o1O@i1*Cf132 P $O/n";60"3L&0@)30!9(D19".@)32#@0+ .-G>0#+%>c$O P $I((W&05( 

Version 2 CSE, IIT Kharagpur

%-J1*>0&0@)30!$OC#@0+n>)"%30]U"%* #@Y"c*5".$ONm1O:(*C2(D1!fE{€0"c% 32!1".#$#3‡(W1*&)30C{.-J1>0 &)@)32!$#CQ#@0+c>)".932]H".;#((*&0(S ]U-R\1*>0"%30!V1*e 5rE€#+)E=Ž(*>0_]J(," (*O/0$#232$[.-" ".$ONs1*#(*C(W1*‰O@c1** (\.-<19(,O/M%*1".@Q1\-R&0@)1*#%@)"%$ 60$#2982(! E J@0$#((7%1*>0*]7I(W@1O@03S?".$#$Z&04(*&06)(*aQ&0@1430#(&)((*O@)(7]U%&0$I3O/0$##!<1$OCf"%((*&0`(W&)9>i"232$mE V6)(*! P  1>)"_1J#@L€#+)EŽ0S1*>)=(W@)(*%9(U"%*,#@Q1*!*-t"%!3 ]7<1>1*>0`#@0/0&014%@?32<1O@0#@0+ 60$#98kS2]7>0I9>fO@1&0*@fI(J@0@05o1*53;11*>0#@0/0&01 #@Q1*!*-t"%!%EFH>0%&01*/0&21,#@1!*-t"%!%Sk%&21/0&21`@)32O1*#%@0#@0+?Sk"%@)3L1>0 "%1*&)".1*%\".=#@Q1*!*-t"%!3nO@d" !%/0$#!!@Q1"%*Cf ".@)@0!5E qX@1*>),-R%$#$O_]7#@0+)S]U60O!)C:325(*!*#6?\1>0*$O5(U.-1*>0`32Obk!!@Q17-R&0@)1*#%@)"%$'60$O2982(H.-["*5".$ONm1O(*C(W1*

*

‚±

(

sensor

Input Conditioning Unit

Input Interface Real−Time Computer

Output Conditioning Unit

Human Computer Interface

Output Interface

actuator

2(

€#+%&0Ž [Š

operators @L232$.-K"

l ".$ONXFHO`“C2(D1!

Œ $5 /

0  Šw(W@)(W7%@ P !*1(H(W\/)>QC2(*#".$9>)"%"o1!#(W1*IJ%-O1(7@ P #*@0!@Q17O@Q1$O5o1*I!"%$k(*#+%@)"%$#(E[ŠJ@f^0"./0$#,." (W@)(*%H#(7"/0>0%1*%N P %$O1".I4!!$#$']7>0I9>!%@ P W19(G$#O+>Q1H@0!+%C#@Q1*!$#1*#".$k!@0*+C%E[Š ]7#30 P "%*#1DC %-Z1*/?".1*&0\"%@)3  /0((*&0*,(*!@)(*%9(H".\"%$#(*&?(W53'EŠ 1*/M!9"_1&0\(*!@)(*%U1DC/0I!"%$O$#C;%/M!9"_1(U6)"(W53:@:1>0/0O@)!O/)$O,.-K"  E  F!/M!9"_1*&)*(*!@)(*%9(U6)"%(*3 %@ ".@C;.1>0!7/)>QC2(*#".$k/0O@?#/0$O5(7".$I(W!^I(W1E[€07^0"./0$#%S2@0\1DCQ/M.-1*/M!9"_1&0`(W@2N (*%H!/0$#_C2(1>0/0O@?#/0$O\.- P ".#".1*#%@;%-!$#1*#".$k(*#(W1"%@)V]7<1> 1!/M!9"_1*&)*‚t".$#$O53  "    W…oEGŠ /0((W&)*\(W@)(W 1DC/0I!"%$O$#C4/?".1*(6)"%(*3,@,1*>0        G/0#@)#/0$#%ETG*5(*(*&0[(W@)(W(k6?"%(*3,%@%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1*.N P $<19".I$O$K".`@0* ".$#$#C #@L1*>)`O$#$O P $<19(79".@0+`".@)3L@)!31;6M@)32O1*#%@053f6?!-R%1*>)!Cf!".@L6M=/)*25(*(*36Cf";/)&21*EJFH>0`-R%$#$O_]7#@0+;". (*%`#/?W19".@Q1J1DC/?5(J%-[!%@)30<1O@0O@)+:!"%*O53%&214@L"h]”(*O+@)".$I(7+%@0!9"_136C(*!@?(W(J"%@)3L32#+%O1"%$(*O+@)".$I(7+%@0!9"_13 6C:!%/0&21!9(

– E

)( 058&!267!  Á%+ 3:#¨9;£!$#&5 B

„[%$O1"%+%"./0$#1*>)-R&0$#$(!".$# W( @)(*% P %$O1"%+%`&21*/0&01,]7O1*>n1*>0-R&0$#$(*".$# P %$O1".+`#@0/0&21\1* 1*>0#@1!*-t"%!=.-U":/0&21*E`€)%\^0"./0$#%S'" (W@)(W O+>1/)*232&)! P $<19".+U#@1*>)JO$#$O P $<19(["%@0+%S.]7>0*5"%(K1>0J#@0/0&21G#@Q1*W-t"7.-"!%/0&21!G "hC*5a&)OU1*>0J#@0/0&01 (W#+%@?".$k$O P $k1* 6M.-Z1>0%9327.-" P %$O1E

*0E 0 58&!267 Š 1 1 0/3# ˆ!$#*36 „[%$O1"%+% $O P !$H(*>0<-B1O@)+dI(.-B1*@YaQ&0#3d1*e".$##+%@{1>0 P %$O1"%+%;$# P !$U+%@0!9"_13{6C{" (W@)(*%7]7O1*>f1*>?"_1V"!/21"%60$#,1*1*>)=/)&21*EH€0J^0"./0$#%SM" (W@)(*%7 "hC:/0232&)! P %$O1"%+%,#@f1*>0`9".@)+%,NX‘0E\,`1  ‘0E\, P %$O1S2]7>0*5"%(U1>0O@)/0&21J#@1!*-t"%!\%-1>0`/0&21*7 "hC:"%!/01 P %$O1"%+%\%@0$#C;#@ 1>09".@0+\%-‘1 – P %$O1E[qX@ 1*>0I(7!"(WS1*>0`(*!@?(W P %$O1"%+%\=&)(W1J&0@)32*+$O P !$(*>0O-B1*#@0+ 6M-R%,<14".@6?&?(W53 6C 1>0`/0&21*E 

Version 2 CSE, IIT Kharagpur

 /  7"< 39 ) 368 0/3# ˆ!$#*36  ¸#& !$ / # <6

Ž)E



€0aQ&0@)CY"%@0+%i(*>0O-B1*#@0+‡I(;%-B1*!@j&)(W53 1*‡30&)f1>0n@0#(*  /M%@)!@Q1(VO@d":(*O+@)".$sE#@i".@C1DC/?5(V%-G@0#(*=2!!&0\O@c@)".*_] 6)"%@)30(,".@)3L1*>0(W#+%@?".$=&)(W1\6M(W>0O-B1*53L-R% 1>0 @0%I(*\6?".@)30(7(*1*>)".1J@0%I(*,".@6?,A?$<1!3 %&215E

#:6 32

5 < `5  / #:5

E 0  / %  1  C Šƒ1DC/?.-4(*#+%@)"%$G232!%@ P (*#%@c1*>)".1I(`-RaQ&0@Q1*$#Ce".*#3e&2130&0*#@0+d(W#+%@)"%$ @)32O1*#%@0#@0+{#@ P %$ P 5( 9>)".@0+O@)+e30O1 &0!@Q1;O@Q1‡".$O1*!@)".1*#@0+‡&0!@Q1:".@)3 P IN P ("0E‹ŠJ@0%1*>0;1DC/?c(W#+%@)"%$ 30J%@ P !9(W#%@1*>)".1GI(K-R*5aQ&0!@Q1*$#C=&?(W53#(!%@ P (*#%@.-'".@)"%$O+,(*#+%@)"%$#(K1`"`@)(W1".@Q1"./0$#O1*&)32V/0&0$I(WH1"%O@ (*&)9> 1*>)".171*>0=/0&0$I(W9"_1%7/0&0$I(*]7#31>L#(4/0%/M%*1*#%@)"%$?11*>0 P %$O1"%+%,$# P $mEH%@ P (*O@:%-K"%@)".$#%+ (*O+@)".$I(U1*;"/0&)$#(* 1*9".#@L#(V.-B1!@i@)5(*(".C;-RV#@0/0&01V1:(WC2(W1*(\(*&)9>n"%(   

  1*>?"_1\30:@0%1V/)"(*(V32O1 &0!@Q1E

! /  b5 / %' / 9-5 3: “9;# / 9 3# !

from Processor Bus

D/A register

D/A Converter

€#+%&0

 ([ŠJ@n±V&21/0&21JqX@Q1*W-t"

to output signal conditioning unit

=!$ / b29-  <#&!

   * "%$O$#C; "%@)30(U-R% 1>0UT ”"%*32$O P *53 1*1>0`"%1*&)".1*1>0%&0+>"%@&21*/)&21JO@Q1!*-t"%E Š4@{%&21/0&21#@Q1*W-t";@ P !*1(\1>0:(W1**53 P %$O1"%+%O@Q1n".@)"%$O+-R% ".@?3d1*>0@{%&21/0&21(`1*>0I(1L1*>):"%1*&)".1*%#!&0<1*CE FH>0I(7%-[!%&09(*\]U%&)$#3aQ&0#*\1*>) P ".$#&0+%@0!9"_13:1* 6M`]7*O1W1!@f%@i"!+#(W1*`‚t(*!=€#+)E …oEGqX@i"%@f%&21/0&214#@Q1*!*-t"%!%S0#@ 32U1*/030&)".@f".@?".$#%+=&21*/)&21S21>0UT ”(*!$#1(H"30"_19"!+#(W1*H.-Z1>0,%&21/0&21J#@Q1*!*-t"%!\"%@)3]7*O1*5(1*>0@055(*(".C 30".1"1i<15ELFH>0 1D]UL"%O@e-R&)@)o1O@)".$60$O2982(%-7"%@{%&21/0&21=#@Q1*W-t";".;(*>0_]7@eO@‡€#+)E EfFH>0;#@Q1*!*-t"%!1"%8%(=!". %-1>0=6)&2bM*#@0+:"%@)31*>)`>)".@?30(W>?".8%`!%@Q1*%$"%(*/?5o1(E7ŠJ@)"%$O+1*:30O+<19".$!%@ P (*#%@#(J-R*5a&)!@Q1*$#C30!/0$#_C%53 #@i".@L#@0/0&01 #@Q1*!*-t"%!%E“#O$I".$OCS032#+%O1".$1* ".@)"%$O+!%@ P (*#%@;I(H-RaQ&0!@Q1$OC;&?(W53 #@L".@%&21/0&21J#@Q1*!*-t"%!%E





qX@ 1*>0,-R$O$#_]7#@0+)S2]U32#(&?(*(U1>0O/M%*1"%@14(W1*/)(H.-[".@?".$#%+`1;32#+%O1".$(*#+%@)"%$%@ P ! 9(W#%@n‚mŠH…oE

Voltage

Time @1O@&0&)(HŠJ@)"%$O+„[%$O1".+

,£(

€#+%&0

<2:586A!$5 #:68#&!2 `5  / $#&5

5   1  B VO+<19".$G!%/0&21!9(`!"%@e@0.1`/025(*("%@)".$#%+L(*O+@)".$I(!E;FH>)!-R%%S".@)"%$O+(*#+%@)"%$#(,@03d1L6?:!%@ :

P W13i1*i32#+%O1"%$[-R%fE Š @)".$#%+(W#+%@?".$I(".@:6M@ P !*1*531* 32#+%O1"%$?-R*ƒ&?(W#@0+ "!O9&)<1*C ]7>0Q(W\60$#298;32#"%+%9".ŒI(U(*>0_]7@ O@f€O+?E2E 4(*O@0+1>0 4 60$#29830#"%+%9". (*>0_]7@#@:€O+?E[2SQ"%@)".$#%+`(*O+@)".$I("%*7@0* "%$O$#C!%@ P W131*=30O+<19".$0-R* 1*>)*&0+%>1>07-R%$#$#_]7O@0+`1D] ".#@ (W1*/)(



)(

¶,

“2"./0$#1*>):".@)"%$O+L(W#+%@)"%$J‚t(*>0_]7@eO@‡€#+)E %…,".1`*+%&0$I".#@Q1*! P ".$I(!EFH>0I(`(*"%/0$O#@0+i".@e6? 32%@0 6Ce"L!"%/)"%!<1% #!&0O1*C 1*>)".14(D1%(U1>0 P $<19".+%,$# P !$I(!EFH>0`(W1**53 P %$O1"%+%\$O P !$!".@f6M`32I(*!*!1*#p!3EGŠ7-B1!4("./0$#O@)+1>0="%@)".$#%+ (W#+%@?".$[‚t(*>0_]7@O@L€O+?E %…S0" (D1!/]U" P -R% "%(7(*>0_]7@O@L€#+)E #(7621"%O@)3'E

Š,



Version 2 CSE, IIT Kharagpur

Voltage

Time €#+%&0  [ŠJ@)"%$O+„[%$O1".+=%@ P W13 1;4I(*!*!1*`€)%

2(

Analog Voltage from signal conditions

Sample and Hold A/D Converter Data Register 16 Binary digits

o o o

1(

€#+%&0= G%@ P  (*#%@:%-"%@Š4@)".$#%+;“#+%@)"%$k1*;" – 60O1VˆUO@?".C



&06?

%@ P W1H1>0(W1**53 P "%$O&0=1*:";60O@?".C:@&0=6M!V6C &)(*#@0+:".@i"%@)".$#%+1:32#+%O1"%$@ P !*1*`‚tŠ>,H…V"%(J(*>0_]7@L#@i€O+?E S0"%@)3 (W1**\1>0`32#+%O1".$ P "%$O&0#@f"*+%I(D1!5E

VO+<19".$K1f"%@)".$#%+f@ P !9(*O@n!"%@c6M;!"%*O53i&21,1*>0%&0+>d"/0$O!@Q1"%*Cn(*1%-%/M!9"_1O@)(Eud $O5" P <1="(,".@ !^!#(* 1i1*>) "32!=1*iA?+%&0:&21=1>0301"%O$I(.-71*>)!O9&0O1*Cc1*>)".1".@‡/M!*-R% 1*>0f32#+%O1".$1*d".@)"%$O+i@ P !9(W#%@ ‚ JŠ4H…oE

  0·†3s Œ¨ ·¸ ¹`»“ I¼7¾kÀÁ ¨‚

ud@0_]{32I(*!&)(("H-R!]e8!CV9>?".9"%o1!#(W1*I!(k%-2*5".$ONm1O(*C(W1* (!EZFH>)(*G9>)".9"%1**I(D1#('32I(D1O@0+&0I(W>"%$0 *5"%32V "hCi@).1*1>)"_1="%$O$K1>0 32#(&?(*(*3d9>)".9"%1**I(D1#(4 "hCi@).16?;"%/0/0$##".60$# 1n P !Cn"%$Y".@‡@0%%&)(9".@)+%;%-4"./0/0$#I!"_1O@)(="%@)3{/0232&)1(1>)"_1" +!@0"%$O#p".1*#%@‡%-V1>0L9>)".9"%1*!I(D1#(=#@Q1*{"e(W!11>)"_1;I( "./)/0$OI!"%60$# 1e"%9> ".@?3y P !C‡(*C(W1* I( 32<†;!&0$<15% E 4Obk!!@Q1 "_1*+%*#(U.-K".$ONs1*#(*C2(D1! (7 "hC;^2>0#60O171*>09>)".9"%1*!I(D1#(G1>)"_1J]UI32!@Q1*O-RC;1;32ObM*@1J!^1*!@Q19(7%7 "hC:@).1J P !@ !^>)O60O14(*%,.-1*>0`9>)"%"o1!#(W1*I!(U"_1J".$#$sE – E

#&%49-5 ! / 2# =!

¨±

 * &  P *CV*5".$ONm1O[19"%(*84I("(*(*2I"_13\]7<1>=(*%K1*#@)(W1*9".#@19(!E V@0[-R% .-21*#G@)(W1*9".#@19( 1*>)".1#( P !Ci@cI(32"32$#O@05("%((W2!#".1*3n]7<1>d1"%(*82(!E Š 19"%(*8n32"32$#O@0 (*/?5OA)(\1>01*# 6?!-R%]7>0#9>d1>0 1"(W8c=&)(W1=/)$O!1*:"%@)3d/0*232&? 1>0;(*&0$<19(!E 41*>01DC/?5(`%-1O#@0+n@)(W1*9".#@19(".;32!$I"hCc"%@)3e32&09"_1O@ ‚m(W “1*#%@ – E .…oEqr1#(\1>0*5(W/M%@?(W#60#$OO1DCL.-1*>0 "%$)"_1`"%$O$K19"%(*8(\!!1

¶±

‚±



Version 2 CSE, IIT Kharagpur

‚±

1*>0OU(*/?5o1* P J  1*#,@)(W1*9".#@19(!EudV(*>)".$#$?!^0".O@)4#@:$I"_1*9>)"%/21*(G>0_] ".@ l F ,“;!".@:!@)(*&0J1*>?"_1G19"%(*82(G!!1 1*>0O7(*/Mo1 P \  1*##@0+;!%@)(W1*9".#@Q1(1*>0%&)+%>f"./0/0%/)*I"_1419"%(*8:(*9>)32&0$##@0+ (D1".1*!+O5(!E

*0E  =`5 /$/ 19}!&< &! / #&! / #&5  

FH>0=@0%1*#%@c.-G*1*@05(*(4O@c*5".$ONm1O(WC2(W1*! (V#(,32Obk!!@Q1V-R% 1>)"_1,&)(*3i#@ 1*>0!%@Q1*!^Q17%-Z1*9"%30<1O@)".$'(*C(W1* (!EKqX@*5".$ONm1O,(WC2(W1*! (S0*1*@05(*(O/0$##(H@0%1H@0$#C;$O+%I!"%$k!%*5o1@0((G%-Z1>0 *5(W&)$<19(!S260&01J1*>0`1*#"_1J]7>0I9>1*>0(*&0$O1(J"%*,/0232&)53#(7#/?W19".@Q1EUŠ”$O+%I!"%$O$#C:*17*5(W&0$O1J/0232&)53 ".-B1* 1*>0`30"%30$O#@0,]&0$I3:6M`@)(WI32*53 "(7".@O@)!%*5o1H*5(W&)$<15E

Actuators

Real Time Computer

Environment

Sensors

2(

€#+%&0  Šg“29>0 "_1*I l !/)*5(W@19"_1O@:.-[ŠJ@.G=6M303253 l "%$
q% Š <

Ž)E  ('    Š P "%(W1".zD%<1DC.-'".$ONs1*#7(*C2(D1! (G"%*7=6M303253O@ @?"_1*&)*` Ž_rEŠ4@;!6?5303253 %/0&01*!(WC2(W1*! #(/0>C2(*#".$#$OC W=6M30303 4O@<19(K!@ P O%@0@1K".@)3=.-B1!@!%@Q1*%$I(<15E€#+)E \(*>0_]J("\(9>0! "_1#G*/0(*!@Q1".1*#%@.-M".@ !6?530323(*C(W1*fEŠ4([(*>0_]7@O@€O+?E 0S.1*>07(*!@)(*%9(Z%-01*>)U"%$0H!@ P O%@0@15S /)"%((71>0! @f1*;1>0="%$0%/0&01*!5SMO@L1&0@i/)"%((*(J#@2-R* "_1O@‡‚R/025(*(*3 30"_19"…U1 1*>)"%1*&)".1*(H1:!"%*C:&2141>0=@)5(*(".C;]U%8:@L1*>0!@ P O%@)@Q1S)]7>)#9>L(*&0$O1(J#@n!%@Q1*%$#$O#@0+;(*% 9>)".9"%1**I(D1#(.-71>0!@ P O%@0@15Ee“2 P "%$G!^2"%/0$O5(=%-J!6?530323Y(WC2(W1*(]U!:32I(*!&)((W53{O@ “%E – E 2EeŠJ@ ^0"./0$#.-7".@d!6?530323e(*C2(D1! 1>)"_1`]U]&0$I3c%-B1*@d-R#(1*>0

 @L&)$<1
>

2K



\*

\*

 ˆ!  / # !$#&9-2&#&! $ b

E 0 )  9)  €0H1*9"%32O1*#%@?".$'@0@2Ns"%$0(*1D]UI((W&05(`".O@Q1*I!".1*!$#Ci6M%&0@?3n1%+1*>)! ".8#@0+1*>0          E %1*,1*>?"_1V"  (*C2(D1! #(J%@01>)"_1\32(7@0%1V!"%&)(*`".@C 30"% ".+%, P !@f]7>0@L<14-t".#$#(EUŠ (WC2(W1*!}%@f1>0 ' .1>0!>)".@)3SQI(U%@041*>)".1U".@;/?".1*J-R$#%@)+32&09"_1O@)(%-'1*#V]7O1*>0&21H^2>0#60<1O@)+"%@QC-t".#$#&0*5(!E[Š (*".-R1DCQNX<1#".$ (WC2(W1* I( *5aQ&0O3y1*y6?i>)O+>0$OCY*$OI".6)$OL(*O@)!n".@C{-t"%O$#&0L.-,1*>)i(WC2(W1*! !"%@ ".&)(*L^1!@)(* P i30". "%+%(E ud !$I".6M%9"_141>0#(J#((W&)\#@i“1*#%@ – E 2E

,0E ` 539  /R/  39 ) 

W/ 1:#& ¨&

C ˆE D

\,

Š *5".$ONm1O=(*C2(D1! &)(*&)".$#$OCf@030(41* *5(W/M%@?31* (* P !9".$O@)30!/M!@)32@Q1\ P !@Q19(J]7O1*>0#@ P !C(*>0%*1 ." @)3(W1*#1[1*#76M%&)@)30(EK€)%[#@)(W1".@?%SQ@)(WI32"\9>)!#".$2/0$I".@Q1G"%&21*".1*#%@(WC2(W1*}‚t(*! ^0"./0$# – %-'“5.E – E %…S ]7>0I9>@0<1%9(U1*>0=/0*+%((U.-[" 9>0!I!".$Z*5"%o1O@"%@)3f@1*$#(U1>0`9"_1.-K*5"%o1O@ 6C9>)".@0+O@)+1>0=32Obk!!@Q1 /)".9".!1*!9( %-`*5"%o1O@ (W&?9>j"%( /0((W&0%SH1!/M!9"_1*&)*S4".@)3j9>0!I!".$,@)@Q1*9"_1*#%@ZE FH>05(Wc/)".9".1!9(;". (W@)(*3;&?(W#@0+ (W@)(*%9(A0^253:#@:1>0`9>0I!"%$k*5"%o1O@ 9>)"%=6M!5EFH>)(*,(*!@?(W( "hC;+%@0!9"_1V30".1""%(*C@)9>0%@0&)(W$#C "_1K32)!-R%%S1*>)"%$0H(W@)(W(@)&0!@Q1*$#C%S5.1>0!]7#(* (W#+%@?".$I(K"hC=6?J$#(W1G".@?3=1>0J(*C(W1*  "hC= "%$<-R&0@?o1*#%@ZEFH>05(WJ(*C2(D1! (".@6?J!%@)(*I32!31*6M7@0@2Nr301**#@0I(D1#%S (W#@)!1*>0=6?>)" P OJ.-K1*>)(*C(W1* 30!/M!@)30(4%@f1>0=!^2"o1J1O#@0+;%-KO1(V#@0/0&219(!EJŠ @0%@2NX32!1*!O@)#(W1*I/)&21".1*#%@ #(J%@0#@L]7>0I9>f1D]&0@)(J&?(W#@0+1*>)=(*"%`(W!1J.-[O@)/0&21V30".1" ".@L/0232&),1D]U;32I(D1O@?o1V(*19(7.-[%&01*/0&21\30"_19"O@f1>0 1D]&0@)(E

\*

– ‘

Version 2 CSE, IIT Kharagpur

# )! / # ' Œ !$$ Œ1 '¨29%0­! / 39}!& /  

)E 5

qX@f"%@C;*5".$ONm1O,(WC2(W1*(S1*>),300(WC2(W1*! ." @)"_1&0"%$O$#Cn32I(W1*O60&01*3{"((\]7#32$OCe(*/0*5"%3c+%%+%9"./)>0#$#"_1O@)(!E:qX@‡(W&)9>{(*C2(D1! (!SZ1*>0 32)#".$#$OC(W/)".9"_1`$O2"_1*#%@?(!EFH>0*!-R%%S?1*>05(W P !@Q1(V "hC%-B1*@n>)" P 1*6?>)"%@)32$#3 $O2".$#$OCy"%@)3 (*/?@)(W5(/030&)53y1{1*>)! 1*‡/0 P !@Q1  P *$#"32O@)+c%-\1>0i&0@?32!$OC#@0+‡=&0@0I!".1*#%@ @01D]U%8kE FH>0!-R*S.1>0V(*!@)(*%9("%@)31*>0\"%1*&)".1*%9([ "hC6?V$O2!".1*53;"_11>04/)$#"(G]7>0!J P !@Q19(G".J+!@0".1*3EŠJ@ ^0"./0$# .-Z(*&)9> "(*C(W1*Œ#(H"/?!1*%$#!&0ƒA)@)!C/)$#"%@1H32I(D1*#60&213  P !U"=$I".+%4+%!+%9"./0>)#J"%*5"0EKŠU1U5"%9>:3)"_1"(*%&09SO1  ".8%5(U+%23 325(W#+%@f(*!@)(*\1* $#".$#$OC:/0*2!((G1>0`30".1"6?!-R%,6?O@0+ /?"%((W53:@:1;"!!@Q1*9".$'/)*25(*(*%5E

@i".@Cn30#(W1*O6)&21*53{"%(]U!$#$G"%(=!@Q1"%$O#p!53c"%$?" P  "-R!5326)"%98d(D1*&?o1*&)*;"(`(W>)_]7@d#@‡€O+?E  E:qX@ 1*>05(W,(*C(W1* (!SQ1*>)\(*!@)(*%9(&)(W&?".$#$OC (*!@)(*41>0\!@ P O%@0@1U/?*#232I!".$#$#C%E[FH>0,(W@)(W53:30".1"".6M%&21U1*>)V@ P #*@0!@Q1 #(J/0*2!((W53;1;321!#@01>0`*1* P "%1*#%@)(H@)5(*(".C%EFH>0*5(W&)$<19(7.-1*>0=/0*2!((W#@0+ ".,&)(W53 1*;!"%*C;&21 1*>0V@0!((*"%*C*1* P J"o1*#%@?(%@;1*>0\!@ P O%@)@Q11*>0%&)+%>1*>)\"o1*&?"_1*(S%]7>)#9>;#@;1&0@:".+Q".#@;!".&?(W4"9>)".@)+% 1*1*>)*5a&)O39>)".9"%1**I(D1#(G%-1>0`@Q1*%$#$O53;!@ P #*@0!@Q1S0"%@)3 (*%@E

Actuator

Sensor

Actuator Processing

Sensor Processing

Computation

Environment €#+%&0 2E

)E



 (€0326?"%98 “Q1*&?o1*&)*,.-

l 5".$ONrFH#“2C(W1* (

/ #&!#:9;2:# !

+ )  F"(W8<1#".$#<1DC`I(G",5"%(*&0*H%-M1>04!(W1.-M-t".#$O&07.-"\19"%(*8MEKF"%(*8O1*I!".$#O1DC`#(321!O@0536QC ^0".#@0#@0+4>0_]Y<1#".$2".G1>0H*5(W&)$<19(/)*232&)!3=6QC,1>0U1"(W8,1V1>0H/0%/M!-R&0@)o1O@0#@0+,.-01>07(WC2(W1*!fEKŠ *5".$ONm1O (WC2(W1*  "hC>?" P U1"(W82(%- P !C=32Obk!!@Q1U!*O1*I!"%$OO1*#(Eqr1#(1*>0*!-R%7@)"_1&0"%$21*=^2/?5o11*>)".11*>0V<1#".$#<1O5(.-k1>0 32ObM*@141"%(*82(7=&?(D1\6?19".8!@L#@1:@)(*#32".1*#%@f]7>0#$O32(*O+@0#@0+ -R%4-t".&0$O1WNs1*$O"%@)EUFH>)=>0#+%>071*>)O1*I!".$#O1DC .-V"n1"(W8kS[1>0*!$##"%60$O <1;(*>0%&)$#3y6?f "%32E‡€0&0*1*>)!5SG#@‡1*>) P @1.-\"i-t"%O$#&0 %-V"n>)O+>0$OC‡!*O1*I!"%$U1"%(*8kS O30#".1*,-t".#$#&0*`301*5o1O@i".@)3 P !C ".O/M%*1".@Q15EG•J_]U P !5S2<1V(*>0&0$#36M`".$##p!3:1*>?"_1J19"%(*8;/0O*O1DC;I(J" 32ObM*@1\%@?!/014".@)319"%(*8 O1*I!".$#O1DC 32(4@0.1\(W$O$OC321!#@01>019"%(*8:/0O*O1DC:71*>)`%932!7#@i]7>0I9> P ".O&)( 1"(W82(H".\1*6?!^2&01*3e‚R1*>05(WI(*(*&05(7(W>)"%$O$'6M!$I".6M%9"_13 O@ 1*>)$#".1*!J9>?"./21!9(…E

!57% ¶ / " / 

     ŠY".$ONs1*#U(WC2(W1* I(.-B1*@=#/0$O!@Q1*53=@=&)(W1*”>)".932]H".[1*>)".1I((W/M!07/0&)*/M(*%EK€0[^0"./0$#%SQ"\!!$#$0/0>0@0J32(@0.1&)(*U1*9"%32O1*#%@?".$2#!*/0!((W(E$O$2/0>)%@05( &)(*/)*25(*(*%9(V]7>0#9>{"%*1*#@C%S(*&0/0/M%*1*#@0+L@0$OCi1*>0Q(W/02((*O@0+f!"%/)".6)O$#<1O5(\1*>)".1=".*5".$#$OCL@055(*(".Cf-R%`!!$#$ /0>0@0V/?".1*#%@:"%@)3(W/M!0,!"%/)".60#$#<1O5(%-Z1>0 /0!((WV&?(W53c#@{"f!$#$/0>)%@0;"%* (*&06)(W1".@Q1#"%$O$#Cn32ObM*@Q1-R*‰1*>)".1`.-7"+%!@)!9".$[/0&0/M(*/)*25(*(*%5EŠJ@0%1*>0 ^0"./0$#=I(41*>0!6?530323n/0!((W4#@c"%? @ @iTG€q4".5EVqX@i1*>0I(,!"%(*%SM1>0/)*25(*(*%4&)(W53i@03n@0.1\6? ";/M_]U!*-R&0$ +%@0!9".$/0&0/?Q(W/02((*%,(W&)9>d"%("TK!@Q1*#&0‰,"%@dŠU1>0$#%@d/0*2!((WE=“%-G1>0Q(D1/M_]W-R&)$K!%/0&21!9( &)(*3{#@ @iT€q@0+%#@05(=". – _NVŽ hNr60<1/0*2!((W(&0@0@)O@0+c"_1"%/0/0h^2O "_1!$#C ? ‘ @i•4p%Ec•4_] P S&0@0$#O8;1>0 @ P !@Q1*#%@?".$?THU(!S2"/0!((W&?(W53;#@:1>0(*!".U!@)+%#@0(H32@0.1J325".$k]7O1*>/0*2!((W#@0+`-R#$O$I(7(W&?9> "%(H(!@2Nr(" P ( %U"32p!@;.-30)\(".J1OEŠJ$#$?1>)"_1U1*>)V/025(*(*%O@". @ @iT€qG(WC2(W1* @)!3)( 1* 32I(H1* /0&21*,1>0aQ&0#*53;-R&0$#@_zD1*#%@f".1*\1*>?"_1JI(HQ(D17!† !O@Q17-R%J"+% P @(*/?3f".@?3 "!$O".1*#%@E

*

 129;!# 1  nl E Á



¢DMC

vC

"%$0I9>e"%@e%@2Nr+%O@0+f#@Q1*!9"%1*#%@ 6?!1D]!@1*>)=/)&21*V".@?3:1>0`@ P #*@0!@Q1JI(J ".#@Q1".#@053'E V932#@)".C:(*C2(D1! (J/0&21*`-R&0@)o1O@)(J@1*>0`#@0/0&01

¸±

–%–

Version 2 CSE, IIT Kharagpur

30"_19"L1n+%@0!9"_1 1*>) &21*/0&0130".1" ‚m“ €#+)E – ‘Y‚t"…*…oEeqX@y%1*>0]U%930(S1*9"%32O1*#%@)"%$U(*C2(D1! (%/0&01*;1>0%&21*N /0&21 30"_19"n"((*% -R&0@?o1*#%@ .-71>0O@0/)&213)"_1")EdFH>?"_1#(S[%&21/0&21 30"_19"n".@‡ "_1>0! ".1*I!".$#$#Cd6M^2/0((W53‡"%( ‚ …oE[€)%G!^0"./0$#%S%O-Z(*%430".1" 7#(G+% P @;"%([1>04#@0/0&01S1*>0\(WC2(W1*!Œ/0&21*5( 7"( 1*>0,(*&0$O1 ‚ !…EFZ!$I".6M%9"_1J1>0#(7!%@)!!/215S0@)(WI32H"%@:!^2"%/0$O,#@ P %$ P O@)+"$O#609".C;".&21% "_1O@ (*.-B1D]H".%E qX@ ",$O#609".C`".&21% "_1O@(*.-B1D]H".%S_]7>)!@1*>0Va&)!C`6?8`-R&0@)1*#%@I([O@ P %8%53"%@)3 l 5".$ONrFH#J“C2(D1! ( ,I([@1!3 "%(41*>0#@0/0&216MQ8L@)".Sk1*>0@n1>0(*.-B1D]H".=32I(*/0$#"hC2( *Š4&21*>0,@)". l " E @i".$#$sS l "%98 &)=6M! V‘%‘ – S &)=6M!,.%/0#( – )E

          !   



>

( K

φ

input data

;(

Starting Parameters

output data

A>

$(

MK



(

Reactive System

Traditional System

(a)

(b)

(

€#+%&0 – ‘ KF9"%32O1*#%@)"%$ P !9(*&)( l "o1 P ,“C2(W1*( qX@ !%@Q1*9"%(W11*d1*>0f1"32O1*#%@)"%$J%/0&01"_1O@Y%-41>0L%&21/0&21:"( "d(*#/)$O-R&0@)1*#%@ .-\1*>)#@0/0&01:30"_19"0SU*5".$ONm1O (WC2(W1*([30@0.1/0232&)!J".@C`%&01*/0&21U30"_19"V6)&21G!@Q1!#@Q1*".@%@0Ns+%#@0+V#@Q1*"o1*#%@]7O1*>1*>)!#!@ P O%@)@Q1EqX@5"%9> O@Q1!9"%o1O@:(W1*!/ZS1*>0\*5(W&)$<19(U!%/0&213".4&)(*3:1*!"%*C%&21J(*%\"o1O@)(G@;1>0,!@ P O%@0@15EFH>)\"o1O@;.1*>0!@ P O%@)@Q1J#(\(*"%/0$O53L".@)3fI(4-R3L6)"98;1;1*>)(*C(W1*fEJFH>0!-R*1>0!%/0&219"_1O@)(J#@i";"%$0I(J"%1* P @)".1*&0`%-K"%$)! "_1#".$#$OC(W>0_]7@L#@ 1*>0`€#+)E – ‘f‚t6?…oE

­!$ ¨#&&#&! D 7C  9-$ 
' ), J@)30! P *$#"3L@)32O1*#%@)(S'*5".$ONm1O(WC2(W1*(\@03n1*L@Q1*#@Q&)=1 !!1,1*>0 325"%32$#O@)(,.-G1*>0(W1 – ‘0E 0 <1#".$219"%(*82(!S1*>0&0+%>1>04325"%32$##@0(G.-@0@2Nr!*O1*I!"%$21"(W82(G"hC@0.1U6?4!1EFH>0I(I(#@:!%@Q1*9"%(W1[1*1>04aQ&0#!!@Q1 .-     -RH1*9"%32O1*#%@?".$(*C(W1* (H P @ &)@)32!7 P !$OQ"%3;!%@)30<1O@)(!E

–– E

"

@n".@Cf*5".$ONm1O(*C2(D1! (\]*8%&0@)32Nm1>0NX$#298f"%@)3L%-B1*!@d%/M!9"_1=]7O1*>0&21,>Q&)"%@n/2N !9"_1%9(!E€0%H!^2"%/0$OS0@)(WI32H"(*"%$O$"%&21* "_1*53:9>0#".$k/0$I".@Q1H1*>)".1HI(7(*17&0/ 1*]*8@0@2NX(D1%/EKuv>0@:1>0! ".,@0 >&0 ".@L%/M!9"_1%9(!SQ19".8O@)+;%o1 P "%o1O@)(7@f"-t"%O$#&06?55(J32O†;&0$O14 E  P !@f<-[@0;!%*5o1 P ,"o1O@)( !"%@6MJ#532#".1*719".8!@S.O1GI(325(W#"%60$#H1*>)".1G"\-t".#$O&0J32(@0.1(*&0$O1O@;"_1"(D1*/0>0IH(WO1*&)".1*#%@)(EKŠ -t".#$O&0J(*>0%&0$I3 6?32!1*5o1*53f".@)3;1*>0`(*C2(D1! (*>0%&)$#3 %@Q1O@&0\1*/?".1*\O@f"+%9"%!-R&0$#$OC;32+%9"%3253;232,".1*>0U1*>)"%@(*>&21W1O@0+%b ".60&0/21$OCE

¾Á0»}Y=À º

‚))#¶)I=À

qX@1*9"%30<1O@)".$0(*C2(D1! (!SQ(*".-R1DC="%@)3*$OI".6)O$#<1DC".H@0% ".$#$OC=!%@)(*I32!3=1*6M7O@?32!/M!@)30!@Q1GI(*(*&0(Eqr1#(K1>0!-R*H/M((W#60$# 1I32@1<-RCc":1"32O1*#%@)"%$K(*C2(D1!‰1>)"_1I((*".-R"%@)3c&0@0!$##"%60$O "%@)3n(*C2(D1! (\1*>)".1`".!$##"%60$#60&01`&0@)("_-R%E;%@?(WI32!\1>0 -R$O$#_]7O@)+ 1D]:^0"./0$#(E4Šg]U%93f/02((*O@0+ (W%-B1D]U"%* "hC@0.1\6? P !C*$OI".60$#`60&01\I(4("_-REVŠw-t"%O$#&0=%-[1*>0(W%-B1D]U"%* 325(J@0%14&)(*&)".$#$OCf!"%&)(*=".@C (*#+%@0OA?!"%@Q1430". ".+`%JA)@)".@?I".$Z$#((EUqr1V#(J1*>0*!-R%=".@L!^2"%/0$O=.-".@L&0@)*$OI".60$#`60&01V(*".-R (*C2(D1!fE V@i1>0.1>0!,>)"%@)3'S" >)".@)3c+%&)@c!"%@n6M&0@)("_-R60&21#(,!$#I".60$#%E`Š >)"%@)3i+&0@c9".!$#C -t".#$#(EŠ >)".@?3n+&0@nI(,".@ &0@?(*".-R:(WC2(W1* 6M".&)(* <-JO1`-t"%O$I(-R=(W;*5"%(*%@S<1!".@{I(DA?* ` P !@{^2/0$#232:"%@)3e!".&?(W:(*#+%@0OA?!"%@Q1=30". ".+%Eqr1 I(,".@n!^0"./0$#%-U".@c&0@)("_-R60&21!$##"%60$O(*C(W1*fE=FH>0(*1D]^0"./0$#(,(*>0_]”1*>?"_1,-R%\1*9"%30<1O@)".$K(WC2(W1*(S("_-R1DCi"%@)3 !$##"%60#$OO1DC ".V#@)32/?@)32!@Q1J@)*@?([| O1UI(1*>0*!-R%V/M((W#60$#41#@)!*5"%(*71*>0("_-R!1DC .-"(WC2(W1*!ƒ]7O1*>)%&21J"_bk1*#@0+<19( !$##"%60#$OO1DC:".@?3 P I P ("0E



qX@f".$ONs1*#`(*C2(D1! (H%@f1>0.1>0!4>)".@)3S?("_-R1DC ".@)3f!$##"%60#$OO1DC:".`&0/0$#3 1*+%!1*>0EGˆU!-R%`".@)"%$OCp!#@0+]7>C ("_-R!1DC "%@)3e*$OI".6)O$#<1DCd". @0L$#%@0+!`#@)32/?@)32!@Q1=I((W&05(`#@{*5".$ONm1O;(*C2(D1! (!S]U @0!53d1*LA)9(W1=&0@)32(W1"%@)3d]7>)"_1^0"%1*$#CnI( –

*

Version 2 CSE, IIT Kharagpur

b 2#:   b.!£!$ E N €&Z;V[ ‡ˆOwZ$€ T0OQSxZ$SQT}€ ZOxP$OxSQT}U V OY2rRTo‚p;V XvpLV €¨T}r$SQT}|~T]Lo‚pRT}r0SFpRT0OQPROQSQT;Uª€&Z;V[ O$m=rR?]ZUqZ-T‚os u-[ ] |~T)O)u-[ S)„

"%@Q1H6C"

F+% P ,".@^0"./0$#%S1>0,-t".#$0!41>0`322&)@Q1J6?O@0+/025(*(*3 >)"(76M!!@c(*" P 3%@Q1*1>0=32I(*8ME7Š4$O$1*9"%32O1*#%@?".$@0@L*5".$ONm1O`(*C2(D1! (J32;>?" P %@)`%J*,-t"%O$ONr("_-R`(W1".1*5(J]7>0I9>L>0!$#/ (*!/)"%".1*,1>0`I(*(*&0(4.-("_-R1DC".@)3f!$#I".60#$OO1DC |~ P !@LO-[":(WC2(W1*! I(J8@0_]7@1*;6M=&)@0*$OI".6)$OS)O1V!"%@i".$#]U"hC2(H6M` "%321 -t"%O$#@L"-t".#$)!@c1*>0%&0+>n!"%*!-R&0$1*9".@)(*<1\1*" -t"%O$ONr("_-R(W1".1*&0/M%@L"-t".#$#&0*S0O1J#(7/M((*O60$#\1*1&0*@L"%@!^1*!!$#C;&0@0!$#I".60$#`".@)3&0@?(*".-R`(WC2(W1*! O@Q1*;" ("_-R(*C2(D1!fEqX@  ".@C=1*9"%32O1*#%@)"%$)(*C(W1* ([1*>)#(1*9>)@0#aQ&04#([#@-t"%1-RaQ&0!@Q1$OC"%32/21*531*,1&0*@;"%@ &0@0!$##"%60$#J(WC2(W1*! #@1`"`("_-RJ(*C(W1*fE €)%,^0"./0$#%S%@?(WI32!," 1*9"_†;$O#+%>Q1`@1*$O$#!V1*>?"_1`@1*$#(41*>)?_]g.-1*9"_†;".1`" "3L#@1!9(W5o1O@E“&)/0/?Q(W1>0 1".† =$O#+%>Q1@1*$O$#!4-t".#$#(4-RaQ&0!@Q1$OCi"%@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0&21!H%@2Nr6M".93:"%@"%O99"_-B1U-t".#$I(!S0"-t".#$ONr("_-R,(D19"_1\ "hC;@).176?@0,]7>0! 1>0:@0+%#@0:I((W]7O19>053Nr.bnqX@y"c(*".-R1DCQNX<1#".$G(*C2(D1!fSK1*>0f".6?(W@);%-7-t".#$)".1("_-R!1DCe".@{@0$OC 6M`!@?(W&03 1>0*&0+%>#@)"(W53:!$##"%60#$OO1DC%EUFH>Q&?(!S2-R4("_-R1DCQNX<1#".$'(*C(W1* (H1*>0=#((W&)(7%-K("_-R!1DC:".@)3f!$#I".60#$OO1DC;6M!% #@Q1*!!$I"_1*53f| ("_-R!1DCi!".@d%@)$OCi6M!@)(*&03n1*>0%&)+%>n#@)!*5"%(*3i!$#I".60#$OO1DC%Eqr1=(W>)%&0$I3i@0_] 6? !$O5".,]7>Cn(*".-R1DCQNX<1#".$ (*C2(D1! (H@0!53 1*6?>)O+>0$OC *$OI".6)$OE  &)(W141* +% P ="%@i^0"%/)$O`%-1*>)=$# P $%-*$OI".6)O$#<1DCaQ&0#*53f.-("_-R!1DCNXO1*I!".$(WC2(W1*! (S'%@?(WI32!41*>0=-R%$#$O_]7#@0+?EV€0 %" @QC)CQNr6QCQNr]7O4"%O99"_-B15S(W1%-<19( P O1"%$?/)"%W19("%*V%@Q1*$O$#36C "=!%/0&21!5EKŠ4@C-t"%O$#&04%-'1*>0,@1*$O$##@0+`/)&21* I(,$#".$#C @0%1,"!!!/219".60$#%EFH>0(D19".@)3)".93L*$OI".6)O$#<1DCfaQ&0#*!@Q14-R\(*&)9>n"%O99"_-B19(4I(V".1\Q(D1 – -t"%O$#&0=/M! – ‘)C#@0+ >0&09(`‚B1>)"_14I(S?"O$#$#O@LC%"%(H%-K!%@Q1*#@&0%&?(H)CO@) +  …oEUuc`!^0".O@)>0_] ";>0O+>0$#C:!$##"%60$O`(*C2(D1! !".@L6M=32 P $O/?53 #@ 1>0@0^14(*1*#%@E



 "!#$ %#'&()+*-,.) +0/21

qr-C%%&f".,"%(*8%3;6QC:C%%&)U*+Q".@0#p".1*#%@ 130 P $O/"(*.-B1D]H".4]7>0I9>(*>0&0$#3 6M\>)O+>0$OC:*$OI".60$#%S2>)_] ]&0$I3:C%&:/)*23 1"9>0O P JO143i•J#+%>0$#C *$OI".6)$O\(W%-B1D]U"%*\!".@:6?32 P !$#%/M3;6QC;"32%/01*#@0+"%$O$k.-Z1*>0V-R%$#$O_]7#@0+=1*>0!\O/M%*1"%@11*59>0@0Ia&)(

/R/ 5 /

(

58# < 39;



 1    €0G"%9>0# P #@0+,>0#+%>*$OI".6)O$#<1DCS% P !C`/M((W#60#$OO1DC=%-'&0!@)!U%-M*%9(K(W>)%&0$I36?7#@0##p!53 3 &0O@)+/)*232&)1J32 P !$#%/0!@Q1J"%(H&)9>L"%(H/M((W#60$#%EFH>0I(7!"%@ 6M="9>0O P 53;6C:"%30%/21O@0+ " P ".#1DC .-K"%@)( K&)(*#@0+ 2 ]$O$ONs-R%&0@)303:(*.-B1D]H".4@0+%#@0!O@0+/09"%1*I(S&)(*O@0+ (*%&0@?3:325(W#+%@1*>)30%$#%+%#(S2"%32/21*#@0+(W&)<19".60$#=UŠV“ Y1*$#(S ".@)3(*@E



1 5    qX@ (W/0O1*\.-&?(W#@0+`1>046M(W17" P "%O$I".6)$OJ*%" P %I30"%@)H19>0@0IaQ&0(S ".@C*%9( D( 1O$#$' ".@)"%+%\1* !*!/O@Q1*1>0`232E[FH>0(*!*(@03 1*6M`321o13f".@?3 ! P 3'EKFH>0I(7!".@f6M`"%9>0# P 3;1* " $#"%*+V!^1*!@Q176C !%@)32&?o1*#@0+1*>)%%&0+>: P O]J(7".@)3:1*5(D1O@)+)E V@)!\*%9(H".\301*5o13'S)1*>0C:!"%@6M"(W#$#CA0^23'E





)(

/R/ 5 / !19}!$#&5 4 4%45 2

±

– Ž

Version 2 CSE, IIT Kharagpur

Œ3 !  †58: /  < 9- 



; "_1*1*J>0_] !1*I&0$#%&?(W$#C *%7" P %I30".@)!".@)3!%J32!1*1*#%@1*59>0@0IaQ&0(V".\&?(W53'S)O14I( O * * 1 ) & % " O $ # $ : C #  ? / Q  * ( * ( #6 0 O $ =  * 1 ; "%8%=" /)"o1*I!"%$Z(*.-B1D]H".`(WC2(W1*! !@Q1O!$#C *%*Ns-R*%EH€0!]”*%9(J(W1*#$O$/?(*#(W14 P !@i".-B1* P !"%*CO@0+f&21=1>0%%&0+>e* P #!]J(".@)3d1(W1*#@0+)E(*(".&)(*-t".#$O&)*5(!EnFH>?"_1=I(!S-t"%O$#&0(="%*:"%@0O-R(W1"_1O@{.-71>0 !*(4$#".1*@1,#@i1*>)(*C2(D1!fE`FH>0*!-R%`1*f"%9>)O P =>)O+>n!$##"%60O$#O1DC%S' P !@cO@d(WO1*&)".1*#%@)(\]7>0*!*(V"./)*5(W@15S 1*>0,(*C(W1* (W>)%&0$I3;6M\"%60$#41=1%$#!9"_1*41*>0V-t".&)$<19(7".@)3;!%/0&21\1*>0,*1(*&0$<19(!E[FH>0I(U#(H".$#$O53-t".&0$O1WNs1*$O"%@)E €)"%&0$<1*Nm1%$#!9".@)!\".@6?`"9>0# P 53;6C ".-R&0$#$#C;O@?%/M%9"_1*#@0+*532&0@)30"%@)CE

Legend: C1,C2,C3: Redundant copies of the same component C1

V O T I N G

C2

C3

Majority Result

(

€O+&0 –– “29>0 "_1*I l !/)*5(W@19"_1O@ %-F @ l qr14I(J!$I"_1 P !$#C (*O/0$#1:32(*#+%@i" >)"%30]U"%*,aQ&0#/0!@Q1J1;6M`-t".&)$<1*Nm1%$#!9".@Q1EHFH>0`-R$O$#_]7#@0+;".,1D] !1*>0230(41*>)".1 "%*,/M%/0&0$I".$#C &)(W53 1* "%9>0# P ,>)".932]H".J-t".&)$<1*Nm1%$#!9".@)!



3#&&!

1  † )!

;(

(

  0  +8 0 < ZqX@eˆqW“0F,Sk1*>0 (*C(W1* /M!O232I!"%$O$#Ci/M!*-R%(,(*!$O-G1(W1(,.-HO1(/?@0!@Q1(E J/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'6M-R% ":!/?".#,".@c6? !"%*#3i&219…EqX@e(*<1&)"_1O@)(,]7>0! 1D]G%4!%/?@0!@Q19(G".J$#O8!$#C=1`-t"%O$‚R%/030&)V!*@0!&)(K*5(W&)$<19(…S%1>0!@;+*5"_1!G"%&0@Q1(G.-32&0@?30".@)!O5( ]&0$I3 6M`aQ&0#*53;1;6M`O@?%/M%9"_1*53'EŠg$OO1W1$O1>0#@08O@0+ !".@L(*>0_]‹1*>)".1V"_1J$#"(D1 .@  – 32&)@)30".@Q1V!%/M%@0@19( ".VaQ&0#3:1*1*$O".1*(W#=&)$<19".@0%&)(U-t"%O$#&0(H.-@L%/M%@0@Q1E

±

Y*

q*

ŠV(4/)".31;>)".932]H".%S)(*.-B1D]H".,-t".&)$<1*Nm1%$#!9".@)!`#(4=&)9>n>)".932!J1* "9>0# P EJFZ:O@ P 5(D1O+Q"_1,1*>0*5"%(*%@f6?>0#@)3 1>0#(S$#1`&)(\A?(W1,30#(&)((\1*>)19>0@)#aQ&05(&0*@Q1*$#CL6?O@0+f&)(*3n1*L"9>0O P (W%-B1D]U"%*=-t".&0$O1WNs1*$O"%@)E=ud 321*>0I(,O@d1>0 -R$O$#_]7O@)+(*&06)(*1*#%@E





  0 *   * .)   #)  *    

  

  

-(

FH]U,!1*>0230(G".U@)_]y/M%/0&0$I".$#C`6?O@)+&)(W53`1`"%9>0# P U(*.-B1D]H".-t".&0$O1WNs1*$O"%@) N P (*O@/)*+%9".O@0+\".@)3! P !C 6 $#298n19>0@)#aQ&05(!EiFH>05(W;1D]L19>0@)#aQ&05(=".;(*O/0$# "30"./219"_1O@)(.-H1>0:6)"(WI19>0@0IaQ&0(=&)(*3e1i/0 P I32 >)"%30]U"%* 0 -t"%&0$<1*Nm1%$#!9".@)!%EKud`32#(&?(*(U1>0(*\1D]1*59>0@0IaQ&0(7#@ 1*>0,-R$O$#_]7O@)+)E

–



Version 2 CSE, IIT Kharagpur

  / $#&5

/ 586 / 2%'%'# <6

  ?   FH>0I(1*9>)@0#aQ&07I([".@"%3)"./219"_1*#%@.-?1*>0JF @ l 19>0@)#aQ&0U-R%[>?".932]U"%*G-t".&0$O1WNs1*$O"%@)E qX@1>0 N P !9(W#%@/0%+"%#@0+\1*59>0@0Ia&)%SQO@)30!/M!@)32@Q1G1*5". (32 P $O/ 32ObM*@1 P (*O@)(7‚ P "%$O&04.32/?@)30(%@1>0 32+%!\.--t".&0$O1WNs1*$O"%@)\*5aQ&0O3?…G%-"(*.-B1D]H".V/?@0!@Q1`‚R232&0$#5…EGFH>0,*532&0@)3)".@Q17232&)$O5(7".V&0@L@)&0!@Q1*$#C ‚t/?Q(*(*O6)$OCc%@d*532&0@)30"%@Q1`>)".932]H".5…oE FH>0(*&0$O1(/0232&)!3c6QCn1*>0;30) 232&)$O;"%* (*&062zD1*53n1 P .1*#@0+:".14&0@f1*#".@?3f1*>0=*5(W&0$O1V@L]7>0I9>L".zD%<1DC .-[1>0!%/?@0!@Q19(4".+*,#(\"%!/01*3EJFH>0!!@Q1*9".$I325" 6?>0#@)3 1>0#(,(9>0!#(41*>)".1\#@)32/?@)32@1,1". (V]&0$I3iO1,30)#9>i]U%&)$#3L6M!$#O#@)"_13i]7>)!@ 1>0f*5(W&0$O1(/0232&)!3Y6QCe1>0! ".(*&062zD5o13y1* P .1O@)+)EY•4_] P SK1>0#( (9>0fI(@0.1 P *C‡(*&)((W-R&0$HO@ "%9>0# P #@0+ -t"%&0$<1*Nm1%$#!9".@)!%SG"%@)3y1*>0f/0%60$#! !".@Y6?i".1W1*#60&213y1*                  “1"_1#(W1*I!"%$J*!$I"_1O@‡.-t"%O$#&0(7"%@)(H1>)"_14 P @ 1>0%&)+%>fO@?32 P I32&)"%$'1*5". (7]U%8%3 #@L#(*%$I"_1O@:1:32 P !$#%/ 1*>032)V32ObM*@Q1 P (*O@)(K-t"%O$?-R%#32@Q1*I!".$?*5"%(*%@)(EZqX@:.1*>)!G]U%930(S_1*>)V32ObM*@Q1 P (*#%@)([%-"`/M%@)!@Q1 (*>0_]g(*O#$#"%V-t"%O$#&0/?"_1W1!@)(E=FH>0I(\30Q5(\5".@n1*>)".1\1>0 32ObM*@1,232&0$#(32 P !$#%/M3i6QCL#@)32/?@)32@1`/)*+%9".!9(!S ".-B1*!,".$#$sSM!%@Q1"%O@LI32!@Q1#".$!*(EJFH>0="(W@-R%J1>0I(VI(V@0.1V-t".J1 (*!8MSM/0%+"%(7!%<1\!*(7#@L1>0(*=/)"%W19( %-"/0%60$#! ]7>)#9>1*>)!C;/M!9 P V16?`32O†;&0$O1H| "%@)3:]7>?"_17#(432<†;!&0$<171%@0\1*5". I(7&)(*&)"%$O$#C:32O†;&0$O171* ".$#$k1*5". (E “?S2#30!@Q1*I!"%$!*(! ".#@ #@1*>0Q(D1J/0$O!^"%@)3:$#"(D17&0@?32!9(D13 /)"%W19(H.-["(*.-B1D]H".,%/M%@0@Q1E

IHvDFDMC &H ¯H

Legend: TB : try block

component

input

TB1

TB2

TB3

TB4

result test

B£DMC

exception

result test

test

success failure

test failure success result

*£(

€O+&0 – [Šg“%-B1D]U"%*,€)"%&0$<1*NrF%$#!9".@?“29>0! 4(*#@0+ l ! P  *C ˆU$O2982(

9-5  /

ˆDFE+G iH IJ

:5 9

1   9 E G"9>c1*C ) / qX@{1>0:! P *Ci6)$O298e(*9>0%S1*>0 *532&0@)3)".@Q1/?@0!@Q1(".;!"%$O$#3 6 $#298!%/0&21(J1*>0=(".`@)3f(*&0$<1\"%(H1>0=%1*>0(76)&21VI(J#@Q1*!@Q1O@)".$#$OC ]7*O1W1!@i&?(W#@0+;";32Obk!!@Q1V".$#+%*O1*>)}/)".3 0 1 1>0 .1>0!\1*Ci6)$O2982(!EqX@ N P !9(*O@n/0%+"%#@0+)SM1>0;32ObM*@1 P !9(W#%@)(\%-U"f/M%@)!@Q1,"%*]7<1*1*@c6Cn32Obk!!@Q1 1". (%-\/0%+"%(S]7>0*5"%(#@ ! P *C{60$#298y32ObM*@Q1:".$#+%%O1*>0 (".f&)(W53 O@v32ObM*@Q1 1*C‡60$#982(E ŠJ$I(W?S#@ !%@Q1*9"%(W1`1*c1*>) N P (*#%@{/0%+"%#@0+n"%/0/0"%9>e]7>0*:1*>032&0@?30".@Q1!%/0#(".:&0@y!%@)!&0*@1$OCSKO@y1*>0*5 P N *Ce60$#298‡"./0/0"9>e1*>0Cy".c‚m"%((*>0_]7@‡#@Y€O+?E – …&0@y@0f"_-B1* ".@0%1*>0E{FH>0f(*&0$<19(=/)*232&)!3y6QC‡"n1*C{60$#298 "%*(W&060zDo13e1d"%@y"%/21"%@):1*(W1L‚t(*!f€#+)E – %…oEdqr-J1>0:1(W1-t"%O$I(S[1*>0@‡1>0 @)^11*Ce60$#298e#(1*#3'E{FH>0I(=I(*!N /M".1*3‡O@y"n(W5a&)!@)!:&0@Q1*#$1*>0 *5(W&0$O1=/0232&)!3{6Ce"L1*Cd60$O298e(W&?!5(*(W-R&0$#$OCe/)"(*(*(1*>0"%!!!/219".@)! 1*5(D15E .1*:1*>)".1 #@n€O+?E – ]U`>)" P (W>0_]7@c"%!!!/219".@)!1*5(D19(V(*!/?".9"_1*$OC:-R%,32ObM*@1V1*Cf60$O2982(71:>0$O/n&0@)32(W1"%@)3f1*>?"_1\1*>0=1*(W1(\". "%/0/0$#O53`1V1>0U1*C60$#982(%@)H".-B1*1>07.1>0!5Sh1*>)%&0+>O1["hC6MH1*>)H"%(*G1>)"_1K1>07(*"%1*5(D1I(K"./0/)$O#3=1*,"9>`1*C`6)$O298kE

*

*

*

ŠV(J]H"%(71>0"%(*]7<1> N P (*#%@f/0%+%9".#@0+)S21>0=! P *C;6)$O2982(4"%/0/0"%9>f".$I(*:32(4@0.1V"9>0# P ==&)9>i(*&)!!(( #@ /)* P I32O@)+!bM5o1* P \-t"%&0$<1*Nm1%$#!9".@)!%E[FH>0,"%(*%@ 6?>0#@)3 1*>0I(H#(4".+"%O@(D19"_1#(W1*I!"%$k!%*$#".1*#%@;%--t"%O$#&0(E,4ObM*@Q1U1*C 60$#2982(-t"%O$M-R%UI32!@Q1*I!"%$?"(W@)(G"(G]H"%(G^2/0$I".#@03:O@!"(WJ%- N P (*#%@ /0%+"%#@0+`"./)/0*Q"%9>EKˆU(*#30(S%1>0#(H"%/0/0"%9> (*&2bk!9(4-R%‰":-R&0*1*>0\$##O1".1*#%@n1*>)".1\O1`!".@c%@0$#Cf6?&)(*3n<-G1*>01"(W8L325"%32$##@0(,".=&)9>n$I".+%J1>)".@n1*>01"(W8i!%N –

,

Version 2 CSE, IIT Kharagpur

/0&01"_1O@i1O(‚tmE %E\1"(W82(V>)" P $#"%*+`$I"_^2<1DC0…Sk(*#@)1*>032ObM*@Q1V1*Cf60$#298(\".=/)&21V1 !^2&01*#%@i@0".-B1*!\1>0%1*>0 ]7>0@f-t".#$O&)*5(J2!!&0EHFH>0`! P *C;6)$O298 "%/0/0"9> /M(*(V(W/M!#"%$Z32O† !&0$O1DC]7>)!@L&)(*3f]7O1*>L"%$ P !C (*>0%*1V(*$#"98:1O‚RsE E\(*>0%*1V325"%32$##@0=".@?3i@)(WI32"%60$O=^2!&21*#%@f1O5…S"%(J1*>0=1*C6)$O2982(4"%*1*#3i%&21\%@0=".-B1*41>0 %1*>0J32"32$O#@05(H"hC:6?I(*(*3'EFH>)!-R%%S#@L(W&)9>f!"(W5(U1*>0$I"_1!H1*CQNr60$O2982(U&)(*&)".$#$OC %@Q19".#@ @0$OC (W8!$#1"%$232E 4-!%&09(*%SM<1I(4/M((W#60$#=1>)"_1\1*>)$I"_1!V1*CL60$O2982(\%@Q19".#@i%@0$#Ci(*8%!$#19".$232%S'/)*232&)!=@0$OCi"%/0/0h^2O "_1`(*&0$<19(V"%@)3 1>0!-R*\1"%8%,=&?9> $#((U1*#,-R%J/0&21".1*#%@1*>?".@ 1*>0,A)9(W171*C;60$#98kE

±





checkpoints







acceptance test









progress of computation

rollback recovery

(

€#+%&)* – Ž G>098/M%#@1O@)+"%@)3 l %$#$O6?"%98 l 5 P  *C

39" Š57#*=!$#*36 ¢Á57& '¨29 19;5 1  / ),



 >0598/?O@Q1*#@0+f".@)3n*$O$ONr6)"%98f P !C I(,".@0%1*>0,/?/0&0$I".\1*59>0@0Ia&)1"9>0# P -t".&)$<1*Nm1%$#!9".@)!%EqX@c1*>0I(\1*59>0@0Ia&)"(  1>0:/0&21".1*#%@e/02!530(S'1*>0 (WC2(W1*! (D19"_1 #(,1(W1*53e"%9>c1*#:"_-B1!=(*% "%@0#@0+.-R&0$G/0*+%((\O@{/0&21".1*#%@eI(  "%30%E,qX532I"_1*$OCi".-B1*," (D19"_1NX9>0981*5(D1(*&)!!!3)(!SM1*>)(W1".1*.-[1*>)(*C2(D1! I(V6?"%98%53L&0/c%@n"(D19".60$#(W1*"%+%:‚m(W €#+)E – ŽQ…oEKqX@ "%(*41>0V@)^1H1*(W1732(U@0.17(*&)!!!3S1>0(WC2(W1* !".@ 6?\ "%32V1*%$#$)\$I"%(W179>098/M%#@13;(W1".1*E ŠJ-B1*!7"*$O$#6)"98MS-R%ƒ"9>)98/?O@Q13;(W1".1*,"-R(*> /0&21".1*#%@!".@:6?,#@0<1#".1*53'E[FH>0#(19>0@0IaQ&0\#(U(*/MI".$#$#C &)(W!-R&0$sS O-1*>)!VI(H"=9>)"%@)41*>)".11>0(WC2(W1*!ƒ(W1".1*\"hC6M\!%*&)/21*53;"%(G1*>0,/0&21".1*#%@ /0*2!!3)(!S(W&?9> "%(U30".1"=!%*&)/21*#%@; /025(*(*%-t".#$O&)*E



¯À´A ¹`»  w¼7½ 40 k

ud`>)" P `".$#*5"%32C:(*!@1*>)".1V" ".$ONs1*#,19"%(*8:I(7%@)-R%J]7>)#9>LaQ&)".@Q1<19"_1* P !^2/0*5(*(*#%@)(H%-1O="%*@)!3031*;30(O6M O1(46?>)" P OE7FH>0I(4aQ&)"%@1<19"_1 P ^2/0((W#%@f.-K1O=&?(W&)"%$O$#C "%/0/M".9(7#@L1*>)-R%}%-";@)(D1"%O@Q1J@f1*>01O"_14]7>0I9>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O;6M%&)@)3'EfqX@{.1>0!`]U%930(S 1>0!VI(U@0*]U"%3 #@ !%/0$#1O@0+">)".93;"%$ "%>0"3 .-<19(H32"32$O#@0EKFH>)#(UI(7".@:#/?W19".@Q1H%6)(*! P "_1*#%@ "%@)3;1>0I(7]&0$I3;19".8%" !!@Q1*9".$k/)"%W17#@&0J32I(*!&)((W#%@)(H@:19"%(*8:(9>032&)$O#@0+O@1>0@0^171D]U9>?"./21!9(!E

¸# / % 12  #&%' 

/  P !C=A) "%$(*%\/0*532A?@03 32"32$O#@0\6?!-R%V]7>)#9> <17I( aQ&0#*531*`/0232&)!J<19((*&0$O1(E•4_] P !5S.&0@)$O#8%4"`>)".93*5".$ONm1OH19"%(*8MS P !@ ]7>0@;",A) "%$0O@O1([325"%32$##@0%S_1>0J(*C(W1* 32(@0%1K-t".#$mE[FH>0H$I"_1*U(*&0$<19([".*$OC=30#(!"%3253'EZqX@.1>0!K]U%930(Sh1*>07&21O$#O1DC`.1>07*5(W&)$<19(!%/0&2136C="VA)g*5".$ONm1OU1"(W86M!%(Kp!"_-B1*K1*>07325"%32$##@0%EK€O+?E – (9>0".1*I!"%$O$#C`(W>)_]J(Z1>07&21O$#<1DC %-1>0*5(W&)$<19(H/0*232&?36C:"A) "%$)".14<-1*>)*5(W/M%@)(* 1OH.-k"J19"%(*8^030(1*>)H(*/MOA)53325"%32$##@0%S_1>0!@1*>)U&01*#$OO1DC`.-?1*>0H(*&0$O1(6?55(p!!,".@)3`1*>0H(*&0$<19(K".U32I(!".93253'E





Utility 100% Deadline

0 €#+%&0 –

(

Response Time

J1*#$OO1DC %- l 5(W&)$<1J%-K"€O

l 5".$ONrFH#`F"(W8 ]7O1*>LFH#

€#* *5".$ONm1O19"%(*82(71DC/0I!".$#$#Cf"%6?&0@)3f#@i=&)$<1O30#""./0/)$OI!".1*#%@)(EJFH>0`-R$O$#_]7#@0+:".1D]U;^0"%/)$O5(J.-[A?* 1O,1"(W82(

(  # <15ž9;5  ˆ /  <9-#*36

*5".$ON

qX@ " P #32{%@0-R!!@)!O@0+e"./)/0$OI!".1*#%@S P #30!d-R"%( ".@?3‡1>0i"%%/)"%@CQ#@0+e".&)30O{". @ P !*1*53O@Q1*/)"98%19("%@)31"%@)(WO1W13:1*`1>0,*5 P !G P !U"=@0!1D]*8kEK•J_]U P !5S(*%4-R9".5(G "hC+%!1H32$#"hC3 "_1J32ObM*@Q1H@)30(732&0#@0+1*9".@)(*<17@"/)"98%1*Nr(*]7O19>053;@0!1D]*8;32&),1* @0+%5(D1O@ "_1J32Obk!!@Q1J@0232(E[FH>0I(7 "hC

      ! "#%$&'(%)% *+-,./10"1 $ %$& !2 23546*/ 7%$&$&*8 *9$&*$&* (% :; 0,.$&!#(=< >:,.$&!& %:; 0?-><@%><@8$&!&;$&$ *A8% %  3

– 

Version 2 CSE, IIT Kharagpur

*5(W&)$<1\O@ P ".CQ#@0+a&)!&0#@0+f32!$I"hC2(4!^/M!#!@)!3i6CL/)"98%!1(41*9" P !$#$#O@0+ ".$#%@0+320@n/)"98%19( 1*9" P (*1*>0(*"%:*&21*SK(*%;/?"%98%!1(`".@e19".8%:=&)9>‡*1O 1*>)"%@e1*>0 .1*>)!=/?"%98%!1(32&0 1i1*>) (*/?5OA? 1*9".@)(*#((*O@Y(W1*9"_1*+%C{&)(*3 "_1 1>0L@02325(!Ew‚*@i%f30#(&)((*O@)(%@Y1*>0I( I(*(*&0f#(;+% P !@YO@j>)"%/21* E … uv>)!@v" W19".#@:-R9".,#(J6?O@0+ /)$#"hC3'S2O-K(*%,/0!32#@0+-R"%`".* P 5(".171*>0!! P !5S1*>)!@1*>0I(H-R9".I(H.-K@0 &)(*,"%@)3 #(730#(!"%3253'B E V&0,1*1>0I(7*5"%(*%@S2]7>)!@L"-R"%\I(J32$#"hC3 6C:%\1*>)"%@f("hC;@0`(W5@)3'S0O1J#(4(W#/0$OC32I(*".9323 "_1H1*>)*5! P WNr!@?3;]7O1*>0&214!"%*CO@0+%&214"%@C;/0!((W#@0+%@<15E



2!1&:# !  3 $ ! /  9 # <6½5 ¶ <1% ½%45 1%' =!

1 0 9'     ()   %@)(*I32!:"y(*".1*!$#$#<1L1*>)".1:19".8%5(;/0Io1&0(;%-`".@v!@)!=C 1**<1%Ci".@)3e6M"% (<1=1*i"f+%%&)@)3c(W1".1*#%@{/0&21*-R9". 6Ci-R9".%EFH>0;+%%&)@)3c!%/0&21!`/)*25(*(*(,5"%9> -R"%[1*4A)@)31>0G/M(*O1*#%@)"%$Q32Obk!!@)!G.-)30*5(W/M1Z1*J1*>0OK/M(*<1O@O@=1*>0/0* P O&)( -R"%41301**#@0\1*>0, P !@Q1(U.-1*>0,@0!C%E[uv>0@:1>0,+%%&0@)3 /)&21*7#(H P !$OQ"%3253'S"@0]j#"%+%\ "hC 6?,!! P 3  P !@6?!-R%".@%$I32!H#"%+%,I(U1".8!@&0/-R%7/025(*(*O@)+)EqX@ 1>0I(7!"%(*%S1>0%$I327O ".+VI(H.-K@0%1H&)9> &)(*%E[•J@),1>0%$I32!7# ".+(U "hC;6?`30#(!"%3253 "%@)3:1*>0!!@Q1*$#C; P 3 O "%+%&0$#3 6M/0*2!((W53'E

€)%HA) "%$0="%((*!#".1*53 1*#6?&0@)30(71DCQ/)#".$#$OC "%@0+%V-R*}"-R!] O$#$#(*@)30(U1;(W P !9".$k>&0@)30*530(H.#$O$#Z(*@)30(E

Utility 100%

Deadline

0 €#+%&0 –

,£(

Response time J1*#$OO1DC:%-1>0 l (*&0$O1(JTG*232&?3:6C:";“.-B1 l ".$ONXFHOF"(W8;ŠV(JŠw€0&)@)o1O@%-KFH#

Œ5ˆ!Á12  #&%' †

0  / “2.-B14"%$)" P ,1O`6M%&)@)30(\"%((W2I"_13 ]7<1>L1*>)!fEJ•J_]U %" @)3A) "%$0J1O#@0+%@?(D1"%O@Q1(%@:(*.-B1U*5".$ONm1O719"%(*8(".J@0%1G^2/0((W53 "%(".6)(*%$#&21* 1>0`@)(D1"%O@Q19(U"%*,!^/)*5(*(*3:!O1*>0JO@1!(H%-Z1>0`" P "%+%4(*/M%@)(*\1*#5(7aQ&0#*53'E

P ! 5S0&0@0$#O8`>)"%3 P ".$#&0(EqX@?(D1"%3S

 3# b5 / %  5 / 9- 5 9;2! /

Š4@n^0"%/)$O.-"(W%-B1V"%$0*(*/?@)32#@0+=]U!6/)"%+%\#(U-R!19>053"%@)332#(*/0$I"hC%53;]7O1*>0#@L"!%&0/)$O\.-K(W5%@?30(H%@ 1*>0" P !9".+%E•4_] P !5S ]7>0@e<119".8%5((W P "%$#@&21*5(1*L32I(*/0$#"hCc"f*5a&)(W1*3c/)"%+%%S] (W1*#$O$32L@0.1=!%@)(*I32!,1>0;(WC2(W1* 1*f>)" P -t".#$O53'SZ60&01 !!$#C;!^/)*5(*(1*>?"_171*>)/?W-R* ".@?,.-1*>0`(*C2(D1! >?"%(732+%9"%3253'E Š4@0.1>0![!^2"%/0$OH%-k",(*.-B1".$ONs1*#U19"%(*8`#(G"419"%(*8`>)"%@)32$#O@0+`"\aQ&05(D1K-R%",(*".1*5(W P "_1O@=#@ "V9".#$#]U"hC(*! P "_1*#%@ "%/0/0$##"_1*#%@ZE V@);"aQ&0(W1-R%(*! P "_1O@cI(, "%32SZ1>0 *5(W/M%@?(W (*>0%&0$I3d2!&)]7<1>0O@ %‘f(W5%@?30(,%@d1*>);" P !9".+%E FH>0 (*/M%@)(*"hCn!O1*>06? #@d1*>0 -R* .-7" /)*#@Q1*3c1#981%`"%@e"%/?$O+%CL((".+%%@{"!&0@Q1.-&)@)" P ".#$#"%60O$#O1DCi.(*".1(E=ŠJ$O1**@)".1* P $OCS']O+>1`(W1".1*1*>0 @)(W1*9".#@1\%@c1*>01*I98%!1*#@0+ 1"%(*8i"%( VŠU1$#"(D1,O@e!"(W.-  ’}%-(*! P "_1*#%@ aQ&05(D19(!S1>0,1*I98%!17(*>0&0$#3 6M/0*2!((W53 "%@)3:/)*#@Q1*3#@f$O5(*(U1>)".@ .‘(*@)30(E



4*

(

*

,

17&)(7@0_] ".@)"%$OCpV1>0#/?"%o17%-1>0,-t".#$O&)*,.-["(W%-B1J*5".$ONm1O\1"(W8;1*!1V<19(732"32$O#@0S06C 1"%8Q#@0+1*>)`^0"./0$# %-[1*>0"%O$#]U"hC:*5(W P "_1O@1"%(*8kEJqr-[1*>)`1*I98%!1VI(J/0#@13L#@n"%6?&21 .‘:(W5%@?30(!SM]U-R!$Z1>)"_1V1*>0(WC2(W1*! I(4]U%8O@0+A?@0 "%@)3f+%!1V"-R!$Z%-K>?" P #@0+;621"%O@)3O@?(D19".@Q1V(*&0$O1(EHŠV(4"%$O"32C (W1".1*3S)#((*3L325"%32$#O@)(J%-(W%-B14*5".$ONm1O19"%(*82(J32;@0%1 (*&0$O1U#@ (*C2(D1!Œ-t".#$#&0*5(!EK•J_]U P !5S%1>0\&21*#$OO1DC .-Z1*>0\*5(W&)$<19(/)*232&)!3 6C;"(W%-B1U"%$ 1O"_-B1*41>0=!^2/0OCf.-[1>030"%30$O#@0"(V(*>0_]7@L#@c€#+)E – 2EVqX@n€O+?E – 2S?1*>0&21O$#<1DCf%-1*>0*5(W&)$<19(4/0232&)!3i"%* – ‘%‘’

*

,

,

– 

Version 2 CSE, IIT Kharagpur

O-/030&)53f6?!-R%1*>032"32$#O@0S?"%@)3i"_-B1!41*>0=30"%30$O#@0=I(J/?"%((W53:1>0=&01*#$OO1DCf.-K1*>0*5(W&)$<19(4(*$O_]7$#C;-t"%$O$I(J%bd]7O1*>L1OE €)%7(W%-B17*5".$ONm1OV1"%(*82(1*>)".1U1DC/0I!"%$O$#C;2!!&0HO@/09"%1*I!".$'"%/0/0$##"_1*#%@?(!SQ1*>)V1O6M%&0@?30(H&)(*&)".$#$OC 9".@)+%V-R* "=-R9"%1*#%@ %-K"(*@)3:1* "-R!]”(W5%@?30(!E

5 IÁ12 #:%' †

  / Š}@0@2Ns"%$ "%@Cc1Of6M%&0@)3)(!E U"%@yC%&{1>0O@)8‡.-V"%@C !^2"%/0$O,%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*9".#@Q1(EFH>0V1*#O@0+@)(W1*9".#@19(G"(G]UV(*>)".$#$k(W4#@;1*>)#(7“5o1*#%@ZSQ#@ -t"o17"./0/0$#C1*!*1"%O@: P @Q1(O@:"(WC2(W1*E[FH>05(WV P !@Q1( "hC6M\+%!@)!9"_1*536C1>0V1"%(*82(1>0! (*!$ P 5(G1*>)V@ P #*@0!@Q1 %-[1*>0(WC2(W1*!fE4Š4@n!^2"%/0$O=.-G(*&)9>i".@i P @1V#(41*>0 P !@Q14.-G"o1 P "_1O@i.-":%1*E l !=6M!V1*>?"_141>0*5(W&0$O1(4 "hC 6M +%@0!9"_13n".1`320-R% .-H"f(W#@0+%$#%@01O (*&0$<15Eud =&?(D1,A)9(D1/0%/M!$#C 9>)"%"o1!OpJ1*>) P @Q1(H#@f"(*C2(D1!fS21*&0@?32!9(D19".@)3:1*>),1*##@0+ 6M!>)" P #%7%-".$ONs1*#(*C2(D1! (!E





 !#     *

&( * )

    /   

Š4@‡ P !@Q1= "hCn6M:+!@0".1*3d<1>0!6QCc1*>) (*C(W1* !$#"(*(*0,-R%$#$O_]7#@0+1D]U1DC/M(

­!$#&%< 

 =! (

Á  5

 =! (

0

(

`O1(!@ P O%@0@15ELˆU"(W53d%@e1*>)#(@)(WI32".1*#%@S P @Q1(=".@{6M

 1   =“Q1*#=&0$#&)( P @19(,".+!@0".1*53i6CL1*>) !@ P O%@0@1".@?3d"o1%@c1*>);(WC2(W1*!fE FH>05(W P !@Q1(,".@ 6? /030&)53‡"%(*C@)9>0%@0&)(W$#Cy‚tmE %Ee"./M!O232I!"%$O$#C0…oEn€)%^0"./0$#%S"L&?(W/0((*O@0+c"L60&21*1*%@Y%@‡"i1*!$#!/)>0%@0(W!1 +%@0!9"_1(U"(W1*#=&0$#&)(U P !@Q1H1*"%1U@:1>0\1*!$#!/)>0%@0,(*C(W1*fEG“Q1*#=&0$#&)(H P !@Q19(".@f".$I(W6?,+%@0!9"_13:/?*#232#".$#$OCE Š4(7"%@#@)(W1"%@)S0%@?(WI32!U1>0/?*#232I(W@)(W#@0+.-1*>0,1!/M!9"_1*&)*%-Z1*>)*5"%o1%H#@f"@&)!$O5".7/0$I".@Q1E  1   l (*/?@)(W P !@Q1("%* &)(W&?".$#$OC{/0232&)!3‡6Ce1>0L(WC2(W1*! #@ *5(W/M%@)(*;1d(*%f(D1O&0$#&)( P !@Q1(E l  (*/M%@)(*J P !@Q1(U"%1@ 1*>0\!@ P #*@0!@Q1EK€0!^2"%/0$OSQ!%@)(*I32!H"=9>0#".$)/)$#"%@1H]7>0*4"((*%@:"([1>041!/M!*N "_1&0*U^0!!3)( – ‘%‘ VSh1*>)H(*C2(D1!g(*/M%@)30(6C=(*]7<199>0#@0+V%b 1*>0H>05"_1!5E•4!%S_1>0H P @Q1%-)1*/?".1*&0H^032#@0+ – ‘‘ ‹I(J1>0(W1*#=&)$O&)(\".@?3i(W]7O19>)O@0+:.be.-[1*>)=>05"_1*4I(J1>0=(*/M%@)(*%E l (*/?@)(W P !@Q1(V!".@L<1>0!\6M=/M!O232I %7"./M!#30#%E





Š4@v P @Q1: "hCY<1>0! 6?cO@)(W1"%@Q1".@)!%&?( %; "hC >)" P i!!*1"%O@ 32&)".1*#%@Ew€0:!^2"%/0$OSJ"{60&21*1*@ /0((  P !@Q1:I( 3 5(*!*#6M3c6QCn1*>0;30&0".1*#%@c-R%]7>0I9>d1*>0 6)&21W1%@e]U"(,8%/21`/0((W53'E;“%;".&01*>0(,".+%&)=1>)"_1=32&)".1*#%@)"%$[ P @Q1(". 2 "%$O$#C@).1U"`6)"%(*#71DCQ/M4%- P !@Q1SQ60&21H!".@:6?V^2/0((W53&)(W#@0+`%1*>0 P @19(!EqX@ -t"o1SQO1UI(/M((W#60$#J1@)(*#32G"=30&0".1*#%@  P !@Q1V"(4" %60#@)"_1O@%-[1D]: P @Q1( H":(D19".*14 P !@Q1V".@?3i".@L@)3L P !@Q1EV€0%V^0"./0$#%S?1*>)=60&21*1*@i/0((J P !@Q1V".@i6M 325(*!*#6M36C:" =60#@)"_1O@ %- (W1".*1760&21*1*%@L/)*5(*(x0".@)3 !@)360&01W1*@f/0*5(*(x0 P !@Q19(!E•4_] P !5S<1JI(7%-B1*!@L!%@ P @0O@Q1U1 19".#@ 1*>0\@0%1*#%@;%-Z"=32&09"_1O@)".$M P !@Q1EKqX@ 1>0I(G1^1S]UV!%@)(*#30!H32&09"_1*#%@?".$) P @19("("(W/M!#"%$M!$#"(*(G.-Z P @19(!E 4(*#@0+ 1>0`/0!$#O#@)".C:@).1*#%@?(4".6M%&014 P !@Q1(J30#(&)((*3f#@f1*>0I(4(*&06)(*1*#%@S?]=!$#"(*(*O-RC P ".O&)(H1DC/M(J%-K1*##@0+:!%@)(W1*9".#@Q1(7#@ (*&06)(*1*#%@ – E E – E



(



–



Version 2 CSE, IIT Kharagpur

  

  2

) *

*  +



       

% 

   *    

ŠŒ$I"%((*0321,#@1 1>0 32)".1".@c^2#(W1O@e"f(WC2(W1*S'6)&21`<1`".@e".$I(W >0!$#/c&?(\1*LaQ&0#98$#CL#30!@Q1*O-RCi1>0 32Obk!!@Q1,1*##@0+i!%@)(W1*9".#@Q1(41*>)".1=!".@c^2I(D1,-R% "f!"(W&?".$K^0".#@)"_1O@n%-U"/0%60$#!fEFH>)"_1I(!S#@{"%3030<1O@n16M1*1* &0@?32!9(D19".@)30O@0+4.-21*>)G6M!>)" P #%%-)"J(WC2(W1*ShO1".@="%$#(*7$O!1&)(]U%84%&01Z1*>)(*/?5OA?!".1*#%@.-)"J*5".$ONm1OG(*C2(D1!”"%!!&09"_1*$OCE Ve""%$)" P #%9".$'@)(W1*9".#@19(!E

!".@d60"32$OCn6?;!$#"(*(*
2T;|i€ 1|ˆUqZrvX T0X  r$OxSF|~Z;Vr$SQOYZ}|~TSFp$T0X  r$OxSF|~Z;Vr$SQO SFpRZ$SYZ}|~T"VU{};OMT]L2r0SFpRTL|…TO {}2rROxT}€<SFp$TOxP$OxSQT}U`„­T;pRZ$y;V 1|~Z[ X)2rROQSF| Z;VrSQO¸Z;|…TSFpRT0X 2rROQSF| Z;Vr$SQO SFpvZ$S†Z;|~T`VU{};OMT]L2r0SFpRT0OQSwVUu[ V -T}rRT}| Z$SQT] ‹ P0SFpRT0T}r$y;V|… r-U‚T;rS)„

ˆU! rel="nofollow">?" P #%9".$0!%@)(W1*9".#@Q1([@)(*&0*H1>)"_11*>0V!@ P O%@)@Q1.-Z"`(*C2(D1! @)(W&)*\1*>?"_171*>)`%/0&01*!J(*C2(D1! /M!*-R% (7(*".1*I(D-t"o1%O$#C%E "%9>:%-

C D  H}D

 IC".@)3



4$#"hCf%@)(W1*9".#@Q1



45"%32$##@0=%@)(W1*9".#@Q1



4&)".1*#%@i%@)(W1*9".#@Q1

#(G]$O$M6?>)" P 53'S%]7>)!"%(/?W-R* ".@?J@)(W1*9".#@19(

GIC   &HvD  @)(D1"%O@Q19(U".@ -R&0*1*>0J6?`!$#"(*(*OA)3 O@Q11>0,-R%$#$#_]7O@0+1>0*\1DCQ/M((

)(

ud@0_] !^/)$#"%O@1*>)(*V1>0!`$I"%((*(U.-[@)(D1"%O@Q19(

1&

LB

), Š 32!$I"hC{%@?(D1"%O@Q1"./21&0(=1*>0      1*#{‚m32!$I"hC0…,1*>?"_1 =&)(W1!$I"./)(*:6M1D]U!@y1>0 2&0*@) .-J1D]U "%*60O1*9".C P @Q1( "%@)3 .E`ŠJ-B1* 2!!&0(S'O- =2!!&09(V5".$O#!41*>)"%@n1>0       _S1>0!@e"32!$I"hC P #%$I"_1O@iI( (".I3;1 2!&)E[Šw32$#"hC:!%@)(W1*9".#@Q1U@:1>0 P !@Q1 !".@6M^2/0((W53:%V-R%"%$O$#C:"(U-R%$#$O_]J( 5







`B -C vE



   … 

 

 ‚ !… J"%@)3  

(





LB -C vE

uv>0* ‚ …G".@)3 ‚ …"%*H1>0J1OV(W1"%/)(@1*>0V P @Q1(   (*/?5o1* P $OC".@)3 I([1*>)       (W/M!)\ P @19( \]7O1*>*5(W/M11=1>0, P !@Q1 I(U(*>0_]7@ /0#1**I".$#$OC #@f€#+)E – 0EKqX@€#+)E – )S 32@0.1(V1*>)"o1*&?".$[(W/)".9"_1O@LO@n1*#6M1D]U!@i1>02&0*@).-1>01D] P !@Q1(! "%@)3 ".@)3c3iI(41>0*5a&)O3 #@0O&0}(*!/?".9"_1*#%@ 6?!1D]!@1*>),1D] P !@Q1(‚m32!$I"hC0…oEKqr1JI(7"(WC 1 (WV1>)"_" 1 ,&)(D1J2&0J".-B1*!J".17$O5"%(W143:1O&0@)<19( >)" P V$#"%/)(*3(W#@),1>02!!&0*!@?\.# - S2.1>0!]7#(*,](*>)".$#$'>)" P ,"32$#"hC P #%$I"_1O@E







>= d d t=0 €#+%&0 – 

1<:#*3

(

t(e1)

t(e2)

V!$I"hC@)(D1"%O@Q1JˆU1D]U!@FH]U 

LB

R*

P @19(H – ".@?3:

Š 30"%30$O#@0%@?(D1"%O@Q1\"./21&0(41*>0/M!I((W#60$#$ &%    (W/)".9"_1O@L6?!1D]!@e".@C1D]f".60O1*9".C  P @19( ELqX@‡%1*>0=]U%930(S1*>) (*@)3e P !@Q1 ‚tmE %E  …=&?(D1`-R$O$#_] 1*>0:A)9(D1= P @1‚RsE E o…]7O1*>0#@{1>0:/M!#((W#60$#  "_^2#=&0 (W/)".9"_1O@n1OEL@)(WI32,1*>)".1 ‚ …`".@)3 ‚  …".1*>0 1O:(W1"%/)(%@d1>0 2!&)*!@)!.-H1*>0: P @Q1(( "%@)3) ,(*/Mo1 P !$#C "%@)3 I(H1*>0    "%(J(*>0_]7@f#@f€#+)E – EGqX@i€#+)E – 2S 32@0.1(H1>0="o1*&?".$(*!/)"%".1*#%@6?!1D]!@ 1>0;1O;%-J&0!@)! .-H1*>0:1D]L P @19 ( "%@)* 3 .S[".@)3{3‡#(`1*>0:30"%30$O#@0%EiŠ}32"32$#O@0 %@?(D1"%O@Q1`#/)$O#(=1*>)".+ 1 

5

"%@)3

' 



  ;C 7C 





*.‘

Version 2 CSE, IIT Kharagpur



&)(D1\2!&)4]7O1*>0#@n3f1O=&)@0<19(4%!%@)(W1*9".#@Q1

(

 x (J2!!&0*!@?%E7ud".@i"%$<1!@)"_1 P !$#C (W1"_1`1>)"_1  ‚  …4".@)3  ‚  ‚ …  ‚ ! …

 h…7&)(W1V(*".1*I(D-RC1>0



  





<= d d t(e1)

t=0

£(

€#+%&0 – 

t(e2)

V"32$#O@0@)(W1*9".#@17ˆU1D]U!@FH]U;

R*

P @Q1(U – ".@?3 

FH>0,325"%32$#O@),"%@)3:30!$I"hC;%@?(D1"%O@Q1(U!"%@;-R&0*1*>)!H6?!$#"(*(*:6)"(W53;%@ ]7>01>0!U1>0%@?(D1"%O@Q1 I(HO/M(*3%@ 1*>)`(D1O&0$O&?(7%7@:1>0*5(W/M%@?(W, P !@Q1E[FH>0I(7>)"(H6?!@f^2/0$I".#@053:]7O1*>L(*%,^0"./0$#(H#@i“%EE 2E

\*

Public Switched Telephone Network (PSTN)

Telephone System

Call Receiver

Call Initiator Environment

2(

€#+%&0 –  “29>)! "_1# l /0*5(W@Q1"_1O@ %-" F!$#!/0>)%@0`“C2(W1*!

/ £!$#&5

 B Š‰32&)".1*#%@ %@?(D1"%O@Q1%@v".@  P !@Q1;(W/M!)f1*#L/M!#3  P !]7>0#9> 1>0L P !@Q1;"%o19(!E Š‰30&0".1*#%@ ! %@)(W1*9".#@Q1[".@!O1*>)!6MJO@)O&0 1DC/M7%[ "_^2#=&0 1DC/?EKFH>)7#@0#=&0 1DC/?V32&09"_1*#%@@)(W1*9".#@1[aQ&0#*5(1*>)".1G%@? 1>0: P !@Q1=(W1"%W19(!S1*>0  P !@Q1==&?(D1=@).1=@)3{6M-R%;"i!!*1".#@{O@)O&0 32&09"_1*#%@Z[]7>0!"(`"f "_^2O&0 1DCQ/M 30&0".1*#%@ !%@)(W1*9".#@Q1UaQ&0#*5(U1*>)".1J%@)!\1*>0 P !@Q1J(W1".*1(S1*>) P @Q1H&)(W1H@)36?!-R%" !*1"%O@ "_^2#=&0 30&0".1*#%@!$I"./)(*(E 5









  

* 2)+



    

 

       %

/  





  *-   

ud:#$O$#&)(W1*9"_1 1*>032ObM*@1$I"%((W5(.-71O#@0+n@)(W1*9".#@19(6Cc&?(W#@0+L1>0:!^2"%/0$O5(-R% "f1*$O/0>0@0:(*C(W1* 32#(&?(*(*3 #@j – sEcŠ (9>0! "_1#:32#"%+%9". .-J"f1*$O/0>0@0 (*C2(D1! #(=+% P !@{#@y€#+)E – )E %1* 1>)"_1q>)" P  #@Q1*!@Q1O@)".$#$OCe329"h]7@{".@ $#3Y(D1DC$#3y1*!$#!/)>0%@0S6M!"%&)(*O1(/?".1*#%@yI("(W#!1*d&0@)30!9(D19".@)" 3 Y•J!%SG1*>01!$#!/0>0@0>)".@)3)(W!1 "%@)3{1>0LT&06)$OI “]7O19>)3LF!$#!/0>0@0 !1D]*8c‚tT“0F …7"%*@)(*#32*53f"%(J!%@)(W1*O1*&21O@)+1*>0=!%/0&21!4(*C2(D1! ".@)31>0&)(*!9(J"%(H-R*#@0+ 1>0V@ P #%@0!@Q15EqX@:1*>0V-R%$#$#_]7O@0+?S]V+% P V"=-R!]‹(W#/0$O\^0"%/)$O\%/M!9"_1O@)(%-1*>0\1!$#!/0>0@0,(WC2(W1*! 1#$O$#&)(W1*9"_141>0 32Obk!!@Q171DC/?5(H.-1*##@0+;!%@)(W1*9".#@Q1(E

* –

Version 2 CSE, IIT Kharagpur

1<:#*3"9-5)! / 2#*=!&

5

#@{":"%$
qX@=1*>0-R%$#$O_]7#@0+?S]UU30#(&)((Z-R%&0K32ObM*@11DC/?5(%-)32"32$#O@0U@)(D1"%O@Q19('1*>?"_1K"hC,6MI32@10!1*>0,1*>01D]Uf P @Q1(\O@ P %$ P 3nO@{"f325"%32$#O@)!%@)(W1*9".#@Q1,"%*(W1*#=&0$#&)(\1DC/? 

­!$#&%< 0 !#:%(3* 8 00< qX@1>0#(G!"%(*%S.1*>07325"%32$#O@)7#([32!A)@0536M1D]U!@=1D]U(D1O&0$#mE[FH>0I(K#(["\6M!>)" P #%9".$2@)(W1*9".#@15S (W#@)!41>0\!%@)(W1*9".#@Q1UI(UO/M(*3:%@;1>0(W5@)3; P !@Q1H]7>0I9>:I(U"(W1*#=&0$#&)(EŠJ@:!^0"./0$#V%-".@f“0“1DC/M,.-325"%32$##@0 @)(D1"%O@Q1H#(U1>0,-R%$#$#_]7O@0+8( ‘ “— ¤7 =R’s§Á  ”2˜=¡v’“¤7}—£¦’2›‘2 1’“¤7 =$’›­R’­‘ª’- ‘  1 ’   ‘7œ;¢— ˜=¡}-–žœ;™R” •8¦--’2 ¡ ¤7}—£¦1¦2$ ¡;2œ;™;‘2¤8 ¡  ’- -–­-¡;›—;‘ v¤2¦›’2™}‘ ¬¡ •1–2™¤-˜=œ} ¤

0

qX@:1>0I(7^0"./0$#%S1>0`32I".$#O@)+1D]@)(W5&21 P 32O+<19(H*/0(*!@Q1(U1>0,1D](W1*#=&0$#'1*1>0,1*$O/0>0@0(WC2(W1*!fE

­!$#&%< ­  Š5 "8 0Œ

< qX@,1*>0I(Z"%(*%S!1*>0G30"%30$O#@0I(32!A)@03,@\1*>0(*/M%@)(*[ P !@Q1S5"%(*&034-R* 1>02!!&0*!@? .-U1*>0 %(*/?@)32#@0+(W1*#=&)$O&)(` P @Q1E FH>)#(I(="f/M!*-R% ".@)! %@?(D1"%O@Q1S(W#@)!1*>0:!%@)(W1*9".#@Q1#(#/?Q(W53d%@{" *5(W/M%@?(W\ P !@Q1E[ŠJ@L!^0"./0$#\%-"%@L“ l 1DC/M.-[32"32$O#@0@)(W1*9".#@17I(U1*>0,-R$O$#_]7#@0+

0

( 7‘ œ;’ ¢–2 ;œ  R¥2-– ™-š“’2›2—;‘2¤¬¡;-’W¡¢¦ vš’£¤s§’ ¢¤7v—£¦’2™;‘ '” ˜=¡R’ Ÿ2¢•£–£™¤-˜=œ;-¤ Ÿ£©“’ ¯¡v©7¡v’£R” ­$’­$‘ ¬¡; ;œ ™}‘2¤8¡<§ ™;’ -–=¡;›—›Ÿ 1;•=$‘¬¡;™;˜‘2¤¬¡4•£–2™¤-˜7œ;¤ ˜1‘1’=;¦’  —;‘£¤8¡;-’ž¡ –2;• ¦— œ;¤



qX@1*>)#(^0"%/)$OSh1*>0$OO-B1*#@0+\.-01>0!! P Z>)"%@)3`(*1!/)*5(W@19(Z"\(D1O&0$#&)(1J1>0G1!$#!/0>)%@0H(WC2(W1*”"%@)3/0232&)1*#%@ .-1*>0`32I".$1*%@)\I(U1*>)*5(W/M%@)(*%E

Á  50­!$#&%<  8QA0<

•J*;1*>0:30"%30$O#@0;I(`@e1*>0 /0*232&?o1*#%@e%-J*5(W/M%@)(*;&0@Q1*53d-R* *1 >) *(*/M%@)32#@0+ D( 1O&0$#&)(!E\FH>0I(4I(V":6?>)" P O"%$Z@)(W1*9".#@15S?(*O@?`1>0%@?(D1"%O@Q14I(4#/?Q(W53L%@i1*>0(D1O&0$O&?(4 P ! @Q15EVŠJ@c^0"./0$# .-K".@ l “:1DCQ/M.-[325"%32$#O@),!%@)(W1*9".#@Q17#(U1>0,-R%$#$O_]7#@0+

8( 7‘ œ;’  ¤7}—£¦’2™}‘  —;•1• 1—;–7¡<§Á’2 š8R–7¡v’“¤77R’4” ˜=¡v’¢Ÿ  ¤7}—1¦¤­R’-­$‘ª®1°¬¡; œ;™}‘2¤8¡<§ ™;’ -–=¡; ’2 ¡v©8¡v’2R”ž;‘1’2-–7¡ —;‘ v¤2¦-ª¡v’2—-’2 —;‘£¤ª—}‘v¤£¦›’2™;‘ ¬¡4•£–2™¤;˜=œ;¤

Á  5  Á  Š5 $ 8xÁA<2 ŠJ@ lJl 1DCQ/M.-H32"32$O#@0 @)(W1*9".#@1\#(30A)@053d%@i1D]U*5(W/M%@)(* P @Q1(EqX@c1*>0I(!"(WS 

%@)!41>0\A)9(D17(*/?@)(W\ P !@Q172!&)(SQ1*>0(*@)3 *5(W/M%@)(*\ P @Q1U&)(D172!!&0H6?!-R%"!!*1"%O@32"32$O#@0EFH>0#(HI(H" /?W-R* "%@)=!%@)(W1*9".#@Q1S'(*O@)!`1>01*##@0+f@)(D1"%O@Q14>?"%(\6?!@d32A)@)3i@c":*5(W/M%@)(*= P @15EŠJ@n!^0"./0$#%-G".@ lJl 1DCQ/M.-[325"%32$#O@),!%@)(W1*9".#@Q17#(U1>0,-R%$#$O_]7#@0+

8( ‘ 7œ;’ ¢–=$‘ ’2™}‘ ¬¡=R¥2;‘“’2™¢’ ¯œ;—1¦1¦1 §’- ¯œ;™-–1–22¡R• ™;‘2¤8$‘4–=$‘¢Ÿ — œ“’£™;‘ '” ˜=¡v’¢Ÿ =R¥£;‘ ’2™ ’2¬œ}—£¦1¦-–›=R’­$‘ ’- ™¯¡; œ;™;‘£¤8¡<§™-’2-–­¡} ’ ¯œ;—£¦¦¬-¡’2;–}”<$‘ —;’2¤

•J*,O@0+6)"981*@0`".@)3:1*>)`%(*/?@)32#@0+#@0+1*%@),"%*\1>0,1D](*/?@)(*V P ! @Q19(!E

1& ) ` 5! / 2#*=!

5

ud4!"%@#32@Q1*O-RC@0$OC%@)H1DCQ/MJ%-k32$#"hC@)(D1"%O@Q1J‚m“)“1DC/?h…KO@1>071*$O/0>0@04(*C(W1* !^2"%/0$OJ1*>)".1G]J"%*7!%@)(*#30!O@0+?E •4_] P !5S%#@.1*>)!U/0*60$#! (U<1H "hC 6?\/?Q(*(*#60$OV1*I32!@Q1*O-RC;32ObM*@Q1U1DC/M(U.-32!$I"hC %@?(D1"%O@Q1(EKŠJ@“)“ 1DC/MV%-"30!$I"hC !%@)(W1*9".#@Q1UI(J"6?>)" P O*I".$'!%@)(W1*9".#@Q1E[ŠJ@f^0"%/)$O,.-K".@i“0“:1DC/?%-32$#"hC %@?(D1"%O@Q1H#(H1>0,-R%$#$#_]7O@0+

‘=œ; — ¤7=$’ -¡¤8}—£¦1¦-¤s§’ ‘ ’ª¤8=R’¬¡R2™;˜8¦-¤›Ÿ ¢¤7}—1¦1¦¤ —š-’2-–ª—-’¯¦1— ¡R’›¡; œ}™;‘2¤

Ÿ 1;•=$‘ ¬¡;™;˜‘2¤¬¡4•£–2™¤-˜7œ;¤ ˜1‘1’=;¦’ ¯œ;—£¦¦¬‘­R’=}—;’2™-–›–2}•8¦— œ;2¡ ’ › —;‘2¤ ¡;-’



8(



’ -–-­¡; §—

•4!1>0 32!$I"hCn!%@)(W1*9".#@Q1\I(`32!A)@03c%@d1>0 P @Q1,%-H30#"%$O$#O@)+%-G1>0 @0^1=32#+%O1;‚t(W1*#=&0$#&)(9…,"_-B1!`"f32#+%O1`#(32I".$#$#3 ‚m".$I(W "(D1O&0$#&)(…E 5



Š

/ £!$#&5 B

3 &09"_1O@n@)(D1"%O@Q14@c"%@i P !@Q1\(*/?5OA)(V1>0=1OO@Q1! P "%$ P !V]7>0#9>n1*>0 P !@Q1\"o19(!EŠJ@c^0"./0$#=%-G" 30&0".1*#%@ 2 !%@)(W1*9".#@Q1UI(H1*>),-R%$#$O_]7#@0+

( š ©2™;˜ •£–2 ¡¡ ’- Ÿ1˜£’1’2™}‘ª™š“’-  —;‘2¤8¡}-’ š£™-–¯¦ ¡¡ ’- —;‘¬¡; œ;™;‘£¤8¡<§nR’Wœ;™;‘‘  œv’7¡ ’2™ ’- “¦™ œ;—£¦¢™;•2-–2—-’2™;–

   š ©2™;˜ •£–2 ¡¡ ’- Ÿ1˜£’1’2™}‘“š£™-–ª—;‘£©ª¤-˜£–2—;’=}™;‘ª¦-— ¡v’=$‘›Ÿ -’ ;‘¢’2™“®1°ž¡} œ;™;‘2¤ ¡<§nR’Wœ;™;‘1‘2 œv’7¡ ’£™ ’2 $‘£’2;–‘ —-’=v™;‘ —£¦'™;• -–£—-’2™-–  š¢©2™;˜ 21;•“’2›Ÿ˜£’1’2™;‘¢•1–2 ¡1¡;-¤¢š£™-– ”=™-–2›’2—;‘¯®1°ž¡} œ;™;‘2¤ ¡<§Á’ }‘¬™}‘¯–21¦1— ¡£‘ R’  ™;˜8¦-¤•1–2™¤-˜=œ}’ ¢¤7}—£¦’2™}‘ 



*;*

Version 2 CSE, IIT Kharagpur

Timing Constraints Performance Constraints

Delay

Deadline

RR SR SR

RR

Behaviorial Constraints

Duration Delay

RS

(

SS

Deadline

SS

Duration

RS

€#+%&)* –  [$I"%((*
Š $I"%((WOA?"_1*#%@Y.-J1 rel="nofollow">0L32ObM*@11DC/M(.-V1*##@0+{@)(W1*9".#@19(`1>)"_1 ]U30#(&)((*3‡#@Y1*>0I( (W5o1O@yI( (W>0_]7@yO@ €O+?E %1*;1>)"_1"L/?W-R* "%@):!%@)(W1*9".#@Q1=!"%@{!O1*>0=6M 32$#"hCS325"%32$##@0%SK%32&09"_1O@)".$[1DC/M%EnFH>):32!$I"hCd%=325"%32$##@0 –  E !%@)(W1*9".#@Q1(H%@f/M!*-R% ".@)!,".@f!O1*>)!J6M lJl % l “ 1DCQ/M%EU“O#$#"%*$#C%S01*>0`6M!>?" P #%I".$@)(W1*9".#@19(H!".@f<1>0!J6M=32$#"hCS 325"%32$##@0%S?%V30&0".1*#%@)"%$'1DC/?E7FH>032$#"hC %430"%30$O#@0=!%@)(W1*9".#@Q1(7@L6?>)" P OJ.-[!@ P #*@0!@Q14!"%@L!O1*>046M l “fV“0“ 1DC/M%E



¹ ¶q))º ½) )º  ¹`º Œ  ºL3

qX@y1*>0I((W5o1*#%@Y]32(#6?>0_]Œ1*>) 1O#@0+e%@?(D1"%O@Q1(=#30!@Q1*OA)3Y#@ “5.E – E E Žn".@‡6Mf30!$#$O53'E+@L232!$#$#O@0+c1*# !%@)(W1*9".#@Q1(`I( P !CdO/M%*1".@Q1(W#@) %@)! "n232$H.-71*>):1O !%@)(W1*9".#@Q1(=O@ "n(*C(W1* #(@)(D1*&?o1*53'S[O1".@‡(*! P  "(\":-R% ".$[(*/?5OA?!".1*#%@d.-G1>0 (WC2(W1*E€0&0*1*>)!5S'<-7".$#$1*>01*#O@)+f!%@)(W1*9".#@Q1(\#@d"(WC2(W1* ".=232!$#$#3d"%!!&09"_1*$OCS 1>0!@fO14 "hC; P !@f6?&?(W53:1;".&21% "_1#".$#$OC:+%!@)!9"_1*,232,-R%}<15EGˆU(*#30(7(*! P #@0+ "%(7" (*/MOA?"_1*#%@ZS030!$#$O#@0+1*# !%@)(W1*9".#@Q1(H!"%@ >0$O/1 P !O-RC:".@)3 &0@)30!9(D19".@)3"*5".$ONm1O(WC2(W1*E



bC C

7C

FH>0232$O$#O@)+;"./0/0"9> ]U`32I(*!&)((7>0!I(76)"%(*3@         ‚t€[“ @n(…EUŠ4@i€K“@ #(V"/?_]U!*-R&0$k1*$ ]7>0I9>;>)"($#%@0+=6?!@;&)(*3 1*=232$)1"32<1O@)".$M(WC2(W1*(EqX@:".@:€[“ @‡SQ"`(W1".1*V#(U32A?@03 #@ 1!(G.-'1>0 P ".$#&05("(*(*&03 6C (WV"_1*1*O6)&21*5(!E[€0!^0"./0$#%SQ1*>0,(W1"_1(.-"%@;!$# P ".1*% "hC6M,32!@0%1*53;#@;1** (.-O1(H32#*5o1O@)(G%-.1*#%@ZEK•4! 32#o1O@ I(H1>0`"_1*1*O60&01*%S26?"%(*3%@]7>0I9>:1>0`(D19"_1(7&0/ZS032_]7@S)"%@)3 (W1".1*#%@0*C ".\32!A)@053'E qX@‡"%@‡€K “ @ 30!$sSK".1"%@QCc/?O@Q1.-H1*# "i(*C2(D1! !".@{6M:#@‡".@Cd%@0:.-J"‡‚R/M((*O60$#CeO@0A)@0O1*5…`@&0=6M!.-J(D19"_1(E Šƒ(W1".1*#(,!/)*5(W@13c6Cn"f#!$OEFH>)(*C2(D1! 9>?".@0+(,(D19"_1;32&01*L P !@Q19(41>)"_1=9>?".@0+=1>0 P ".$#&0(,%-DSZ%,!$I"_1O@)( "%@0+ 1*>0;(W1".1* P ".#"%60$O5(!EŠƒ(D19"_19>?".@0+I(".$I(Wf!"%$O$#3d"f(D19"_11"%@)(*<1O@EŠ 1"%@)(WO1*#%@e!"%&)(*O@0+ P !@Q1 "hCL!O1*>0 6M".@:#@Q1*W-t"\ P @Q11>)"_1J".V1*9".@)(*<1*1*3 6M1D]U!!@:1*>0,@ P #*@0!@Q17".@)3;1*>0/0&21*7(WC2(W1*! %U<1J&0$I3 "%$#(*=6M".@ #@Q1*!@)"%$ P !@Q1\1*>)".1\I(\+%@0!9"_13i"%@)3i@)(*&03n(*%$#!$#Cf]7<1>0#@n1>0(*C2(D1!fE`Š 1*9".@)(*<1O@L-R%‰%@)(W1".1*`1"%@0.1>0!\I( !/0(*!@Q13`6C=30"h]7#@0+,"\30O1*3".9-R*w1*>)H(*%&)!G1,1*>07325(D1O@)".1*#%@f‚t(*!J€#+)E .‘…EFH>07 P @1[!"%&)(*O@0+"V1*9".@?(WO1*#%@ I(V"%@0@0%1"_13f@f1*>0".9.EJud=8!!/L&0V30#(&)((*O@)(J%-[€[“ @ 1* 1>0=6?".`O@0#=&) (W#@)=]"%((W&01>)"_1V1*>0*5"%32JI( -t"%#$##"%7]7<1>6?"%(*#,€[“ @ 30!$#$O#@0+ .-1*9"%32O1*#%@?".$(*C(W1* (!E

*

 C ;C 

C  bC 

=C

ud;&)(*:".@ %       e‚*G€[“ @c…,1*n232$1O !%@)(W1*9".#@Q1(E €[“ @ ^1*@)30(`1*>0:1*9"%32O1*#%@)"%$ €[“ @ 6C‡#@)*/M%9"_1O@0+c1*>)i"%o1O@Y%-,(*1*1*#@0+{"d1*#!;".@?3y1>0L^2/0#C‡ P !@Q1 .-\"c1O!5E FH>0L@0%1".1*#%@)(]Uf&)(Wf-R !%@)(W1*&)o1O@i.-G€[“ @i(,".(*#/)$O".@)3c(D1"%O+>Q1W-R%]H".93'EVFH>0*!-R%=9"_1>0!V1*>)"%@n#@Q1*30&)#@0+ 1*>0 -R%"%$O$#C%S']U=>?" P  #$O$#&)(W1*9"_13 1*>0 1>0*&0+%>f".@^0"%/)$O#@L€#+)E %‘0E[FH>0!^2"%/0$O`(*>0_]7@ O@i€#+)E .‘325(*!*#6M(U1*>?"_1JO-K"%@ P @17 – 2&09( ]7>0@f1*>0&0!@Q1V(W1"_1`.-K1>0=(*C(W1* #(V( – S01*>)!@n"%@i"%o1O@f]7O$#$6M19".8%@L6C(*1*1*#@0+:"1O!V1*:^2/0#*#@L1*>)=@0!^Q1 .‘ #$O$#Z(*@)30(7"%@)3;1>0`(*C(W1* 1"%@)(WO1(U1 (D19"_1*( 2E

Š*

Š*

*

I*

*.Ž

Version 2 CSE, IIT Kharagpur

e1/set timer(20 ms)

s1

s2

* 2(

€#+%&0 .‘ G@ P ! @Q1*#%@?( V(W53O@A49"h]7#@0+ ".@AG€[“ @

(

udJ>)" P J".$#*5"%32C32#(&?(*(*31*>?"_1 P @19(!"%@ 6?V%@?(WI32!31`6?V.-k1D]U,1DCQ/M( K(D1O&0$O&?( P !@Q1(".@)3(*/M%@)(*7 P !@Q1(E ud=>)"3i".$I(*;32#(&?(*(*3i300_] 1>0(*=@)(W1*9".#@19( ".@6?232!$#$#36C;&)(*O@0

+ €[“ @i(E

!#:%(3* 0­!$#&%< A8 000!^0"./0$#=.-G"%@c“0“L1DCQ/M=%-G32"32$#O@0@)(D1"%O@Q14]U=>?"%3 “2o1O@ – E E Ž2(  ‘=œ;›’ ¢š7R–8¡v’“¤7=R’›2— ¡'Ÿ 1;‘ª¤7}—1¦1¦¤ ™;‘ª’ ›’21¦;•1 ™}‘ 4 —;‘£¤8¡;-’Š§k’ ›‘ 1’ ¤7=$’”2˜=¡v’›Ÿ  ¤7}—£¦¦¤­R’-­$‘ ’ ‘ 1’  ”<}¦1¦ ¢¡; œ;™}‘2¤8¡ ‹FH>0I(=>?"%(6?!@‡232!$#$#3‡#@Y€#+)E * – EdqX@y€#+)E * – 6)(W P ,1*>)".1V"%(V(W@i"%(H1>0`A)9(W1V32#+%O1VI(432I".$#$O53'S?1*>0=(*C2(D1! !@Q1*(J1*>0+>*Š4]U"%<1V“5@)3.4#+%O1wK (D19"_1=".@)31>0`1O4I( (*1J1.* ‘#$O$#K(W5%@?30(!EHqr-K1*>)=@0!^Q1\32O+<1\32(J@).1V"%/0/?5".J]7O1*>)O@+*%‘O$#$OK(*@)30(S01>0!@f1>0`1O!\".$I". !^/)O(J"%@)3 1>0;(WC2(W1* !@Q1!9(\1*>0 > ŠJ]H".O1U".$#$O`V ± @2Ns>)Q8£ K (W1".1*;".@?3c"f6M!/0O@)+i(W&0@)3d#(,/)*232&)!3'E:qr-1>0:(*@)3d32O+<1`2&09( 6M-R*.* ‘#$O$#Z(*@)30(S1*>0@1*>0`(*C2(D1!ƒ1"%@)(WO1(U11*>0¶> ŠJ]H".O1 ^1VO+<1I K (D19"_1*E 0

32I(&)((W53”O@

second digit/ set timer (5 ms)

Await Next Digit

timer alarm/beeping first digit/ set timer (5 ms)

Await Second Digit

Await Caller On−hook

* – ( @i30!$%-".@L“0“FCQ/M.- 45"%32$##@0%@)(W1*9".#@Q1 $ Š5 $0 !#:%(3* 8Q 0< 9;5 )! /  *# =! qX@v“%E – E E Ž0S]Uf>)"%3 @)(WI32*53‡1>0-R%$#$O_]7#@0+d^0"./0$#f.-\"%@ l “‡1DC/M %-325"%32$#O@),!%@)(W1*9".#@Q1(  ‘=œ}¢’- ¢¤7}—£¦’2™;‘2“—}•1• 1—-–8¡<§Á’  š7R–8¡v’ ¤7=$’”2˜=¡v’¢Ÿ ¢¤7}—£¦-¤­R’=$‘¯®1°¯¡; œ;™;‘£¤8¡<§ ™-’ ;–­¡;4’ ¯¡v©7¡v’£R”ž;‘£’2;–7¡ —;‘ v¤2¦¯¡v’2—;’2 —;‘2¤“—;‘ v¤2¦›’2™;‘2ž-¡4•1–2™¤-˜=œ}¤

FH>0 €K“@ 232$k-R%71>0#(7!%@)(W1*9".#@Q17#(7(*>0_]7@O@L€O+?EŠ*;0 * EqX@f€O+?EŠ*;0* S0"%(7(*Q@"(732I".$k1*@0"./0/M"%(S0"1*#!JI(7(W!1 1!^/)OV#@fŽ%‘(W5%@?30("%@)3:1*>0(*C(W1*Œ1*9".@)(*O1(1*1*>0> ŠJ]H".O1H€#(W14V#+%O1w K (D19"_1%EKqr-Z1>0\1*#7^2/0#*5(G6M-R*V1*>)VA?(W1 32#+%O1U"%* P (S_1>0!@ 1>0,(WC2(W1*! 1*9".@?(WO1(1*"%@ #30$O\(D19"_1*V]7>0!4"%@;#30$O71%@0V#(/0232&)53'Es4 ± 1*>0*]7I(WSO-'1*>)V32#+%O1U"%/0/?5".9( A)9(W1S1*>)!@f1*>),(*C2(D1! 1*9".@)(*<19(U1*1*>)%K ŠJ]H".O14“!%@)3AVO+<1I K (D19"_1*E 0 !#:( % 3*  Á  Š 5 $" 8 0Œ <2 qX@n“%E – E 2E Ž)S0]U`>)"%3f!%@)(*#30!3 1*>0=-R%$#$O_]7#@0+ !^2"%/0$O%-".@n“ l 1DC/M`.-325"%32$#O@)=@2N (W1*9".#@Q1(  ‘7œ;›’ ›–2 œ; R¥2-–“™š¢’2¢ —}‘2¤¬¡;-’W¡¢¦ vš’2-¤s§’ ¢¤7}—1¦›’£™;‘ '” ˜=¡v’¢Ÿ •£–£™¤-˜=œ;-¤Ÿ£© ’ ¬¡v©7¡v’2$” ­R’=$ ‘ 1°¬¡; œ;™;‘£¤8¡<§ ™-’- -–­-¡;›—›Ÿ 1;•­‘ ¬¡;™;˜1‘£¤¬¡ •1–2™¤-˜=œ}¤ ˜1‘£’7;¦’  —;‘2¤ ¡;-’ž¡ –2;•8¦-— œ; ¤

FH>0 G€[“ @‰232$)-RG1>0#(H!%@)(W1*9".#@Q1G#(U(*>0_]7@ O@€O+?E %* Ž0EKŠ4(U(W@:"%(G1*>0V>)".@?30(W!1I(G$#O-B1*3S0"1*#!U#(U(*1U1*=!^2/0O ".-B1*!†, * (W57".@)31>0J(WC2(W1* 1"%@)(WO1(1 *> Š4]U"%<1BVI".$)F%@0$K (D19"_1%Eqr-M1>0432I".$01*%@)J"./0/M"%(KA?(W1S%1*>0@1*>04(*C2(D1! 1*9".@)(*<19( €#+%&0

*

Version 2 CSE, IIT Kharagpur

Await Second Digit first digit

dial tone / set timer (30 s)

Await First Digit

Idle

*-*£(,@L232!$Z.-[".@

€O+&0*

A>

IK

timer alarm / idle tone

±

l “FGC/M\%- V"32$#O@0@)(W1*9".#@1

>



£K

1 ŠJ]H".O1J€#9(D1VO+<1 (D19"_1*E 41*>0*]7I(*%S2O171*9".@)(*<19(U1* *Š4]U"%<1 l 5 P ! V@2Nr>0%8 (D19"_1*E

Await First Digit dial tone

handset lift / set timer (2 s)

* 2(

timer alarm / beeping

Await Dial Tone

€O+&0* %Ž ,@L232!$Z.-[".@L“ l

Await Receiver On−hook

FGC/M\%- V"32$#O@0@)(W1*9".#@1

 $ Š5 $­  Š5 "8Q < qX@ “5.E – E E Ž0S=]‡>?"%3w@)(*#32*53 1*>0y-R%$#$O_]7#@0+v!^2"%/0$Oy.-:".@ l4l 1DC/?‡%-:@2N (W1*9".#@Q1(  ‘=œ;›’ ›–=‘ ’2™;‘ ¬¡ =R¥2}‘ ’2™ ’- ¯œ;—£¦1¦ §’ ¯œ;™-––2 ¡R• ™}‘2¤7$‘ –=$‘¢Ÿ —2œ ¢’2™;‘ '” ˜7¡v’¢Ÿ  7R¥2;‘ ’2™¢’ ¯œ;—£¦1¦--–›­R’=$‘ ’ ™¬¡; œ;™}‘2¤8¡<§ ™;’ -–=¡; ’2¬œ}—£¦1¦¯¡ ’2-–}”<‘ —-’2¤

FH>0 G€[“ @ 232$Z-RJ1*>)#(,@)(W1*9".#@1V#(\(W>)_]7@LO@n€#+)E*  E4qX@c€O+?E*  Sk"%(4(*%@i"(J1>0=O@)+ 1*@0=I(4/)*232&)!3'SM1>0 (*C2(D1!‰1"%@)(WO1(V1f"h]H".O1,*#@0+.Nr6)"98 1%@0 (W1".1*".@)3d" 1*##((*1,1!^2/0OO@ f * “(!Eqr-G1>0*#@0+.Nr6)"98 1%@0 "%/0/?5".9( A)9(W1S1*>)`(WC2(W1*! 1*9".@)(*<19(1* *> Š4]U"%<1J€O9(W1 V#+%O1w K (D19"_1%S2!$I(*\O1J!@Q1!9(`> ŠJ]H".O1 l !! P !‚V± @2Nr>0%8£K (D19"_1%S0".@?3;1>0!".$#$'I( 1!#@)".1*3E

1& `5 ! / 2# =! ( £š’2-–“— ¤7 7R’W¡›¤8}—£¦¤ §Á’ ›‘  1’“¤7 =R’¬¡R ™}˜8¦-¤Ÿ  ¤7}—£¦-¤‘ ™¬¡;™1™;‘ ;–¢’ —;‘ R°4”<;¦1¦2›¡; œ;™;‘£¤8¡ s*;, *-, > £K 5  / £!$#& 5 <  `5 )! / 2*# =! qX@"%(*G.-M"432&09"_1O@)".$@)(W1*9".#@15S_".@` P !@Q1K#(aQ&0#*53\1*\2!&)Z-RK"V(W/M!0 !^2"%/0$O%-K" 30&0".1*#%@)"%$@)(D1"%O@Q17]U>)"%3f@)(*#32*53:#@n“5.E – E 2E ŽI(H1*>)-R%$#$O_]7#@0+8(  š“©2™}˜“•1–2 ¡1¡'’2¢Ÿ1˜1’1’2™;‘ª™š ’  —;‘£¤8¡;-’ š£™;–¬¦- ¡1¡4’ —; ‘ ¬¡; œ}™;‘2¤8¡ R’žœ;™}‘1‘  œv’8¡'’2™›’ ª¦™ œ;—£¦›™}• -–2—-’£™-–  š“©2™}˜“•1–2 ¡1¡'’2¢Ÿ1˜1’1’2™;‘ š£™-–ª—;‘£©ª¤-˜£–£—-’=}™;‘“¦— ¡v’=‘ ›Ÿ -’21; ‘ ¢’2™“®1°¬¡; œ;™;‘£¤8¡<§nR’Wœ;™;‘‘  œv’7¡ ’2™ ’- ¬$‘£’2-–-‘ —-’=}™}‘ —£¦'™;• -–2—;’2™-–  š ©2™;˜ 21}•ª’- ¢Ÿ˜£’1’2™;‘¢•1–2 ¡1¡;-¤›š£™-–”=™-–2›’2—;‘¯®1°¯¡; œ;™;‘£¤8¡<§’ }‘¬™}‘ª–££¦1— ¡1$‘ ¬R’  ™;˜ ¦-¤•£–2™¤;˜=œ;’  ¤7}—1¦ 5 )    Š 32!$I"hCn@)(W1*9".#@1`6M1D]U!@d1D]L P !@Q19(,#(=%@0 ]7>0*;".-B1*=".@e P !@Q1`2!!&0(S"f#@0#=&0 1*# &)(D1\!$I"./)(*`6M-R*1>0=%1*>04 P !@Q1V".@i2&05E7uc>)"%3n%@?(WI32!3 1>0`-R$O$#_]7O@)+;^0"./0$#`%-G32!$I"hC!%@)(W1*9".#@Q1JO@d“%E    

– E 2E Ž  FH>0#  G€[“ @ 232!$M-R%HO1UI(7(*>0_]7@;#@€#+)E 0EqX@€O+?E 2SO-Z1*>)V@0!^1730O+<17"./0/M"%(6M-R%V1*>0".$I".fSQ1*>0@;1*>)\6M!/0#@0+ (*%&0@?3:I(7/0232&)53 "%@)3 1*>0(*C2(D1! 1"%@)(*<19(U1* *"h]H".O1H".$#$O7%@2Nr>0%8 (D19"_1%E

*;,

Version 2 CSE, IIT Kharagpur

Await First Digit ring−back tone

ring tone / set timer (2 s)

*  (

€#+%&0

timer alarm / terminate call

Await Ring−back Tone

Await Receiver On−hook

@i30!$%-".@

FCQ/M.- 45"%32$##@0%@)(W1*9".#@Q1

lJl

Await Next Digit timer alarm

first digit / set timer (10 ms)

*;,2(

€#+%&0

’2™;‘ 

next digit / beeping

Await Next Event

Await Caller On−hook

@i30!$%-K"%@f“0“FC/?,.-,V!$I"hC%@)(W1*9".#@Q1



"*

FH>0 G€[“ @ 232$-R%\1*>0I(\^0"./0$#=I(,(W>)_]7@iO@d€O+?E 0E .1*1*>?"_1,]>)" P =O@Q1*232&)!3L1D]U:#@Q1**30#".1*(D19"_1*5(  P @1 ".@?3 ŠJ]H".O1  P @1 =1232$Z"32&09"_1O@)".$!%@)(W1*9".#@Q1E

>ŠJ]H".O1

K

4>

‚*;K

¾



³ 



FH>0 ".#@L".# .-K1>0#(\>)"./21!J]H"%(U1 O@Q1*232&)!C%& 1;(W P !C;6)"(WI@)/21(4".@)3 1**#@0%$#%+O5(H"%((W2I"_13 ]7<1>f*5".$ONm1O,(WC2(W1*! (H1>)"_17]U%&0$I36?&?(W53;1>0*&0+%>)%&21H1*>)#(76M%8kE



Šg(*C(W1*}I(\(*"%#31;6? .-1*>0`(*C2(D1!fE

 Š



Šw".$ONs1*#`1"%(*8:I(4!$#"(*(*OA)3f#@Q1*;<1>0!V>)".93'S0A?*fSM%4(*.-B14"%$0=@)(*aQ&0!@?(J.-" 1"(W8 -t"%O$##@0+1*!1JO1(71*##@0+;!%@)(W1*9".#@Q1(E



Šƒ(*".-R1DCQNX<1#".$[(WC2(W1* I(%@0]7>0I9>{32(@).1`>)" P "-t"%O$ONr("_-R (W1".1*;".@?3d"%@CL-t".#$O&)*.-U1*>):(WC2(W1* (W P *,30". "%+%%E @i"%@QC:>)".93:"%$


FH>0f1DC/0I!".$V9>)".9"%1*!I(D1# -R".1*&0(;.-"e>)".93 *5".$ONm1Oi(*C(W1* #@)$#&)32n!=6M3)323'SU-R326)"98Y"%@)3v32I(D1*#60&213 (D1*&?o1*&)*S".@?3{(*".-R1DCQNr!*O1*I!"%$OO1DC%E:qr1=#(`/?Q(*(*O6)$O1>0%&0+>e1*>)".1=(W >)".93d*5".$ONm1O;(*C(W1* ( "hCn@0%1=>)" P 1>0(* -R".1*&0(E

DMC     ^C7]7>0@naQ&)".@Q1*O1".1* P !^/)*5(*(*O@)(7%-1O".`@0!((*"%*C;1* 30(O6M1*>)`6?>)" P O

*5".$ONm1O\1"(W8;I(7@0\1*>)".1J#(7"(*(*2I"_1*53:]7O1*>L(*%\1*#`%@?(D1"%O@Q1(E

!"%@e".&)(*

*

Version 2 CSE, IIT Kharagpur

Local Operator button release button press set alarm (15sec)

Await Event1 button release

Inter− national Operator

timer alarm

set alarm (15sec)

Await Event2

timer alarm

*  (Š

€#+%&)*

Dial Tone

button release dial tone Await Button Release

@i30!$%-K" V&0".1*#%@)"%$%@)(W1*9".#@Q1

(



FH>0!"%*G1D]\ ".#@"_1*+%*#(Z.-01O7@)(D1"%O@Q19(Z#@==6M303253=>?".93`".$ONs1*#U(WC2(W1*( /M!*-R% ".@)!@)(W1*9".#@19( ".@)3‡6?>)" P O"%$G@)(D1"%O@Q19(!EnTKW-R* "%@);!%@)(W1*9".#@Q1(="%*;1*##@0+d%@?(D1"%O@Q1(=O/M(*3{@{1*>):(*/?@)(W .-71>0 @1*$O$##@0+;/)&21*V(*C(W1*fS?]7>0*5"%(46?>)" P O*I".$Z!%@)(W1*9".#@Q1(J"%*`1*##@0+%@?(D1"%O@Q1(4O/M(*3L@f1*>06?>)" P O .-1>0\!@ P O%@0@15E[FH>0V/M!*-R% ".@)!V!%@)(W1*9".#@Q1("hC @).1H6?,+%&?".9".@Q1*3O-Z1*>)V6M!>)" P #%#"%$M!%@)(W1*9".#@Q1(U".4@0%1 (*".1*I(DA?3'E



ucU32I(*!&)(*(*3`>0_]e1*\30!$1*>0U/?W-R* "%@)G"%@)3`6M!>?" P #%I".$_1DC/M(.-)!%@)(W1*9".#@Q1(&?(W#@0+V"%@ [^1!@)3253=€#@0<1H“1"_1 @i"%9>)O@0*‚ G€[“ @c…K1*>?"_1H^1*@)30(G1*>041*9"%32O1*#%@)"%$?€[“ @‰]7O1*>:1*>0\@)/21(.-Z(*1*1*#@0+="1OU"%@)31*>)V*(*/M%@)32#@0+ +%@0!9"_1O@%-Z",1*#!H".$I".  P @15E“&)9>:"232$?#@:"%3)32<1O@ 1*(W P 4"%("`(*/?5OA?!".1*#%@ 19>0@0IaQ&0%S!"%@:".$I(*`>0!$#/ O@ P *&0-R&)!".1*#%@f".@)3".&21% "_1#!232,+%!@)!9"_1*#%@ZE

    ¾ ¾ – E4“Q1".1*;]7>)1*>)!C%%&{!%@)(*#30!`1>0 -R$O$#_]7O@)+n(D19"_1!!@Q1(`1*i6M !"(WE

" 

%

   0

E  &?(D1<-RCeC%&0="%@)(W]U!=O@‡5"%9>

‚t"Q…:Š”>)"%3 ".$ONs1*#"%/0/0$##"_1*#%@I(H"32&0/f.-%@0$#C;>)"%3 ".$ONs1*#\19"%(*8(E ‚R6?…  P !C;("_-R1DCQNX<1#".$k".$ONs1*#(*C2(D1! >)"(7"-t".#$)" P O*I".$@)(D1"%O@Q14@L1*>)@ P ON %@0@17%-1>0`(WC2(W1*E ‚t3)…•V".932]U"%*V-t".&)$<1*Nm1%$#!9".@)!419>0@0IaQ&0(4!".@"(W#$#C;6?`"30"./01*3:1*/0 P #30,(*.-B1D]H".V-t".&0$O1WNs1*$O"%@)E ‚R5…Š +%23;"%$O+%<1>0 -R%7(*9>)32&0$##@0+>?".93 *5".$ONm1OV1"(W82(=&)(W1H1*C1*%/0$#1V5"%9> 19"%(*8 O@ 1*>)\(*>0%*1*5(D1U1*# /M((W#60$#%E ‚B-…fŠ4$O$>?".93:"%$
*

Version 2 CSE, IIT Kharagpur

R‚ +…:TKW-R* ".@?7@)(D1"%O@Q19([%@;""%$)"_11*>0J@ P #%@0!@Q1G%-k1*>04(*C2(D1! #(G]$O$ONr6?>)" P 53'E ‚R>?…f“%-B1J*5".$ONm1O\1"(W82(7"%*V1*>0Q(W]7>)#9>f32@0.1J>?" P ,".@C 1*#6?&0@)30(4"%((W2I"_13:]7<1> 1>0!fE ‚tI… @L#@0#Op5"_1*#%@c.-G" P !9".+%,19"%(*8f*5(W/M%@)(*1O(\I(J1>0%62zD5o1* P =.-"%@QC+%23L>)"%3i*5".$ONm1O`19"%(*8QNr(9>030&0$O#@0+ "%$O+%<1>0fE ‚ z*… qr1(*>0&0$#3e6M 1>0;+%Q".$%-H"%@Cn+%23d*5".$ONm1O /?".1*#@0+i(WC2(W1* 1i%/0$#1; P !Ci>)"%3e"%$0"3:%-O1(7325"%32$##@0`"%(H/M((W#60$#%E

*0E7uv>)"_1[32\C%&=&0@)30!9(D19".@)3=6QC,1>0U1** >**5".$ONm1OK 3;•4_]‡#(1>0H%@?!/01K%-)".$ONs1*#H32ObM*@Q1-R%”1>0U1*9"%32O1*#%@)"%$ @0.1O@ %-Z1O 3?[^2/0$I".#@ C%&07"%@)(W]U!H&)(*#@0+;"(W&0O1"%60$#\!^0"./0$#%E



Ž)E7uv>)"_1J325(H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>0(*,1D]1DC/M(H.-1"(W82(E

 E

"%".@Cf1D]U #/?W19".@Q1(W@)(W\30 P #!(,".@?3L1D]U"o1*&?"_1*\30 P #!(\&)(*3cO@d".$ONs1*#"./0/)$OI!".1*#%@)(,".@?3i^2/0$I".#@ 1*>0/)>QC2(*#".$k/0O@?#/0$O5(76M!>0#@)3 1*>0O4]*8#@0+)E

 9"h]w" (9>0".1*I`232!$[(*>0_]7#@0+ 1*>)#/?W19".@Q1,!%/M%@0@19(4%-G";1DC/0I!"%$>?".93L*5".$ONm1O(WC2(W1*!fE [^2/0$I".#@L1>0 – ‘0E 4 ]*8#@0+:%-1>0 %&01*/0&21`#@Q1*W-t"&)(*O@0+L"f(*&0<19".60$# (*9>)! "_1#32#+%9".fE;[^2/0$I".#@n&)(*#@0+i"f(W&0O1"%60$#!O9&)<1=32I".+"% >0_]‹30O+<19".$k1* "%@)".$#%+f*‚ JŠ4H…H!%@ P (*#%@ ".@6?`"9>0# P 53;#@L".@f%&21/0&21J#@Q1*!*-t"%!%E  9"h]w" (9>0".1*I`232!$[(*>0_]7#@0+ 1*>)#/?W19".@Q1,!%/M%@0@19(4%-G";1DC/0I!"%$>?".93L*5".$ONm1O(WC2(W1*!fE [^2/0$I".#@L1>0 –– E 4 ]*8#@0+.-'1>04#@0/0&01U#@Q1*!*-t"%!4&)(*#@0+="=(*&0O1"%60$O\(*9>)! "_1#J30O+"%E [^2/0$I".#@;&)(*#@0+"`(*&0O1"%60$O\#!&0O1U32I".+"% >0_] ".@)"%$O+`1;32O+<19".$‚m Š H…7@ P !9(W#%@:#(J"9>0# P 53;#@L".@O@0/)&214#@1!*-t"%!%E

*

– 2EHqX@c" >)".93i"%$)"_1 P !C1"%(*8L#@i1*>)(*C2(D1!‰6M.->?".93L*5".$ONm1O1DC/?3 ^/)$#"%O@ C%&07".@)(*]H&)(W#@0+ "(W&)<19".60$#^0"./0$#%E – Ž0EHqX@;1>0\!%@Q1*!^1U%-Z/0 P I32#@0+(*C2(D1!Nr$O P !$?-t".&)$<1*Nm1%$#!9".@)!%S]7>C"%*\>)"%32]H".7-t"%O$#&0(*\/032Io19".60$#V"%@)3;5"%(*O 1*i>?".@)32$#:!%/)".3d1n(*.-B1D]H".-t".#$O&0(43 ^/)$#"%O@e1>0 N P !9(W#%@{(9>0! 1i/0 P I32;(*.-B1D]H".-t".&0$O1WNs1*$O"%@)E uv>)"_1".1*>0(W>)%*1O@0+Q(4%-G1>0#(,(9>0!3 •J_] 32(V1*>0! P !C60$O298f19>0@0IaQ&0"_1W1!/21,1* P !%`O143 45(H<14(*&)!!!5 3 3.[^2/0$I".#@C%%&)H"%@)(*]E



 ^2/0$I".#@=1>049>0598/?O@Q1*#@0+".@?3*$O$#6)"%98! P *C`(9>0!H1/0* P I32U-t".&0$O1WNs1*$O"%@Q1*5".$ONm1O7/)&21*#@0+)E,^/)$#"%O@ – E [ 1*>0`1DCQ/M(4.-K-t".&)$<19(4O1V!"%@L>0!$#/L1%$#!9"_1*`"%@)31*>)`-t".&)$<19(JO1\!"%@f@0.1V1*%$#!9"_1%E4[^2/0$I".#@f1*>0(WO1*&)".1*#%@)(4O@n]7>0#9>f1>0I( 1*59>0@0Ia&)\I(7&)(*-R&)$mE

,

– 2E7ŠJ@)(*]U!U1*>0,-R$O$#_]7#@0+ a&)(W1*#%@)(7!%@)!!@0O@)+=-t"%&0$<1*Nm1%$#!9".@)!,.-"%$C;>)".932]H".4-t"%&0$O1WNs1*%$#!9".@?\#(75"%(*OU1*;"%9>)O P ,%/)"%*53 1;(W%-B1D]U"%*V-t".&0$O1WNs1*$O"%@)E

*

Version 2 CSE, IIT Kharagpur

‚R6?… ^/)$#"%O@ 1*>0 "%O@1*59>0@0IaQ&0(7" P ".#$I".60$#41;"%9>0# P V>?".932]U"%*V-t".&)$<171%$#!9".@)!%E ‚t… uv>)".1\"%*1>0= "%O@L19>0@)#aQ&05(V" P ".#$I".60$#,1*"%9>0# P =(W%-B1D]U"%*,-t"%&0$O1WNs1*%$#!9".@? 3{uv>)"_1".1*>)(*>0%*1!%O@)+( %-1>0(*\1*9>)@0#aQ&05( 3 – 0E7ˆU*#)C !^2/0$#"%O@ >0_] >)"%30]U"%*7-t"%O$#&0(‚t%E +)EK/0!((W-t"%O$#&0(9…".@ 6?\1*$O".1*53;#@("_-R!1DCNXO1*I!".$M>)"%3:*5".$ONm1O "./0/)$OI!".1*#%@)(E[@)(*#321>04-t"o11*>)".1U>)"%3"%$)" P V(D1*#@0+%@Q1U325"%32$#O@)(]7>)#9> =&)(W16MV!1&0@)30!H".$#$ #!&0 (D19".@)!(E

n>

K

– EHuv>)"_1\32;C%&L&0@)32(W1"%@)3f6C:1>0 W-t".#$)" P `" -t".#$)"_1JI(H1>0O/0$#I!"_1O@ %-1>0I( 3  ^2/0$I".#@ ]7>C("_-R!1DC ".@)3 !$#I".60#$OO1DC ".J@0%1U#@)32/?@)32!@Q1H#((*&0(O@ (*".-R1DCQNr!*O1*I!"%$)>)"%3;*5".$ONm1O4(*C2(D1! (!E,^/)$#"%O@ – 0E [ 1*>06?"%(*#V1*59>0@0IaQ&0(HC%&]&0$#3"%30%/21H1*;30 P $O/ " (*.-B1D]H".4/0232&)171*>)".1J#(HaQ&0#*53;16?>0#+%>)$OC *$OI".60$#%E

E qD(<1/?Q(*(*#60$O 1*d>)" P  ".@Y^1*!$OC‡("_-R60&21 &0@0!$#I".60$#(*C2(D1! 3 qr-\C%%&)"%@)(W]U!I(".† * "_1 P %SK1>0!@ +% P ".@ –  H ^0"./0$#.-[(*&)9>i" (WC2(W1*EUqr-[C%&f"%@)(*]7O@f1>0`@0+"_1 P %S21>0!@zD&?(D1<-RCf]7>C:O14I(J@0%1J/?Q(*(*O6)$O-R4(*&)9>L" (WC2(W1*! 1*^2I(D15E

*%‘0EHuv>)"_1JI(J"("_-R1DCQNX<1#".$(*C2(D1!

3 \ P `"-R!]”/09"%1*I!"%$'^0"./0$#(7("_-R!1DCNXO1*I!".$k>)"%3"%$)".93 *5".$ONm1O(WC2(W1*(4(*".-R1DCQNr!*O1*I!"%$ 3Lqr-K@).1S)+% P "_14$#"(D17@0^0"./0$#.-[">)"%3 *5".$ONm1O`(*C2(D1! 1>)"_1JI(7@0%1 (*".-R1DCQNX<1#".$sE

*

 ^2/0$I".#@e]7<1>{1*>0:>0!$#/{.-J"i(9>0! ".1*I;32I".+%9". >0_] 1*>0;! P *Ci6)$O298c(9>0 !".@{6M;&)(*3d1n"%9>)O P -t".&)$<1*N – E [ 1*$O"%@).-U*5".$ONm1O1"%(*82(!Euv>)".1=".=1>0;(W>)%*1O@0+Q(\.-G1>0I((*9>0 3 [^2/0$I".#@e(WO1*&)".1*#%@)(\]7>0*O1=!"%@c6M (*".1*I(D-t"o1%O$#C 6?&?(W53 "%@)3f(WO1*&)".1*#%@)(H]7>)!\O14!"%@ @).1J6M&)(W53'E

*-*2EHqD32!@Q1<-RC".@)3!/)*5(W@1G1*>071O#@0+!%@)(W1*9".#@Q1([#@1*>)J-R%$#$#_]7O@0+`"%O*NX32-R@)(WJ(*C2(D1!Œ6C5".@)([%-Z".@ !^Q1!@)303 (W1"_1  "%9>0#@032I".+%9".fE$#"(*(*O-RC;"9>!%@)(W1*9".#@Q1U#@Q1* !O1*>)!7/M!*-R%"%@),U6M!>?" P #%I".$'@)(D1"%O@Q15E  P !C{O@)!%#@0+eI((W#$OL&)(W1;6?n301*5o13 ]7<1>0#@ ‘0E\d * “2@)30( %-VO1(:!@Q1**#@0+d1*>0L9"%3)".  P !9".+%".")E FH>0 O@Q1!9!/014#((W#$#(*>0%&0$I3L6M=@0+"%+%3f]7O1*>)O@+ , “!%@)3)(J.-G301*5o1O@i.-[1>0=19".+%!14#((W#$#%E4FH>0O@Q1!9!/01V#((*O$# *%Ž0E

(W>)%&0$I3:6M,A)3"_-B1!4‘)E – “!%@)3)(H.-K<19(7!@0+Q".+!!@Q1H60&21J@0 $I"_1!U1*>)"%@ – “2.E

l ! /)*5(W@17"]U"(W>0Ns "%9>)O@0V>)" P O@)+=1>0\-R%$#$O_]7#@0+(W/M!0#@032#"%+%9".fE FH>0]U"(W>2Nr "%9>0#@0 ]U"%<19(`-R1>0 e(W]7O19>y1*d6?f/0((W53'E‡Š7-B1!1>0f&)(W/)*5(*(*(=1*>0 e(*]7<199>S1>0  "%9>0#@0A)$#$#(\1>0 ]U"(W>c1*&)6d]7O1*>e<1>0!`>).1%`!%$I3n]H"_1!`32/?@)32#@0+L&0/M%@c1*>0;(*1*1*#@0+L.-1*>0   i(W]7O19>ZE FH>0J]H"_1![A)$#$#O@0+%@Q1O@&05(&0@Q1*#$?1*>0J>)O+> $O P !$?#((W@)(*3'E[FH>0J "9>0O@)4(D19".*1(K1>0V"%+%O1".1*#%@.1*"%@)3 @1O@&05( ".+<19"_1*#@0+L1>0]U"(W>e1&06y&0@Q1O$H!O1*>)!1*>0/0(*1=1O!^/)O(=%1*>0&)(*!=/)*5(*(*(`1*>0 {(W]7O19>ZEdŠJ-B1*!1>0 ".+<19"_1*#%@ (W1*%/?(!SU1*>)L"9>0#@0L]U"%<19(-R%;1*>0i&?(W 1*{/0((1*>)  ‡(*]7<199>E‹ŠJ-B1*;1*>)i&)(*! /0((W5( 1*>0   (W]7O19>S?1*>)= "%9>0#@0=(W1"%W19(71>0=>0%1V".#46)$O_]U!4"%@)3i!%@Q1*#@&0(76)$O_]7#@0+;>0%1\"%OJ#@Q1*:1*>032*C#@0+ 9>)".6?H&0@Q1*#$!O1*>071*>)&)(W7/0((W5(G1>0 :(*]7O19>%H1*>)/0*5(W!1H1*#J^2/0#(E

A¡v’£—-–1’

Á¡v’£—-–1’ 1–©=$‘

*

A¡v’2—-–’ ™-’ 2— ¡R +¡v’£™;•

¡v’£—-–1’ 1–1©=‘

?¡v’2™}•

*-,2E

EHqX@d""%$?"_1#(1*>0;32Obk!!@)!6M1D]U!@d"/M!*-R% ".@)!!%@)(W1*9".#@Q1,"%@)3d" 6M!>?" P #%I".$[@)(D1"%O@Q1 3 \ P ,/0"o1#".$k^0"./0$#(H%-5"%9> 1DC/?,.-[@)(W1*9".#@15E l ! /)*5(W@1K1>0H1*#O@0+`!%@)(W1*9".#@Q1(#@"!%$#$OI(*O@" P % I30".@)!19"%(*8=#@"%@"%O(*&0 P O$#$#"%@)H(*C(W1* "([".@^1*@)323A?@0<1 (D19"_1\ "9>0O@)‚ G€[“ @n…H30#"%+%9".fE[FH>0%$#$##(*O@" P % I30".@?V1"%(*8:!%@)(*#(W1(U%-1>0,-R%$#$O_]7#@0+"%1* P O1*#(E









FH>0HA?(W1G(W&)621"(W8@)".39"%30"%(W#+%@)"%$2/0!((WK/0*2!((W5(Z1>0J9"%30"%[(W#+%@)"%$2%@ ",(W#+%@?".$0/025(*(*%1*+!@0".1* 1>0,1*9"%98;!%93;#@1*! (H.-1*>0,19".+%15x (H$#2!".1*#%@f".@)3 P $O2O1DC;]7O1*>0#@ – ‘‘;“5\.-K*5!#/217.-1*>)`(W#+%@)"%$mE FH>0V1*9"%98 !%93#(1"%@)(WO1W13:1*1*>0,30"_19"=/)*25(*(*%]7<1>0#@ – ;“\"_-B1!U1*>0\1"98!%93 I(U301**#@03E Šv(*&06219"%(*8`%@1*>0730".1"\/02((*%[*!$I"_1(Z1*>07!! P 3`1*9"%98!%93`]7O1*>1*>0U1"98`*530(.-M.1>0!K19".+%19( 1>)"_14!%$#(*V1;3211J/?%1*!@Q1#"%$%$#$##(*O@:1>)"_1J#+%>Q172!&)7]7<1>0O@1>0@0^1 %‘%‘ “2.E qr-" $O$##(*#%@LI(V"%@1#!O/?"_1*53'SM1*>0@i1>0!%*5o1* P `"o1O@i#(\32!1*!O@)3i]7O1*>)O@ – ‘ ;“5`6CL".@0%1*>0\(*&06219"%(*8 &0@0@0#@0+%@1>0`30"_19"/0*2!((WE

q,

*

Version 2 CSE, IIT Kharagpur



¶*-, “2.E

FH>0`!%*5o1 P \"o1*#%@I(U1*9".@)(*<1*1*3 11>0,1*9"%98 %o1O@;19"%(*8;]7<1>0#@

* 0E4%@)(*I32!U1*>),-R%$#$O_]7#@0+L‚R/)"%W1#"%$I…U(*/?5OA?!".1*#%@.-["*5".$ONm1O(WC2(W1* (

FH>0 P !$#2O1DCe.-V"d(W/?"%!Nr!".-B1&)(D16Mf("./0$#3y6C‡"c!%/0&21!%@2Nr6M".93d1*>)f(*/)"NX9"_-B1"_1$O5"%(W1@)  P !C (W5@)3v‚B1>0 ("./0$#O@)+i P !@Q1I(=32@0.13{6C‡“0…EŠJ-B1*!("./0$#O@0+i1*>0 P $O2O1DC%S1*>)!&0*!@Q1=/M(*O1*#%@{I(!%/0&213 ‚t32@0.13f6C: P @1\H…7]7<1>0O@ – ‘%‘% (W5.S2/)"%"%$O$#!$#$OC:1*>0=^2/?5o13f/M(*<1O@%-K1*>0=(*/)"NX9"_-B17I(J1*# P 3:-R* 1>0 30"_19".6)"(W:]7<1>0O@ .‘‘. (W5i‚t30!@0%1*3y6Cd P @1 l …E V(W#@0+n1*>05(Wf30"_19"0SK1>030 P #".1*#%@{-R% 1>0 @)%"%$U!%&09(*;.1*>0,(*/)"%!NX9"_-B1G&)(D1H6M,301**#@03:]7<1>0#@ – ‘%‘ (*‚t32@0.13;6C  P !@Q4 1 \…U".@?3:*1* P  P !$#2O1DC"3hzD&)(W1*!@Q19( =&)(W1H6?,!"%*O53 %&01U6M-R*\"=@0] P $O2!<1DC P ".$#&0\#(H("./0$#3;#@c‚R1*>0 P !$#!<1DC "3hzD&)(W1*!@Q1H P @Q1UI(H32!@0%1*53;6C ŠV…oE U".$I&0$I"_13/?Q(WO1*#%@?([=&)(W16M71*9".@)(*<1*1*53=1,1*>075".*1*> (W1"_1O@".1$O5"%(W1%@)!7 P !C`O@&21`‚R/M(*<1O@1"%@)(*I((W#%@  P !@Q17#(732@0.136C 1*>) P @Q17FJ…E

›*

qD32!@Q1<-RCL1>0;32ObM*@Q11*##@0+L@)(W1*9".#@19(\O@d1*>);(WC2(W1*!fE:$I"%((WO-RCf1*>05(W #@Q1*f!O1*>)!/M!*-R%"%@)%6M!>?" P #%I".$ @)(D1"%O@Q19(!E%@)(W1*&)17"%@ €[“ @ 1* 232!$k1>0`(WC2(W1*E

*QE4%@)(W1*&)1U1>0G€[“

@

232!$%-K"1!$#!/0>0@0(WC2(W1*

0(

]7>0Q(W ‚R/?".*1*I".$B…G6M!>?" P #%HI(J325(*!*#6?53:6M!$#_]

*

Š7-B1!=$#O-B1*#@0+i1>0:!! P !>?".@)30(*15S1*>0:30#"%$G1%@0:(*>0&0$#3{"%/0/M".=]7<1>0O@ .‘L(*@)30(Efqr-4"L32#"%$G1%@0 !".@e@0%16M +% P @i]7<1>0#@ %‘:(*@)30(SM1*>0@d"%@nI32$O1*@0#(\/0232&)!3'E`ŠJ-B1*!,1>032#"%$1*%@)"%/0/?5".9(!SM1>0A)(W132O+<1(*>0%&0$I3L1 6? 32I".$#$#3i]7O1*>)O@ – ‘(*@)30(\".@)3n1*>)(*&06)(*aQ&0@Q1\A P 32O+<19(,]7<1>0#@ (W5@)30(\.-U"%9>c.1>0!5E=qr-1*>0 32I".$#$O#@0+.".@C:%-[1*>032#+%O1(JI(\32!$I"hC%53'S01>0!@n"%@L#30$O=1*%@)`#(4/030&)53'E4FH>0`I32$#`1%@0%@Q1O@&05(7&0@Q1*#$Z1>0=!! P J>)".@?30(W!1 #(H!/)$#"3E

*

,

*0EHuv>)"_1J"%*\1*>)`32)"_14".@&07#@L"(WC2(W1*!fE

\ P ,^0"%/)$O5(H.-5"%9>E

»;  ‚º·¸

)(    2D &H "H ­H vDMC  =CIC D F( ,  *h=“Q1 P `•4".1*>E   ^GIC ;C 8E  C  LC    )E G$#(* P #!5S2*.‘%‘Ž0E  Ž_`ˆU*I".@L“2"%@1)E,6?5303253 6?"_1W1$O,_C"%$OE     C  :DFB S/)".+(7Ž    *2S 45=6M!q*%‘%‘ – E

 – `ˆ\E \"%(".9"_1>C%E7FHO#@0+ !%@)(W1*9".#@Q1(7%-[*5".$ONm1O=(*C2(D1! ( 4@)(D1*&?o1(7-R%\^2/0((W#@0+1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.GdC-$ .0&3,5$ 17)>.,?.K4*6=IO17)>.=.Y)<.K,?$ 9dS .)&(*)<.Y)&08KI'&)>6Dd.CM$N&=)76313( ,5$*i/)>, V +McZ8P(*)7$$*IE1I?$*TaS .YC-I?$,56=C-.)>.>Q ¿ ´NÀh­:²>Á”ÂL´ÄôN­ ÅÀhÁ”±´ÄÂL´NÆj®>Ç®wÈÉ2®>ÊzÀ”Dz>´ÄôN­ ÅÀhÁ”±´Lµ Œ^(*){, V .I?+-S:&)x9:)>,/9:+MC-$*){I5Tp,s&3,?.G“CX.&=(*){, V .I?+-S:&)y&C-De){nj,5+-S*) ¼h1I?S $/&=)>9uTa6=I?D‘&=CMDE)WË/¾ V cu8P(*CX13(t&=(*)k6=)>.S*+M&=.'Ta6I/D‘&(*)k&=,/.YGs,56=)k)7q:4L)<1 &)<9\QsŒ^(OS .7[F, V .I?+-S:&)9:)>,/9:+MC-$*)C-.Z)>`NS ,?+U&=Iy&=(*) Ì

Version 2 CSE, IIT Kharagpur

absolute deadline of Ti(1) = Φ+d relative deadline of Ti(1) =d Φ

Φ+ d

Ti(1)

Ti(2) Φ+ pi

0 arrival of Ti(1)

deadline of Ti(1)

r C-i?S*6=) Ì ˜gP)7+X,j&=CMn/)m,5$ 9W| V .YI/+MS:&=)b)<,?9:+-C-$*)>.^I?T2,EŒ,?.G C-$N&)76=nj,5+:I?Tz&=CMDE) V )&08)7)>$Z&=(*)P&=CMDE)Ëm,5$L9'&=(*),?1&S ,?+*C-$ .0&3,5$N&U,j&F8P( C-13(e&( )9:)>,/9:+MC-$*)PI:1717S*63.,?.DE)>,/.YS 6)<9 V c'.I?DE)P4*(Oc:.YCX17,?+ 17+MI:13GQ}~( )76=)>,?.>[N6)>+-,5&C-n?)b9:)<,?9:+-C-$*)bCX.F&=(*)&C-De)CM$N&=)76=no,?+ V )&08)7)>$d&( )f.Y&=,?6Y&UI?T\&(*)&=,/.YGE,5$L9E&(*)fC-$ .0&3,5$N&,5&K8P(*CX13(k9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&=(*)9:)<,?9:+-CM$ )PI5T\,b&3,?.Gp)>`NS ,?+-.2CM&=.F4L)>6C-I:9¼”ChQ )?-Q  /» .  » ¾[ 8)Z1>,5$_I/DeCM&f&(*)'TaI?S*6&(y&S*4*+-)?QH#%$l&=(*CX.f1>,?.)?[z8K)e17,?$_6)>4*6=)>.)7$N&b&=(*)p&3,?.GW,/.bº 0» . K¼ J5Ë/Ë?ËdD–O)<15'[ (5ËkD–O)>1?-[ *kD–O)>1<¾ QmŒ^(*CX. 8I?S*+X9,5S:&=I?Dd,j&=C-1>,5+-+McEDE)>,?$ z» . N» . (?Ë'D–O)<15QU–OC-DECM+X,56=+Mc/[O8P(*)7$ z» . Ë [:CA&1>,5$ V )HI?DECM&Y&=)>98P(*)7$$*Id1I/$:TaS .CMI/$,?6CX.Y)<.7Q–OIL[ º\» . K¼ J?2Ë 143+&6587 Ì Ë?9Ë 13+&657¾F8KI/S*+X9kC-$ 9:CX17,5&)',e&3,?.G8PCA&=( z» . Ë*2[ z» . Ì Ë?Ë5D–O)<15:[ &o» . J?Ë5D–O)<15[ ,?$ 9 /» . Ì Ë/Ë5D–O)>1?Q}~(*)7$ )7n?)>6 &=(*)76=)HC-.P,?$Nc.17I?4z)TaI/6P1I?$*TaS .YC-I?$J[:8K)m.( ,5+-+\)q:4*+-C-17CA&=+Mc8P6CM&)HI/S:&^&(*)m4 ,?6=,?DE)&)>6=.Kº\» . ;¼ L» . (5ËpDEC-+M+-C–O)<17.>:[ &o» . *'DEC-+M+-C–O)<17.>[ N» . #NË'DEC-+M+-C–O)<17.3¾ [*)7&=1?Q 





Version 2 CSE, IIT Kharagpur

ei

Φ =2000 0



di

 Φ





Φ + pi

 Φ + 2*pi

r C-i?S*6=) *˜FŒ6=,/13GKI?6=6)<1 &C-I?$Œ,/.YG{¼KJ5Ë/Ë?Ë913+&6587  » 7 & » 7  » ¾I?T,EgPI:13G?)7& |Änj,?.Y&PDd,j—0I?6=CM&0cdI5T&(*)H&3,?.GO.^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$L9'6=)>.I?S*631)1I/$ .0&=6=,?CM$N&3.JI?Tz,5+-+N&=,/.YG:.2,56=)K.=,j&=C-.Y; )>9]Q > ´N­ ®>Á”ÉÀhA ´ QJ³ R´OÅÇÀ”C´ B | nj,?+MCX9_.=13(*)>9:S +M)pCX.f17,5+-+-)>9l,ETa)<,?.C V +-)'.=13(*)>9*S*+M)/[LI/$*+-cCMTU,5+-+J&3,?.G:.PDE)7)&&(*)>CM6f6=)>.4L)<1 &C-n?)p&C-De)e1I/$:@ .Y&63,5C-$N&=.^C-$&=(*)m.13( )>9:S*+-)?Q @HÆj@Ê ?³/Á”´O±" ² Q]³ R´OÅÇÀ”´NÆ B |w&3,?.GZ.=13(*)>9*S*+M)>6 ACBD<E^CX.F.=,5CX9Z&I V G) FE‡5€„ z€7‡ HK¹7”„¸Lˆ*&=( ,5$,?$*I5&=(*)76F.=13(*)>9*S*+M)>6 ACBID JL[5CM-T ACBD<E^1>,5$ Ta)<,?.C V +-cE.13(*)<9:S*+-)b,5+-+*&3,?.Ge.)&3.&=( ,j/& A BID5Jm1>,5$ETa)>,/.YC V +-ce.=13(*)<9:S*+-)?[ V S:&K$ I5&b‚<”¹3„H‚o„7€3Š7jQŒ^( ,5&KCX.7@[ ACBD<EP1>,5$ETa)<,?.C V +-cE.13(*)<9:S*+-) ,?+M+\&3,?.G.)&3.^&( ,5G& ACBD5Jd1>,5$][ V S:&&=(*)76=)m)q:CX.0&3.,j&+-)>,/.0&I/$*)f&=,?.G.)&P&=( ,jK& A BID5Jd1>,5$$*I5&Ta)<,?.C V +Mc.13(*)<9:S*+-)?[*8P( )76=)>,?L. ACBID<E 1>,5$]Q^#™T ACBID)Ep17,5$WTa)<,?.C V +McW.13( )>9:S*+-)',?+M+J&=,?.G.)&3.P&=( ,jM& A BID5Jd1>,5$WTa)>,/.YC V +-c.=13(*)<9:S*+-)',5$ 9u‚<”¹3„e‚o„7€3Š7j[L&(*)>N$ ACBID)E',5$ O9 ACBID5J ,?6)m17,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S*$ 9*)>.CM63, V +-)fTaI?6.I?DE)m,54*4 +MCX17,5&C-I?$ .>Q lI?6=)m9:C-.=1SL..CMI/$ .^I?$&( C-.P+X,j&=)76










 







 











O87 C L' * :"9$ " 





)8 I0O74  02  <. &87$ ;  8:; "935 * &46 !

#"%$

'&

)(

*&

–O)>n?)>6=,?+J.13( )7DE)>.bI5TF1+X,?.=.YCM;L1>,j&C-I?$WI?T26=)>,?+A@B&C-DE)m&=,/.YGW.=13(*)>9:S +MC-$*ik,?+Mi/I?6=CA&=(*Dd.P)q:CX.0&DE)'1+X,?.=.YCM; )<.P&( )p6)<,5+M@ &=CMDE)&=,?.G.=13(*)>9:S +MC-$*iZ,?+Mi/I?6=CA&=(*Dd. V ,?.)>9dI/$k(*Ij8w&=(*)f.=13(*)<9:S*+-CM$*iZ4LI/CM$N&3.,?6)f9:);L$*)>9\QFŒ^( )b&=(*6)>)Dd,?CM$d&0cO4z)>.I5T.13(*)<9:S*+-)763. ,/171I/6=9*CM$*iZ&Ie&=(*C-.b1+X,?.=.YCM;L17,5&C-I?$.13(*)>DE)p,56=)?˜21+-IO13GN@%9:6=CMn/)7$][O)7n/)7$N&Y@%9:6=CMn/)7$][:,?$ 9(Nc V 6=CX9\Q   14> 214:,+-%'  7  14  %'& > ;) .,$ ( -!  14 $ , 1 %& >  8   <!) .% <3  %/.,0 $   <3K&  < 1 7 % +-.'/)1>  1:(?21 $ 57 + %'  7 ,43 $ 014  %'&(>  8   <) %(, 5O %6.,0 15  )   57<7-!  14 A.14> &4%  "1>  1:  <3K&  <? #  408.   %A & /. $ 1>  1: <33&(<)9 - > > ) 7   2114& 3. 19< % :5O=$  G14  %'&(>  8 2  <?

|Ta)78 C-De4zI?6&=,?$N&De)>D V )763.^I5T)>,?13(I5T&( )>.)&=(*6=)7) V 6=I/,/9k1+X,?.=.)>.^I5T2.13( )>9:S*+-C-$*id,5+-i?I?6=CM&(*Dd.^,56=)f&(*)HTaI/+M+-Ij8PCM$ i ˜ Ì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@ Ì ¾%&(L¾I:171S 66=)7$ 17)mI5T&=(*)p&3,?.Gº\»FC-$l&=(*)'Dd,j—0I/617cO17+M)/QfRbTF1I/S*6=.)?[L&( C-.D'S .Y& V )'&=(*)Z.=,5DE)pC-$







*

Version 2 CSE, IIT Kharagpur

Φ+ x= pi

M

M

Ti(1) Ti(2)

Ti(k−1)

Φ

Ti(k) Ti(k+1)

Ti(2k−1)

Φ

x

x

rCMi/S*6)#L˜ y,j—0I?6 K c:17+M)H}~(*)>$W| Œ,?.Gº » ¶b,/.I/$:@)76=I U( ,?.CM$ i time

)<,?13(DE,5—0I?6P1c:17+M)/Q |..S*DE)f&( ,5&&=(*)m.YC-•7)fI5T)>,/13(kDd,j—0I/617cO17+M)HCX. sQ*Œ^(*)7$J[:Ta6I/D ,5$CM$ .4z)>1 &=CMI/$I?TrC-i Q# [OTaI/6K&=(*)f&=,/.YGE&=Ie6=)74z)>,5&CX9:)>$/&=C-1>,5+-+Mc C-$W)>,?13(Dd,j—0I/6^17c:1+-)?Q  . ¼ Ì ¾ z»'M

  s¼KJ Ì ¾ bIj8m[?TaI/6F&( )b&3,?.GZº\»\&=I'( ,on/)CX9:)7$N&CX17,?+LI:1>1S*6=6)>$ 1)&C-De)<.UC-$)<,?13(dDd,j—0I/6K1c:17+M)/[ = WD'SL.0&)>`NS ,5+ &I"L»¼”.)7)rC-i Q J:Q #N¾Q –OS V .0&=CA&=S:&C-$*iE&=(*C-.CM$l‹q:4*6 [  . ¼  Ì '¾ ! LE»  L» .  ! L» –OIL[&(*)DE,5—0I?6e1c:1+-) 17I?$N&=,?CM$ .Z,5$sC-$N&)7i/6=,?+UDZS*+A&=CM4 +M)I5T L»QyŒ^(*CX.e,56=i?S*DE)7$N&'( I?+X9*.mTaI/6')>,/13(u&=,/.YGuC-$s&(*)k&=,/.YGu.Y)7& C-66=)>.4z)>1 &=CMn/)I?TCM&=.4*( ,?.)?QŒ^(*)>6)7TaI?6=)?[  .  t¼ IF 7 EH97   7  o¾ Q 







87   . &87)35 $

&

(

Kc:1+-CX1k.=13(*)>9:S +M)>6=.e,56=)n?)>6cu4zI?4*S +-,?6e,?$ 9t,56=) V )7C-$*i{)qO&)>$ .YC-n?)>+McuS .)>9CM$&(*)C-$ 9:S .Y&6=c?Qu|·+X,56=i?)kDE,5—0I?6=CA&0cuI?Tb,5+-+.Dd,5+-+ )>D V )>9*9:)<9{,?4*4*+-C-1>,j&=CMI/$ . V )>CM$*iDd,5$OS:T”,/1 &S 6)<9_4*6=)>.)7$N&+-c_,56=) V ,?.)>9yI?${17c:1+-C-1E.=13(*)>9:S +M)>6=.>Q Kc:1+-C-1E.=13(*)>9:S +M)>6=.f,56=)e.C-De4 +M)/[ ) d17CM)>$N&>[/,?$ 9e,56=)K)<,?.cm&IH4*6=I?i/6=,?DQ|$E)q*,5DE4*+-)P,54*4 +MCX17,5&C-I?$e8P(*)76=)P,f17c:1+-C-1^.=13(*)>9:S +M)>6CX.$*I/6Dd,?+M+-cmS .)>9ZC-.,&)>DE4L)>6=,5&S*6=) 17I?$N&6=I?+-+M)>6>Qd| &=)7DE4L)>6=,5&S*6=)d1I/$/&=6I/+M+-)76H4z)76=CMI:9:CX17,?+M+-cy.=,5DE4*+-)>.f&=(*)E&)>De4z)763,j&=S*6=)dI5T,W6=IOI?D ,?$ 9{DE,?CM$N&3,5C-$ .HCA&e,j&p,W4*6=)>.)& nj,5+-S*)/QU–OS 13(&)7DE4z)763,j&=S*6)p17I?$N&6=I?+-+-)763.K,?6)H)7D V )<9*9:)<9C-$&0cO4*C-1>,5+]17I?DE4*S:&=)76@™17I?$N&6=I?+-+M)<9,5C-61I/$ 9:CM&C-I?$*)>6=.>Q Task Number

Frame Number

T3

F1

T1

F2

T3

F3

T4

F2

r CMi/S*6=) (*˜|$l‹q*,5DE4*+-)p–:13(*)<9:S*+-)pŒ, V +M)fTaI/6, Kc:17+MCX1p–:13(*)<9:S*+-)76 | 1c:1+-C-1e.=13(*)>9:S +M)>6b6=)74z)>,j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5L¼ 7  » ¾  » TaI/6P)>,?13(  » Q 













































ÌJ

Version 2 CSE, IIT Kharagpur

J)&S .; 63.Y&P&6=cdTa6=,?DE)H.C-•7)J:Q r I?6r . Je,5$ 9&=,/.YGkº Fj˜ J ! J  %55L¼3J%7 #N¾ # #  J # Œ^(*)>6)7TaI?6=)?[NTaI?+6 OFb&(*)mC-$*)<`/SL,5+-CA&0cCX..=,j&=C-.Y; )>9]Q J)&S .&=6ckTaI?6r . Je,5$ 9k&=,/.YGOº H?˜ J ! J  %55L¼3J%7 (?¾ # #  Ì ( Œ^(*)>6)7TaI?6=)?[NTaI?+6  H &(*)mC-$*)<`/SL,5+-CA&0cCX..=,j&=C-.Y; )>9]Q J)&S .&=6ckTaI?6r . Je,5$ 9k&=,/.YGOº N?˜ J ! J  55z¼KJ:7J?Ë/¾ # #  J J5Ë r I?+6  N &=(*)mC-$*)>`NS ,?+MCM&0cCX.P.,5&CX.0; )<9\Q Œ^(*)>6)7TaI?6=)?[NTaI?6r . Je,?$ 9&3,?.Gº P ˜ J ! J  55z¼KJ:7J?Ë/¾ # #  J J5Ë r I?+6 'PH&=(*)mC-$*)>`NS ,?+MCM&0cCX.P.,5&CX.0; )<9\Q Œ^(OS .>[*1I/$ .0&=6=,?CM$N& eC-.P.=,j&=C-.Y; )<9 V ck,?+M+&3,?.G:.TaI?6^Ta63,5DE)m.YC-•7,) J*Q –OIL[OTa6=,?DE)p.YC-•7) Je.,5&CX.0;L)>.P,5+-+&( )H&(*6=)7)m1I/$ .Y&63,5C-$/&3.7Q¶b)7$ 17)?E[ JZCX.P,eTa)>,?.C V +M)fTa63,5DE)m.YC-•7)/Q J)&S .&=6ckTa6=,?De)m.CM•> ) # Q r I?6r . #d,5$ 9&=,/.YGkº Fj˜ J ! #  %55L¼ # 7 #N¾ # * # # Œ^(*)>6)7TaI?6=)?[NTaI?+6  F &(*)mC-$*)<`/SL,5+-CA&0cCX..=,j&=C-.Y; )>9]Q J)&S .&=6ckTaI?6r . #d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?Ê]Å1 ´ 3™ÊLÆ­ ´O±´NÆj­*ÀhÁ ?´OÅ QJ³ R´OÅÇÀh´NÆ B Œ^(*)mTaI/+M+-Ij8PC-$*iEC-.&(*)p4L.Y)>S 9:I5@%1I:9:)HTaI/6,Ei/)7$*)>6=,?+MC-•7)<917cO17+MCX1p.=13(*)>9*S*+M)>6 8 )'9:CX.17S .=.Y)<98P( C-13(_.=13(*)>9*S*+M)<.4z)76=CMI:9:CX15[z,54z)76=CMI:9:CX15[z,5$ 9l.4zI?63,?9:CX1f&=,/.YG:.>Q#™&C-.,?.=.YS*DE)<9&( ,5&&(*)Z4*6=)>1I/DE4*S:&)<9W.13(*)<9:S*+-) TaI/6P4L)>6C-I:9:C-1&3,?.GO.^CX.P.Y&I?6=)>9kCM$l,E.=13(*)>9:S +M)f&=, V +-)?[*,5$L9kCMT6=)>`NS*C-6=)>9d&=(*)p.4LI/6=,/9:C-1b&=,/.YG:.^( ,on/)f,?+M6=)>,/9:c V )7)7$l.S V —0)<1 &)<9&=Id,5$ ,/171)>4:&=,?$ 1)f&=)>.Y&b,5$ 9I?$*+-cd&=(*I/.)H8P(*C-13(W( ,on/)4L,?.=.Y)<9&=(*)H&)<.0&b,?6)m,onj,5C-+-, V +-)bTaI/6.13(*)<9:S*+-CM$ i Q 

B B B ACBD

  B  5A  "!"#5BI D

  $ &%'(*) +!,.- / E) +!,1032 145) 66748 9 A  D 7290 $ :2 ;,5A A 66 <: D ACBD

 9$

3 A = BI D +B  >  A ?@3A) ACBI D    +A = 2 3 B >5
1

 5E 66 A =2 3 F B 5A @A B :$ 7 ,=HG ACBI D    = I2  B rel="nofollow">+A @AA JB)K66L, D "  "2;: D ,;0I EM D ,/<N 66 A O  A =  0=

*EP;7 2 B 20 =  5G   QAE 66742,5A ,21 &E  5G R

Œ^(*)p17c:1+-C-1m.=13(*)>9*S*+M)>6P6I/S:&C-$*) B B B ACBD

 *JC-.,?1&C-no,5&)<9,5&P&(*)')7$ 9I5T2)7n/)76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I/S*$ 9W&3,?.G:.m,56=)e,?+M+24z)76=CMI:9:CX15Q ])7&pº V )E&(*)EI?$ +Mc V ,?13GOi?6=I?S*$L9W&=,/.YGQ J) & & V )E&=(*) 4*6=I:1)<..CM$ i'&=CMDE)m6=)>`NS*C-6)>De)>$N&^I?Tº Q#%$&=(*C-.b17,?.)?[O&=(*)p1I/DE4*+M)7&C-I?$&C-DE)¼ 5  ¾KTaI?6^&( ) V ,?13GOi?6=I?S $ 9d&3,?.GC-.^i/CMn/)7$ V cz˜ &

  u3¼ J  ¾ 5 . Ì  » F L&o»» Œ^(*CX.m)7qO4 6)<..CMI/$yCX.m)>,/.Yc_&IlC-$/&=)76=4*6=)&>Qk}~(*)7$s,5$OcyTaI?6=)7i?6=I?S $ 9l&3,?.G_C-.p)q:)>17S:&C-$*i [J&(*) V ,?13GOi?6=I?S $ 9l&3,?.G_8,?CA&3.7QŒ^(*) ,on/)763,5i?)  S:&=CM+-CM•<,j&=CMI/$y9:S*)'&I&=(*)pTaI/6)>i?6=I?S*$L9k&3,?.Gº\»UC-. &o» L»%[\.CM$ 17) &o»U,?DEI?S*$N&bI?TF4*6I:17)>.=.YC-$*id&=CMDE)'CX.6)<`/S CM6=)>9WIjn/)76 )>n?)76=c L»24z)76=CMI:9\Q2#™&^TaI?+-+-Ij8.U&=( ,j&,?+M+zTaI?6=)7i/6I/S*$ 9E&3,?.G:.U&=I?i/)&( )76^8KI/S*+X96=)>.S*+A&^C-$  S*&C-+MC-•>,5&C-I?$kI?T » TF QŒ^(*)76=)TaI/6)/[ Ì 



























 

 



Version 2 CSE, IIT Kharagpur



&=(*),on?)>6=,?i?)m&=CMDE),onj,5C-+-, V +-)ZTaI/6m)q:)>17S:&C-I?$xI5TK&(*) V ,?13GOi?6=I?S*$L9l&=,/.YG:.fC-$x)>n?)>6clS*$ CA&pI?TK&=CMDE)dCX. Ì  » F Qr 6I/D &(*CX.>[ ‹FqO4 6>6Q J:Q  TaI/+M+-Ij8.)>,?.C-+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S*6p1I/De4 S:&=,5&C-I?$ I?T&(*)E,?1&S ,?+17I?DE4*+-)&C-I?$y&C-DE)ZI?TFº b[8K)e17,5$yCMDd,5i/CM$ )p&(L,j&f&(*)e)q:)>17S:&C-I?$_&C-De)eI5TK)7n?)>6cTaI?6=)7i/6I/S*$ 9&3,?.GCX.CM$ 176)<,?.)>9 V c_&08Il1I/$/&=)qO&'.8PCA&313(y&=CMDE)>.¼aI/$*)9:S*)E&=IlCA&3.Y)>+ATP,5$ 9{&=(*)I5&=(*)76p9*S*)E&IW&=(*) V ,?13GOi/6I/S*$ 9y&=,?.G_6=S*$*$*C-$*i_,5Tƒ&)76m)<,?13(x&C-DE) CM&E17I?DE4*+-)&=)>.3¾ QsŒ^(OS .7[F&(*)$*)&E)Ž)>1&eI?Tb1I/$/&=)qO&d.Y8PCM&=13(*)<.Z1>,5$ V )CMDd,5i/CM$ )>9u&=I V )1>,5S .C-$*i_&=(*))7q:)>1S*&C-I?$s&=CMDE)I5T&=(*) TaI/6)>i?6=I?S*$ 9l&=,?.GW&IWC-$ 16=)>,/.Y) V c Jk17I?$N&)7qO&m.8PCM&=13({&C-De)<.7[JChQ )?Q'&I ( JkDECM+-+MCU–:)>1ZTa6I/D (5ËkDECM+-+MC–O)>1>.7QeŒ^(*C-.H(L,?.f4*CX1 &I/6CX,5+-+-c V )7)>$W.(*Ij8P$CM$lrC-i Q  Q  



 



















 







 









Context Switching Time



  Foreground  Back ground   01

51 52



   Foreground  Back  Foreground ground   

100

rCMi/S*6)  ˜FŒ,/.YGk–:13( )>9:S*+-)HTaI?6‹Fq*,5DE4*+-)0J*Q 

time in milli Secs

ÌI

Version 2 CSE, IIT Kharagpur

bIj8«S .CM$ iE‹Fq:4*6>Q J*Q  [:8K)Hi?)7&^&(*)H&=CMDE)m6=)>`NS*C-6)<9 V cd&=(*) V ,?13GOi/6I/S*$ 9d&3,?.Gd&Id17I?DE4*+-)&)/˜ Ì Ë/Ë?Ë . J5Ë9*  # 1  &65   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)H&=,?.Gk.)&PCX..13( )>9:S*+X, V +M)/Q QJÊLÀhÇJ²<Á”Êz±Uµ Œ^(*)H&=I5&3,5+\S:&=CM+-CM•<,j&=CMI/$W9*S*)f&IE&( )H&(*6=)7)f&=,/.YG:.^CX.Pi?C-n?)>$ V c˜ N» F . H F

    NF  . Ë *  Œ^(*CX.PCX.^+M)<..&=( ,5$ Ì Q2Œ^( )76=)TaI?6=)?[O&=(*)H&=,/.YG.Y)7&^CX.‹ r“.13(*)<9:S*+X, V +-)?Q  | nj,56=C-,?$N&ZI5TH‹ fr .=13(*)>9:S +MC-$*ixC-. Áh±KÁ {TÇ U­ ]Á”² > Á”Æj®7² > –:13(*)<9:S*+-CM$*iLQ#%$ 1 Jr[F,5&e)>n?)76=ct.=13(*)>9:S +MC-$*i 4zI?C-$N&>[L,E+X,jq:CM&0cknj,5+-S*)mCX.b17I?DE4*S:&=)>9TaI?6)>n?)>6cd&3,?.GkC-$W&(*)Z.Yc:.Y&)7DW[ ,?$ 9&( )m&=,/.YG(L,onNC-$*iE&=(*)pDECM$ CMDZS*D’+X,jq:CM&0ckCX.P)q:)<1S:&=)>9 ; 63.Y&>Q J,jq:CM&0clI5T^,k&3,?.GlDE)>,?.S*6=)>.&( )E,?DEI?S*$N&mI5TK&C-De)e&=( ,j&p8I?S*+X9_6=)7Dd,?CM$xCATK&(*)e&3,?.G_C-.f&3,5G/)7$yS 4{TaI/6H)q:)>17S:&C-I?$x$*)qO&,/.YS 6)eI5TF&=(*) L )7qOC V C-+MCM&0c_,onj,5C-+-, V +-)'TaI/6H.=13(*)<9:S*+-CM$*iW,&=,/.YGQZŒ^( )eDd,?CM$x9:CAŽ)76=)7$L1) V )7&08K)>)7$ 1 Jr ,?$ 9‹ rC-.P&( ,5&S*$*+-CMG/)H‹ r[  Jrs&3,5G/)>.CM$N&=I1I?$L.YCX9:)763,j&=CMI/$&=(*)m)q:)>17S:&C-I?$&C-DE)mI5T,Z&=,?.GQ 





 



















































 





 

Ì*

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)b&=(*)8I?63.Y&Y@%17,?.)P)q:)<1S:&=CMI/$&C-DE) I?T\,m&=,?.G')>n?)>$ V )7TaI?6=)^&(*)f.Yc:.Y&)7D C-.K9:)7n/)7+-I?4z)>9\Q2Œ^(*)8KI/6=.Y&Y@%17,/.Y))q:)>17S:&C-I?$E&=CMDE)<.U,56=)PS .S ,5+-+-ce9:)7&)>6DEC-$*)>9E)7qO4z)76=C-De)>$N&=,5+-+-c I/6^&(*6=I?S*i/(.C-D'S*+X,j&=CMI/$.Y&S 9*CM)<.7Q Œ^(*)UTaI?+-+MIj8PC-$*ib,?6)K.YI/De)UCMDE4zI?6&=,5$N&216=CA&=)76=C-,^&=( ,j&217,?$ V )KS .)>9H&=I13(*)<13Gb&=(*).=13(*)<9:S*+X, V C-+MCM&0cfI5T ,.)&I5T:&=,/.YG:..Y)7&S*$L9:)76g _|pQ 















J5Ë

Version 2 CSE, IIT Kharagpur

Priority

Priority

Rate

Period

(a)

(b)

rCMi/S*6) Ì Ë*˜+F6=CMI/6CM&0c|b.=.CMi/$*DE)7$N&^&IŒ,?.GO.C-$lg _ |

CBl´O³/´N®<®<­:Æ ZÊL±ÅÁ”²>ÁhÊL±Kµ |Ä.)&PI5T4L)>6C-I:9:C-16=)>,5+M@B&C-De)&=,/.YG:.8I?S*+X9$*I?& V )mg _| .=13(*)<9:S*+X, V +-)S $*+M)<..K&=(*)7ck.=,j&=C-.YTacd&=(*) TaI/+M+-Ij8PCM$ ie$ )>1)<..=,56=cd1I/$ 9:CM&C-I?$]˜ &» z  » F » . » TF » Ì 8P(*)>6) &o»\CX.2&=(*)8I?63.0&U1>,?.))7q:)>1S*&C-I?$e&C-DE)b,5$ 9 z»\CX.2&(*)b4L)>6C-I:9EI5Tz&(*)P&3,?.G'º\»0[/$dC-.F&(*)P$OS*D V )>6UI?TL&3,?.GO.&I V )b.13( )>9:S*+-)>9][ ,?$ 9 z»2CX.^&( )  ÄS:&=CM+-C-•>,j&=CMI/$l9:S*)H&IE&=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-I?$9*S*)P&IH&3,?.G'º » 'Q J)&US .U$*Ij8)7q*,5DECM$ )P&(*)bCMDE4*+-C-1>,j&=CMI/$ .I5T&=(*C-.F6)<.YS*+M&>Q2#™T],m.)&UI?TL&3,?.GO.U.,5&CX.0; )<. &=(*)p.YS d17CM)>$N&b1I?$L9:CA&=CMI/$][O&( )7$WCA&CX.Pi/S ,563,5$N&)>)>9&( ,5&&=(*)p.)&I5T&=,/.YG:.8I?S*+X9 V )pg y| .13(*)<9:S*+X, V +-)?Q KI/$ .YCX9:)>6K&=(*)p17,/.Y)H8P(*)>6)f&=(*)76=)HC-.PI/$*+-cI?$*)f&3,?.GCM$&=(*)p.Yc:.Y&)>D[ ChQ )?Q2$ . Ì QU–OS V .Y&CM&S:&=CM$ id$ . Ì CM$l‹q:4*6p3¼ J:Q Ì ËN¾ [O8K)mi/)& F F

Ì 3¼ J   Ì ¾ 7  » » F » F » Ì –OC-DECM+X,56=+-c?[OTaI?6P$ . J'8)Hi?)7& H H » F » J K¼ J  Ì ¾ 7  » F » vË * J8# r I?6P$ . e8)fi/)& N N » TF » LK¼ J  Ì ¾ 7  » F » vË  * JÌ 







































2











































Version 2 CSE, IIT Kharagpur

}~(*)>$W$ 8)Hi?)&

  »

«¼KJ    Ì ¾ 7  » F » F z» .  Ë ‹Uno,?+MSL,j&C-I?$'I5TL‹FqO4 6>Q J*Q Ì Ë8P(*)>$'$ C-$On?I/+Mn/)>.J,?$pC-$ 9:)&=)76=DECM$ ,5&))q:4*6=)>.=.YC-I?$'I5T:&( )K&0cO4z) Ë*Q cm,54 4*+McOC-$*i ¶I/.4*CM&=,?+ . 6=S*+-)8)P17,?$'n?)>6CMTacm&=( ,j&2&( )P6C-i?(N&2( ,5$ 9e.C-9:)^I?T &( )P)q:4*6=)>.=.YC-I?$Z)7nj,5+-S ,j&=)>.&I J . Ë Q  J:Qr*6=I?DÄ&=(*), V Ijn?)^1I/De4 S:&=,5&C-I?$ .>[ CM&mC-.H1+-)>,?6f&( ,5&f&=(*)eDE,5q:CMDZS*D  S:&=CM+-CM•<,j&=CMI/$y&=( ,j&m17,?$ V )E,/13(*C-)7n?)<9_S*$L9:)76mg _| CX. Ì Q'Œ^(*CX.HCX.f,/13(*C-)7n?)<9_8P(*)>$_&=(*)76=) CX.mI?$ +Mcy,W.CM$ i?+-)Z&3,?.G_C-${&=(*).cO.Y&)>DWQ|b.H&=(*)d$OS*D V )76pI?TU&3,?.GO.HC-$ 176)<,?.)>.>[\&(*),/13(*C-)7nj, V +-)  S:&=CM+-CM•<,j&=CMI/${T”,?+M+X.m,5$L9x,/.  &(*)p,/13(*C-)7nj, V +-)mS:&=CM+-CM•<,j&=CMI/$W.Y&=, V C-+MC-•7)<.,j&+-I?i J:[*8P(*CX13(WC-.,54*4 6Ioq:C-DE,5&)>+McË Q  J:QFŒ^( C-.bC-.P4 C-1&I?6=CX,5+-+Mck.(*Ij8P$WC-$WrC-i Ì/Ì Q2}{)m$ Ij8«C-+M+-S .Y&63,j&)f&=(*)p,54*4 +MCX17, V CM+-CM&0cI5T&(*)pg _| .13( )>9:S*+X, V CM+-CA&0c16=CA&=)76=C-,'&(*6=I?S i?(W,'Ta)>8)7q*,5DE4*+-)>.>Q

























1 Σ ui 0.692

(1,0)

Number of tasks

r C-i?S*6=) Ì?Ì ˜|13(*CM)>nj, V +-) P&=CM+-CM•<,j&=CMI/$8PCM&(&=(*) S*D V )>6I5T2Œ,/.YG:.^S*$L9:)76g y| ]­ 2À”´  B ]µ K(*)>13G8P(*)&=(*)76b&(*)pTaI?+-+MIj8PC-$*i.)&I5T4z)76=CMI:9:CX1m6=)>,?+A@B&C-DE)H&=,?.G:.PCX..13( )>9:S*+X, V +M)mS*$L9:)76fg _| I/$_,ES*$*C-4*6I?@ 17)>.=.YI/6>˜º F . ¼ & F . J5Ë*[  F . Ì Ë?ËN¾ [:º H . ¼ & H6. ?Ë*[  H . Ì (5ËN¾ [OOº N . ¼ &N . ?Ë*[ EN . J5Ë?ËN¾ Q S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)>9\QČ^(*)>6)7TaI?6=)?[K&(*)l&3,?.G“.)&kCX.kg _| .=13(*)>9*S*+-, V +-)?Q  ]­ 2À”´  B Jµ K(*)>13G_8P( )&( )76m&=(*)dTaI?+-+-Ij8PCM$*il.)&pI?TK&=(*6)>)d4L)>6C-I:9:CX1Z6=)>,?+A@B&C-DE)E&=,/.YG:.HCX.p.13( )>9:S*+X, V +M)ES*$ 9*)76'g y| I?$u, S*$ CM4*6=I:1)<..I?6<˜Gº F . ¼ &F . J?Ë*[ IF . Ì Ë/Ë/¾[NOº H . ¼ &H . /Ë*[ EH . Ì (5Ë/¾[Oº N . ¼ & N .  Ë*[  N . J?Ë?Ë/¾Q QJÊLÀhÇJ²<Á”Êz±Uµ J)&S .; 63.Y&b1I?DE4*S*&)f&(*)H&=I5&3,5+  S*&C-+MC-•>,5&C-I?$l9:S*)H&=IZ&=(*)mi?C-n?)>$k&3,?.Gk.)&>˜ N J5Ë ?Ë Ë z » . Ë?Ë  (?Ë  J5 Ë/Ë . Ë *,( Ì Ì » F bIj8w13( )>13GOCM$ iHTaI?6 JCMS,5$ 9 ,ocN+X,5$L9e176CM&)>6C-I?$J˜ N» F z» vË  *'UN.CM$L1)bË *,( w Ë  * [5&( )&=,/.YGE.)&UCX.F$*I?&g y|«.=13(*)>9:S +-, V +M)/Q 



































JJ

Version 2 CSE, IIT Kharagpur



JCMSW,5$ 9! ,ocN+X,5$L9d&)<.0&'¼h‹q:4*6$ .Y)/Q

1 +C))5:  5 4)  $ ( &!) 4%):0 > ) %;<:3$  = 6 T8&4)*)  <  %;<7.   1 %& > )#. > (?  ,$ $  4) 4%'3 7   +6))5:; 59+ )  > 9$ ( &,) 4% ),0 > ) %"< <:3E ;;),0 > >*.   14  %'&(> )#. > (?

#™&PTaI/+M+-Ij8.Ta6I/D &( C-.&( ,5&)7n?)>$8P( )7$l,e&=,/.YGk.)&PT”,?CM+X. JCMSl,5$L9 ,ocO+-,?$ 9 .U&=)>.Y&>[L8K)m.(*I?S*+X9$*I5&b17I?$ 17+MSL9:)H&( ,5&CA&CX.P$*I?& =. 13(*)>9*S*+-, V +-)PS*$ 9:)>6Ug _|'Q/}x)$*)>)>9e&IH&=)>.Y&FTaS*6&(*)>6F&=Ip13(*)>13GZCAT&( )P&=,/.YGe.Y)7&UC-.Ug _| .=13(*)>9*S*+-, V +-)?Q2|w&)<.0&F&=( ,j&17,5$ V )4z)76@ TaI/6DE)>9f&=Ib13(*)<13G8P(*)7&(*)>6,^&3,?.Gf.)&C-.g _|.=13(*)<9:S*+X, V +-)F8P(*)>$mCA&T”,5C-+-.]&(*) ]C-Sp,5$ 9 ,ocO+-,?$ 9&)>.Y&JCX.]&=(*) J)7(*I:1•>GOc .\&=)>.Y&  ™Q J)7(*I:1•>GOcE&)>.Y&( ,/. V )>)7$W)q:4*6=)>.=.Y)<9,/.PŒ^(*)7I/6)>D J:Q *Q „ R:¸z…?„7€'j¸@Tdˆ™jŠ# 5V*oŠ ƒ¸O†   j‰ƒ‰ˆZV „pˆ%oŠ#jŠGFE„3„7ˆ ¬ R´OÊ Æj´  B GB Š„7ˆ‡ "  „€ ”‡<…j”¹e€„35‰ %ˆhZ Fd„Zˆ™jŠ #oŠmXŠ  + Š7Q¹ V*„3… R:‰M ‰-2 ˆ V*„7ƒ€m€„Š  „3¹ˆBƒ‚j%„ HU€3Š ˆ…?„3/…O‰ ƒ¸z„Š R:¸z…/„€ <„7€‡ 5V*jŠ3ƒ¸O† 2





T1

T2 10

T1 30

T2 40

T1 60

T2 70

90

time in msec

(a) T1 is in phase with T2

T2

T1 20

T2 30

T1 50

T2 60

80

time in msec

(b) T1 has a 20 msec phase with respect to T2

rCMi/S*6=) Ì J:˜2}xI?63.0& ,?.)mgP)>.4zI?$ .)mŒ^CMDE)HTaI?6,EŒ,?.GRf1717S*63.K}~( )7$W#™&C-.CM$F( ,/.Y)H8PCM&(W#™&=.b¶C-i?(*)>6 F6=CMI/6CM&0cdŒ,/.YG:. | TaI/6Dd,5+4 6I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=C-I?6=CA&0c&=,/.YGQ _I?6=)p$OS*D V )76fI5TUC-$ .Y&=,?$ 1)<.I5T,d(*C-i?(*)>64*6=C-I?6=CA&0c&=,/.YGW8PC-+M+I:171S 6>[z8P(*)7$x,d&3,?.GCX.fCM$_4 ( ,?.)'8PCM&({CA&<[ 

J2

Version 2 CSE, IIT Kharagpur

P8 (*)>$uCA&'CX.mC-$u4*( ,?.)E8PCA&=(sCA&Z6=,5&(*)>6H&( ,?$xI/S:&pI5T^4*( ,/.Y)E8PCM&(sCM&>QŒ^(*C-.p( ,?. V )7)>$sCM+-+MSL.0&=6=,5&)>9y&( 6I/S*i?(s,W.YC-DE4*+-))q*,5DE4*+-) C-$trCMiLQ Ì J:Q#%$trCMiLQ Ì J*¼h,/¾ [2,l(*C-i?( )76p4*6=C-I?6=CA&0cl&3,?.GxŒ Ì . ¼ Ì Ë*[ ?Ë/¾CX.pC-$s4*( ,/.Y)d8PCM&(,W+-Ij8)76p4*6=C-I?6=CA&0cl&3,?.GxŒJ . ¼ /Ë*[ Ì J5ËN¾ [ &=(*)d6)<.Y4zI?$L.Y)e&C-DE)dI5T^ŒJC-.  ËDd.)>1?Q¶Ij8)7n?)>6>[\C-$srCMiLQ Ì J*¼ V ¾ [J8P(*)7$sŒ Ì ( ,?.m, J?ËkDd.)>1E4*(L,?.)?[\&=(*)d6)<.Y4zI?$L.Y)e&C-DE)dI5T Œ J V )<1I/De)<. *?Ë*QŒ^(*)76=)TaI/6)/[jCAT,&3,?.GmDE)7)&3.2CA&3.; 63.0&9:)>,/9:+-CM$*)^S*$L9:)762•7)>6If4*( ,/.YC-$*iL[o&(*)>$'&=(*)7cpCM&8PCM+-+ODE)7)&F,?+M+:CM&=.29:)<,?9:+-CM$ )>.>Q 

deadline for T1 T1 20

100 (a) T1 meets its first deadline

deadline for T2 T1

T2 20

50

150 (b) T2 meets its first deadline

deadline for T3

T1

T3

T2 20

50

T1 100

T2 120

T3 150

190

(c) T3 meets its first deadline

r C-i?S*6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*+MC-$*)?Q r I?6F&=(*)&3,?.GZOº N?˜^3¼ J2& F  J2& H  &N7¾ ENb(*I?+X9*.>[N.CM$L1=) J!6J?Ë  J!/Ë   Ë . Ì  2Ë 1 &65 J5Ë?9Ë 1  &65jQ}{)( ,on?)b17I?$ .CX9:)76=)>9 J%! &F2,5$ " 9 J ! &HF.CM$L1)FGº F2,?$ 9mOº HI:1717S*6]&08PCX1)F8PCM&( CM$'&(*)U; 6=.Y&9:)<,?9:+-C-$*)FI5T*º N Q2Œ^(*)>6)7TaI?6=)?[<º N De)>)&3.JCM&=.]; 6=.Y&9*)>,?9*+MC-$*)?Q2–OI [<&=(*) i/CMn/)7$d&3,?.GE.)&^CX..=13(*)<9:S*+X, V +-)bS*$L9:)76Pg _|'Q*Œ^(*)H.13(*)<9:S*+X, V C-+-CA&0ce&)<.0&TaI?6^º N (L,?.4*CX1 &I/6CX,5+-+-c V )7)>$.(*Ij8P$C-$rC-i Q Ì  Q–:CM$ 17) ,?+M+O&=(*)&=,?.G:.De)>)&&=(*)7C-62; 63.0&F9:)<,?9:+-CM$ )>.S*$ 9:)>6•7)>6If4*( ,/.YC-$*i [5&(*)>c',56=)g _|~.13( )>9:S*+X, V +M)^,?1>1I?639:C-$*i&I ])7( IO17•7GO'c .26=)>.S*+M&=.>Q 

















J)&US .K$*Ij8v&6=ce&I'9*)76=CMn/)b,mTaI/6Dd,5+L)q:4*6=)>.=.YC-I?$eTaI/6F&( C-.KCMDE4zI?6&=,?$/&6)<.YS +A&UI?T ])>(*I:1•7GOc/Q' J)& <º F 7Yº H 7   7Yº » V )b&(*)f.Y)7& I?T&3,?.G:.^&I V )'.=13(*)>9:S +M)<9\Q* ])&SL.b,5+X.I,?.=.YS*DE)H&=( ,j&&=(*)m&3,?.GO.( ,on?) V )7)>$lI?639:)76=)>9CM$_9*)>.=1)7$L9:CM$ idI?639:)76I?T2&(*)>CM64 6C-I?6=CA&0c/Q Œ^( ,5&fCX.>[&=,?.Gl4*6=CMI/6C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c V )p.13(*)<9:S*+-)>9\Q Š  $ & <º\» mˆ V* „  + Š7W¹ V „3… R:‰M ƒ‰ ƒˆ T¹7€ ƒˆ™„7€ ”‡j¸~XŠd†5ƒ‚j„¸  T ¬ R´OÊ Æj´  B  B J‡5€W{Š7„7ˆ'‡ " V*j€ Fd‡j¸L”¹3j‰ƒU‰ Ts€„7‰M5ˆ™„3…xˆ%oŠ #o z »

2 Ì » TF @HÆjÊ]4Ê 3=µ ])7&S .,/..S*DE)H&( ,5&bGº F 7YOº H97   7º V )m&(*)H&3,?.G:.PCM$W&=(*)mi?C-n?)>$&=,?.G.)&9C-$_CM$L16=)>,?.C-$*iEI?639:)76I?T2&(*)>CM64L)>6C-I:9*.7QPŒ^( ,5&bCX.7[LTaI?6f,5$OckC,5$ 9e—,[ L» 2D 8P(*)>$*)7n/)76 ½LQ{#™T&=(*CX.Z6=)7+X,j&=CMI/$ .(*CM4sCX.e$*I5&E.,5&CX.0;L)>9\[2&=(*)7$v,y.CM» DE F4*+-)6=)7$L,5DECM$ i_I5TP&=(*)k&3,?.G:.Z1>,5$,/13(*CM)>n?)d&=(*CX.7Q Ij8 ,/171I/6=9*CM$*iZ&Id‹FqO4 6>Q J:Q Ì #L[*,Z&=,?.Gº\»2DE)7)7&=.^CM&=.9:)<,?9:+-C-$*)?[*CM+T &<'»  F   ! & z»   n?)76<[*.CM$ 17)H&(*)p&=,?.Gk.)&bCX.P( ,?6DEI/$*C-1>,5+-+M»ck 6F )>+-,5&)>9]2[ L»F1>,5$ V )p8P6CM&Y&=)7$l,?. 1!  TaI/6.YI/DE)mDQ b.C-$*iE&(*CX.>[   .  Q bIj8m[?‹q:4*6,5$ V )P8P6=CA&&)>$E,/.7˜ &o»  F  !& z»0Q2r*I?6º\» . º [58K)P1>,5$e8P6CM&)/[ &  F  !&  6Q bC-nOC-9:@ C-$*i V I5&=(.C-9*)>.KI5T]&=(*C-.)7qO4 6)<..CMI/$ V c  8K)i?)7&K&=(*)6=)>`NS*C-6=)>9E6=)>.S*+A&<[N&(*)&=,/.YGd.)&K8I?S +-9 V )H.13(*)<9:S*+X, V +-)bCMŽ F  Ì [ I/6 » F » Ì Q  

 



 















)













4 















 







 











k› œZž Ÿ\ªª-Wžª  ªªœ© 7¥f¤ž    ¤   #%$&( C-.P.)>1&C-I?$][:8)m,?9*9:6=)>.=.P.I?DE)DECX.17)7+-+-,?$*)7I/S .^CX..S*)>.P,/..I:1CX,j&=)>98PCM&(lg y| .13(*)<9:S*+-CM$ iZI?T&3,?.GO.>Q2}{)H;L6=.Y&9:C-.=1SL..&=(*) ,/9:nj,5$N&=,?i?)>.,5$L99:CX.=,?9:nj,5$N&3,5i?)<.UI?TS .C-$*idg _|TaI?6.=13(*)>9*S*+MC-$*ie6)<,5+M@h&=CMDE)&=,/.YG:.>Q}x)H&( )7$W9:C-.=1SL..^8P(Ocg _|Ä$ IZ+-I?$*i/)76^CX. I/4:&C-Dd,5+\8P(*)>$&3,?.Gk9:)<,?9:+-CM$ )>.P9:CMŽz)>6PTa6=I?D &=(*)p1I/66=)>.4LI/$ 9:C-$*iZ&=,?.G4z)76=CMI:9*.>Q 

 

 . $%*+ ;9< $/.



7 .*-$9*+-; < "







#%$&( C-.P.)>1&C-I?$8K)H; 63.Y&P9*C-.=1S .=.&( )mCMDE4zI?6&=,5$N&,?9*no,?$N&=,5i/)>.KI5Tg _|ÄIjn/)76^‹ frKQ }{)H&=(*)7$W4zI?C-$/&I/S:&.YI/DE)H9*C-.=,?9:nj,?$/&3,5i/)>. I?TzS .C-$*i'g _|'Q/|.8K)P(L,?9e4LI/CM$N&=)>9EI?S*&U)>,?6+-CM)>6>[5g _|~CX.Fn?)>6cZ1I?DEDEI?$ +McZS .Y)<9ZTaI?6U.=13(*)>9*S*+MC-$*im6=)>,?+A@B&C-DE)^&=,?.G:.2CM$d4 6=,/1 &CX17,?+ ,?4*4*+-C-1>,j&C-I?$L.7Q ^,?.C-1f.YS 4*4LI/6Y&^CX.,onj,?CM+X, V +-)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=C-IO9 . ¼”ChQ )?QpC-${9*)>16=)>,/.YC-$*iI/6=9*)76fI5TF&=(*)7C-6H4*6C-I?6=CM&C-)>.3¾ QmrCM63.0&H+-)&mS .fS*$*CMTaI?6=DE+Mc_9:C-nOC-9*)'&=(*)'&3,?.G:.f,?DEI?$*id&=(*)E4*6=CMI/6CM&0cW+M)>n?)7+X.>[z)<,?13( +-)7n/)7+CX.p,?.=.YC-i?$ )>9l&08I&=,/.YG:.H)>,/13(]QŒ^(*)d6=)>.Y&mI5T&(*)E&3,?.GO.m1>,5$x$*Ij8 V )k9:CX.Y&6=C V S*&)>9u,?DeI/$*i&(*)+-Ij8)76H4*6=CMI/6CM&0cl+M)>n?)>+-.>Q| 4zI/.=.YC V C-+MCM&0cWC-.&=( ,j&&(*)Z&08KI+MIj8)764*6=CMI/6CM&0c+-)7n/)7+X.,?6)Z,?.=.YC-i?$*)<9W&( 6)>)p&=,/.YG:.)>,/13(]Qfr 6I/D &(*CX.7[z&=(*)'TaI/+M+-Ij8PC-$*ikCX.,.YS CA&3, V +-) &3,?.Gk,?.=.YC-i?$ De)>$N&P.=13(*)>De)/˜ U6C-I?6=CA&0 c J)7n/)7+ Ì ˜2Gº F67Oº HjQ U6C-I?6=CA&0 c J)7n/)7G+ J:˜2º N 7º P U6C-I?6=CA&0 c J)7n/)7'+ *˜2º  7º  7Yº U6C-I?6=CA&0 c J)7n/)7+ # ˜2º 27º  7YGº F



; ; ; ;

















priority

priority

2

1

5

6

priority

priority

7

3

4

8 9 10 task period in msec

11

12

13

14

r C-i?S 6) Ì ˜ b$*CMTaI?6=D F6=C-I?6=CA&0c|..CMi/$*DE)7$N&^&IŒ,?.G:.KI?T2‹Fq*,5DE4*+-) Ì ( Œ^(*CX.^4*6=CMI/6CM&0c,?.=.CMi/$*DE)7$N&.13(*)>DE)f(L,?. V )7)7$W4*CX1 &=I?6=C-,?+M+-ck.(*Ij8P$CM$WrCMiLQ Ì *Q 

2#

Version 2 CSE, IIT Kharagpur

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1JNBE^<@\[|;M














  













    





Version 2 CSE, IIT Kharagpur

      !"#%$'&( *)+&  ,&( -  ./)(102$)  3546)+7 ($8 -  9./)("0:3# 7 )(/ )  </=>1 ? +( " < <@)=( ;& BA' )=<$:&7 C<3 9A: < ! ) 3 D  9/)(10<+# " A & E7 ($8 F  /)(10 ; 4G#AIH-JKL M)(, *  <) 3 7 !N!)(5)O <1=7 "@& 7 ($8 K  2/)(102")=P  Q1A=7 13 2 3:(R)(, F46& 2  M ")=7 # "R=#" )=( &( P& ,& -  2/)(10F$)  3S  1TU  3 7 24V 3F W # < # "R=#" :3 # 7 )(/ < YX

TH

T I1

R T

T I2

T I3

L

;‰ BXY[V5GN@ Ì Z tImiF\[VUIUAC@HAœ&G3BX\[GNB]Jon£ƒIuK@hGTOQBX\[I [„@(J&VUO&I5\l` @(€5M_^UM_J&BcOq^<@HM[IKJimnaV5IiF\[V5IUA5@HA5\l` B]J?M_GNBXO3@HO;JN>5GN\[V5YK>yMOQBX^az g5WX@?@(€5M_^jMumBXI5Y Mt>UBEYK>Lg5GNBX\[GNB]JonJNMKOQP.\U]™M[IUAˆMWX\l`kg5GNBE\KG3BEJonJNM[O3P\U^;r;…1O3O3V5^<@J3>UM_J \U] M_IUA_\U^UM_GN@M1S(GNB]JNBXSHM_WGN@HO3\[V5GTS(@&–wr @dOQBcAC@d`O \U] M_IU_ A \U^vKM[ONOQV5^<@&J3>UM_J;JN>5@hGN@?M_GN@O3@hu[@HGNM[W_JTM[O3PKO \Ua1b c/\UaedcR\UaMf cQggg JN>UMlJ0>UMuK@1gUG3BX\[GNB]JNBE@dOBEImJ3@HG3^<@dACBXM_J3@ iF@(Jo`@h@hhI \U]¨M_IUiA \U^;v5M_IUAAC\U@G3@dOQ\KV5GNSh@1–9BEIJN>5@hBXG0S(\K^agUVCJNM_J3BX\[IUOHrŽ=?>5@HO3@ JTM[O3POw>UMu[@ONST>5@h^MlJNBXSHM_WXWEnŒij@H@hIkO3>5\l`‡IZBXIk‰;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onyJNM[O3PbVUIUAC@hGNY[\@dO?V5Iij\KV5IUAC@dAg5G3BX\[GNBEJon BXIu[@hGTO3BE\KIvB]J0BcO?u[@HG3nyWXBXP[@hWXnJN\a^eJ3\'@h^UMKOQBX’h@M_YmM_BXIeJ3>UM_JLV5IiF\[V5IjAC@HA¢g5GNBE\KG3BEJonZBXIu[@HGNO3BE\KIUOˆM[G3BcO3@y`‡>5@hI§J3GTM[ACBEJ3BX\[IjM_WJ3@HST>UI5BX‘mV5@dOw|}\KGaO3>UM[G3BXI5Y I5\KICz{g5G3@H@h^MKO?OQ@H^<M[g5>5\KG3@dOq\[G^<\[I5BEJ3\KGNO?M[G3@AC@hg5WX\ln[@dABXIbGN@HM_WEz›J3BX^a@ M_gUg5WEBcShM_J3BX\[IUOHr‹œ‹\KONOQBXi5WXnLJN>5@ OQBX^az 



 

 









r

Version 2 CSE, IIT Kharagpur

lock(CR) T1 needs non−preemptable resource CR being held by T5 T1 T1 undergoing unbounded priority inversion T2

T1 gets non−preemptable resource CR held by T5

T5 preempted by T4

T3 T4

unlock(CR) lock(CR)

T5 t1

t2

t3

t4

t5

time

tn

;‰ BXY[V5GN@ !Z tImiF\[VUIUAC@HAœ&G3BX\[GNB]Jon£ƒIuK@hGTOQBX\[I g5WX@HOQJ0`?MnyJ3\yMuK\[BcAyg5GNBX\[GNB]JonyBXIu[@HGNO3BE\KIUO?BcO?J3\g5GN@huK@hImJ0g5GN@h@H^ag5J3BX\[Ie¥~|}GN\[^†fœ& VUONM_YK@d¦\_|‹J3>U@WE\l`•g5GNBE\KG3BEJonJNMKOQP>5\[WcACBXI5YM ShG3BEJ3BcShM[W!G3@dOQ\KV5GNSh@tinyBXImJ3@hGN^<@HACBcMlJN@ g5G3BX\[GNBEJon<JNM[O3PCOhrŽ=?>5BcO‡ShM[IiF@M[ST>5BX@huK@HAbimnbGNM[BXO3BEIUYˆJN>5@g5GNBE\KG3BEJon<WE@Hu[@hW!\[|„JN>5@WE\l`¤g5G3BX\[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@HGLgUG3BX\[GNB]Jon'JTM[O3P ¥Ÿij@dShM_VjOQ@w\[|Ž>5\[WcACBXI5YbMGN@HO3\[V5GTS(@¦ v5GN@hWX@HMKOQ@dO?J3>U@ˆGN@HO3\[V5GTS(@ BEJ1Y[@hJNOtiUM[STPB]JTO0\[GNBXY[BXIUM_WgUG3BX\[GNB]JonulM_WXV5@wBE|qB]JBXOt>5\[WcACBXI5YyI5\y\[J3>5@HG ShG3BEJ3BcShM[W;GN@HO3\[VUGNSh@HOHrw£ƒI'SHM[O3@LBEJBXO >U\[WcACBEIUY\[J3>5@HGS(GNB]JNBXSHM_W‹G3@dOQ\KV5GTS(@HOHvŠB]J`\[V5WcAZBEI5>U@hGNB]J J3>U@agUG3BX\[GNB]Jonx\[|qJ3>U@>5BEYK>5@HOQJ g5G3BX\[GNBEJon JTM[O3Py`M[B]JNBEIUYL|}\KG?J3>5@GN@HO3\[VUGNSh@HOij@HBEIUYa>U@hWcAinyBEJHr 





 













Version 2 CSE, IIT Kharagpur

pri(Ti)=5

pri(Ti)=5

CR

CR

Ti

Ti

CR Pri(Ti)=10

Ti

Ti

pri(Ti)=5

CR

Tj

Tj Tj

pri(Tj)=10

pri(Tj)=10 pri(Tj)=10 scenario 4

‰;BXY[V5GN@ rZ ˜ IUM[gUOQ>U\_JNO0˜C>5\l`‡BEIUYaš'\[GNPBEIUYa\[|;œ&G3BX\[GNB]Jon£ƒIU>5@hGNB]JTM_IUSh@œqGN\_J3\CSh\[W scenario 1

scenario 2

scenario 3

                  "!#   $ !%&   ' ( (% *)+ , -           "$! %&$ ,  ' ( (% *)+ . , -  ++   $ , ' ( (% *)  $-#     *   /0  *' (* (%  *) , (#      1 2

=?>5@1g5GNBE\KG3BEJonST>UM_I5YK@HOqJ3>UM_J?MˆJNMKOQP<>5\KWXACBXI5YaMˆGN@HO3\[V5GTS(@tV5IUAC@HG3YK\m@dO&>jM[Oij@H@hIbBXWXWEVUOQJ3GTMlJN@HAyJ3>5GN\[V5YK>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

T3 T1 requests CR

T2 requests CR

T3 acquires CR

Task priority

T3 gets back its original priority T2

T3

T3 t1

t2

t3

time

t4

;‰ BEYKV5G3@  Z œqGNBE\KG3BEJonf>UM_IUY[@HO?tIUAC@hG1œqGNBE\KG3BEJon<£ƒI5>5@hGNBEJNM_IjS(@œqGN\_JN\Sh\[W BXIu[@hGTO3BE\KIUOhr‹s0\l`@huK@hGdvB]JtO3VCDŠ@hGTO|}G3\K^/Jo`\
š'@@hWcM_iF\[GTMlJN@tJN>5@HO3@Jo`\5@ |}\KWEWX\l`‡BXI5YUr   =?>U@wiUM[O3BcSg5GNBE\KG3BEJonbBXI5>5@HG3BEJNM[IUS(@Lg5G3\[J3\CS(\KW&¥Ÿœ&£oœ¦?WX@HMuK@HO‡\Kgj@HIxJ3>U@wgj\mO3O3BXi5BEWXBEJon\[|qAC@HMKACWE\CSTPCOHr‡£ƒIJ3>5@ˆ|}\[WXWE\l`‡BXI5Y `@wBXWEWXVUOQJ3GTMlJ3@ˆ>5\l`¨AC@HMKACWE\CSTPCO0SHM_I\CShShV5G0BXIŒœq£oœ VUOQBXI5YbM[Ix@(€5M_^5@w|}\KWEWX\l`‡BEIUYyOQ@d‘KVU@hIUSh@w\_|&MKS J3BX\[IjO0inbJo`\ JTM[O3P%O \`b1M_IjiA \Ud`‡>5BcST>I5@h@dAMKShS(@dO3OJN\aJo`\O3>UM_GN@HAS(GNB]JNBXSHM_W!GN@HO3\[V5GTS(@dO?f– Ì M[IUAf– r 

\`b \U#d 

*) * ) $





*)! $*)"! -$) * ) #! $* ) ##! -$ ) 

…1O3O3V5^<@ J3>UM_'J \`b>UMKO‡>5BXY[>5@HG0g5GNBE\KG3BEJonJ3>jM_CI \Ud_5r \UdwOoJTM_G3JNO‡GNV5I5IUBEI5Y<‚jGNOQJ1M_IjAWX\CSTPCO0S(GNB]JNBXSHM_WGN@HO3\[VUGNSh@wf– ¥ \`b1`?M[O‡I5\[J GN@HMKACnMlJ?J3>UM_J?J3BX^a@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Q\KV5GTS(@HOHr 











1

Version 2 CSE, IIT Kharagpur

CR1 T2

T2

T2

CR2

CR2

CR2

Waiting for CR1

Waiting for CR2

T1

T1 CR1

T2 Executing

T1 Executing

T1 Blocked

T2 Blocked

Snapshot 1

Snapshot 2

T1 CR1 T2 Executing T1 Blocked Snapshot 3

‰;BEYKV5GN@  Z f>UM_BXI WX\CSTPBEI5YaBXIœ&G3BX\[GNBEJon£ƒI5>5@hGNBEJNM_IjS(@œqGN\_JN\Sh\[W  ¶(¸L´¬t­ k®y±q¿L¬0° °Ž® ;®y±‡®a»    s:[„œ BcOˆM_IR@h€mJN@hIUO3BX\[Ie\_|‡œq£oœ¨M[IUARBEJˆ\lu[@HGNSh\[^<@HO O3\[^<@\_|?J3>U@bOQ>U\[G3JNS(\K^5@ S(@HBEWXBXI5YLgUG3BX\[GNB]Jon<\[|MˆShG3BEJ3BcShM[WjGN@HO3\[V5GTS(@ •BXOBXIC|}\[GN^M_WXWEnAC@h‚UI5@HAM[O&J3>U@1^Ml€CBX^ˆV5^ \[|&J3>U@agUG3BX\[GNB]JNBE@dO\_|M[WEW‹JN>5\KO3@aJNMKOQPCO`‡>5BcST>Z^MnxGN@H‘mV5@HOQJJ3\VUO3@LJN>5BcO G3@dOQ\KV5GNSh@[ra0IUAC@HGw's [œ‹vŠMKOOQ\\KIZM[O MJNMKOQPMKSh‘mV5BXG3@dO MGN@HO3\[VUGNSh@[v5BEJNO1g5GNBE\KG3BEJonbBcOtO3@(Jt@d‘mVUM_W„J3\yJN>5@ˆSh@hBXWEBXI5Yyg5GNBX\[GNB]Jon\_|‹J3>U@ˆGN@HO3\[V5GTS(@Kr£{|&M<JTM[O3P>U\[WcA5O0^LV5W]JNBEgUWE@LG3@dOQ\KV5GNSh@HOHvCJ3>U@hIBEJ BXI5>5@HG3BEJNO JN>5@y>5BXY[>U@HOQJˆS(@hBXWXBEI5Yg5GNBX\[GNB]Jon\[|?M[WEW&B]JTOwWX\STPK@HAZG3@dOQ\KV5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0O3VCDŠ@hGtM[Imnbg5G3BX\[GNBEJonBEIu[@HGNO3BX\[IvCM[O?BEJ0BcOJ3>5@WX\l`@dOoJ‡g5GNBX\[GNB]Jon<JTM[O3PFr šZ@ I5\l`9G3@Hg5GN@HO3@hImJJN>5@^Ml€CBX^ˆV5^ A5V5GNM_J3BX\[I|}\[G‡`‡>5BcST>@HM[ST>JNMKOQPOQVCDŠ@hGTO|}GN\[^6@dM[ST>yJongF@\_|;BEIu[@HGNO3BX\[IbBXIx=M[i5WX@ r r Ì r =;M[O3P “1BEGN@HS(J £ƒI5>U@hGNB]JTM_IUSh@ …0u[\KBXAUM_IUSh@ \Ud \Uf \ n \Ud \Uf \ n \kd \kf \ n \ b € 15  5 € € € € € € \ d € € € € 15 5 € € € \Uf € € € € € 5 € € 5 =;M_i5WX@ r r Ì œqGNBE\KG3BEJon<£ƒIu[@hGTO3BE\KIUO|}\[G0”Ž€5M[^agUWE@ r r ! 









 



 





T1

20ms CR 1

T 2

10ms

10ms

30ms T 3

T 6

CR 2 40ms

T 4

10ms

50ms CR 3

T 5

‰;BXY[V5GN@ Ì65Z –0@HO3\[V5GTS(@w˜>UM[G3BXI5Y<…0^<\[IUYy=MKOQPCO\_|Ž”Ž€5M_^


[„@(J‡VUO‡S(\KIUO3BXAC@HGMxMLO3@(J‡\[|„gj@HG3BX\CACBcS1GN@HM[W]z›J3BX^<@tJTM[O3PCOQ\`b g gg \[r‹=?>U@GN@HO3\[VUGNSh@1M_IjASh\[^5@HO3@aJNM[O3PCOt>jMu[@aij@H@hIROQ>5\l`‡IZBEIR‰;BEYjr Ì65 rˆ…tONO3V5^<@LJN>UMlJ JN>5@aJNM[O3PCOF\qb g gg \L>UMuK@LiF@h@HI'M[G3GTM_I5YK@HABXI'A5@HS(GN@HMKOQBXI5Y\[GTAC@hG\_|

Ì

Version 2 CSE, IIT Kharagpur

JN>5@hBXG0g5GNBE\KG3BEJ3BX@HOHrqf\[^5@wACBEDŠ@hGN@hImJ‡Jongj@dO?\_|‹BEIu[@HGNO3BX\[IUOJ3>jMlJ0MaJNMKOQPy^mJ‡>UMu[@JN\aVUIUAC@hGNY[\jr   (* ) 

U‰ \[G&@dM[ST><\_|!JN>5@tYKBEuK@hIaJNMKOQPCO&`@0>jMu[@0S(\K^U@t^Ml€CBX^ˆV5^ACV5GTMlJNBE\KI<|}\[G&`‡>UBXST>BEJ^mJ&>UMuK@?J3\LO3VCDŠ@hG&|}G3\K^ ACBEDŠ@hGN@hImJ JongF@HO‡\[|BXImuK@hGTOQBX\[IjOM[IUA>UMu[@ GN@hg5GN@HO3@hImJ3@dAJN>5\KO3@ BEIx=;M_i5WX@ r r r =;M[O3P “1BXG3@dS J £ƒIU>5@hGNB]JTM_IUSh@ …0uK\[BcA5M_IjS(@ \Ud \Uf \ n \ m \ \kd \kf \ n \ m \ \Ud \Uf \ n \ m \ \`b € 6Ì 5 € € 6Ì 5 € € € € € € € € € € \Ud € €  5 € € € #Ì 5 € € #Ì 5 € 6Ì 5 € € 6Ì 5 \Uf € € € € 6Ì 5 € €  5 € #Ì 5 € €  5 € 6Ì 5 \kn € € € € € € € € € #Ì 5 € € € € 6Ì 5 \Um € € € € € € € € € #Ì 5 € € € € € =;M_i5WX@ r r “tBEDF@HG3@HImJt=&ngF@HO?\_|‹£ƒIu[@HGNO3BE\KIUO|}\[G0”q€CM[^5@gUG3\Kgj@HGQJNBE@dOJ3>UM_J?>U\[WcAb|}\KG0OQVjST>M[IBXIu[@HGNO3BE\KIyJTM_i5WX@[r  ”&MKST>bBXImuK@hGTOQBX\[IyJNM_iUWE@ BcO‡M_IV5g5gF@hG?J3GNBcM_I5YKV5WXM[G?^<M_J3GNB]€!rŽ=?>5@ WX\l`@HGJNG3BcM_IUY[V5WcM_GB]JN@h^O‡\[|@HMKST>yJTM_i5WX@M_GN@ M[WEWŠ’H@hGN\UrŽ=?>5BcO OoJNG3VjS J3VUG3@w\[|ŽJ3>5@aBXImuK@hGTOQBX\[IJTM_i5WX@HOtBXO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\mOQ@AC@Hgj@HIUAC@HIUS(BX@HO0M[G3@ YKBEuK@hI Z

















Ì5

Version 2 CSE, IIT Kharagpur

T1

T2

T3

T5

T4

‰;BEYKV5G3@ ÌKÌ Z œqGN@HSh@HAC@HIUS(@ –‡@hWcMlJNBE\KIUO3>5BEg…0^<\KI5Yy=MKOQPCO|}\[G0”q€5M_^
( $(#

   *)# #(  6    +- +$6  ,   (* #  &* 0& *)+6 $# ) $* 

1 '





)0 ' *)  #  $  *+ $# +%  # -$ 6  1  *) $ * '    $ # -$ +$+ ' 6!-$1

 ($ $$ *)0  # -$ 



1 0& -$  $$ *) + (&$6 -  $( /' ( 6 & $1



 1





 $%



 %+'  (



"' #!$

,  +* !(# 

š'@qI5\l`'BEWXWXVUOoJNGNM_J3@‹JN>5@qVUO3@q\_|JN>5@&M_iF\lu[@ŽM[WEYK\[GNB]JN>5^ JN\0S(\[^5@HA5V5WE@‹|}\KGM‡O3@(J„\[|JNM[O3PCOŠ`‡B]JN>ˆAC@Hgj@HIUAC@hIjS(BX@HOHr   $ *  &“1@(JN@hGN^aBXI5@M |}@HMKOQBXi5WX@tO3ST>U@HACV5WX@‡|}\KG&JN>5@tGN@HM[W]z›J3BX^<@?JNM[O3PCOq\[|„M JNMKOQP5BcST>J3>5@1g5GN@HS(@hz AC@HIUS(@ˆG3@HWXM_J3BX\[IUO‡>jMu[@iF@h@hIZOQ>5\l`‡IBXIŒ‰;BEYjr Ì[Ì |}\KG0VUO3@w`‡B]JN>ŒM<JTM_i5WX@(zƒACGNBEuK@hIxO3ST>U@HACV5WX@hGdr‡=?>5@w@h€@dS(VCJNBE\KIJ3BX^<@HO0\[|‹J3>5@ˆJNM[O3PCO \`b(cR\Ud c"gg gc/\ m M[G3@ Z 5Cv 6Ì 5 v Cv 1 v M[IUAJ3>5@wSh\[GNG3@dOQgF\[IUA5BEI5YaAC@HMKACWXBEI5@dO0M_GN @  5 v  5 v Cv 5 v 4 v[GN@HO3gj@dS J3BXu[@HWEnKr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V5BXG3@dAJN\O3>UM[G3@aI5\[I5z›g5GN@h@H^5@H^az OQ@HWEuK@HOHr£{|!JNGNMKACBEJ3BX\[IUM[WjGN@HO3\[V5GTS(@0O3>UM[G3BXI5YJN@HST>5I5Bc‘mV5@HOO3VUST>bM[OOQ@H^M_g5>5\KG3@dO&M[G3@tA5@hg5WX\ln[@dA5BcOO3BEJ3VUM_J3BX\[IvV5IiF\[V5IUA5@HA g5GNBE\KG3BEJonBEIuK@hGTOQBX\[IUO^mJ0\SHS(V5G‡WX@HMKACBXI5YaJ3\5@HBEG0AC@dM[ACWXBXI5@HOHr Ì4  





Version 2 CSE, IIT Kharagpur

Arrangement of tasks in ascending order:

Step1:

T1 T3 T2 T5 T4 Schedule tasks as late as possible without violating precedence constraints:

Step 2:

T1 6 8

0

14

T3 T2 20 25

T5 T4 33 40 50

Move tasks as early as possible without altering the schedule:

Step 3:

T1 T3 T2 T5 T4 2 8 13 20 30

;‰ BXY[V5GN@ Ì Z ˜C\[WXVCJ3BX\[I\_|‹”Ž€5M_^5@ˆgUG3BX\[GNB]JonBXI5>5@HG3BEJNM[IUS(@Lg5G3\[J3\CS(\KW¥ œq£oœ¦‡BcO1gF\KONO3BEi5WXnJ3>U@aO3BE^UM[G3BXI5YbShG3BEJ3BcShM[WGN@HO3\[V5GTS(@dOtM[^a\KI5Y MO3@(Jˆ\[|?GN@HM[W]z›J3BX^<@JNMKOQPCOHr£{JLGN@H‘mV5BXG3@dO^5@yV5IUA5@hGNWEnBXI5YGN@HM_WEz›J3BX^a@b\[gF@hGTMlJ3BXI5YO3nCOoJN@h^r=?>5BcO g5GN\_J3\CSh\[Wj|}\[G‡OQ>jM_GNBEI5YaS(GNB]JNBXSHM_WŠGN@HO3\[V5GTS(@dOqBcO&JN>5@hGN@(|}\KG3@ O3V5g5gF\[G3J3@HAbinyM_WX^a\mOoJ?@huK@hGNn5@ g5GNBE\KG3BEJonBEIU>5@hGNB]JTM_IUSh@?^a@dST>UM_IUBXO3^©g5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TM[O3PO^mJV5IUA5@hGNY[\LMuK\[BcA5M_IjS(@‡BXImuK@hGTOQBX\[I`‡>U@hIJN>5@hBXG?G3@d‘KVU@HOQJq|}\[G?MwGN@HO3\[V5GTS(@1ShM_IbBEIyIU\ˆ`?Mn ShM[VUOQ@AC@dM[ACWX\CSTPCOhrq£ƒWXWXVUOoJNGNM_J3@J3>UBXOtimnS(\KIUOoJNG3VjS J3BXI5YM_I@h€CM[^U\l` J3>jMlJt@Hu[@hI`‡>5@HIJ3>5@HG3@BcO‡I5\yST>UM[IUS(@\[|‹M[In AC@HMKACWX\STPCOiF@hBXI5YyShM[VUOQ@dA!v5MLJNMKOQPyVUIUAC@hG0œ?fœ ^aBXY[>mJtOQJ3BXWEW!VUIUAC@hGNY[\MuK\[BcA5M_IUSh@tBXIu[@hGTO3BE\KIr jr‡š™>UMlJ















     











































CÌ 

Version 2 CSE, IIT Kharagpur

Ì r r‡… O3@(Jˆ\[|0gj@HG3BX\CACBcS<JNMKOQPCOwIU@h@HAeJ3\ŒiF@ONST>5@dACV5WX@HAR\[IkMŒV5I5BXg5GN\Sh@HONOQ\KGHrx=?>5@b|}\[WXWE\l`‡BXI5YJTM_i5WX@Sh\[ImJNM[BEIUOwJ3>5@AC@(JTM_BXWXOˆ\_| J3>5@dOQ@gF@hGNBX\A5BXS<JTM[O3PCOwM_IUA'JN>5@hBXGˆVjOQ@y\[|‡I5\[ICz{g5GN@h@H^ag5JNM_iUWE@yO3>UM_GN@HA'GN@HO3\[V5GTS(@dO – Ì vŽ– v;M[IUAe– r rfM_IRJTM[O3PD\Uf^<@h@hJ B]JTO‡AC@HMKACWXBEI5@ `‡>5@HIJ3>5@JNMKOQPCO‡M[G3@ O3ST>U@HACV5WX@HAV5IUA5@hG0–0—…¨M[IUAg5G3BX\[GNBEJonyS(@hBXWXBEI5YU@HACV5WXBXI5Y =;M[O3P - 3  3 – Ì – – r % 3 \`b  55 r5 Ì  5 6Ì 5  z 5 6Ì 5 5 \Ud 55 \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KVUOQDP GNM_\J3BX3 \[IM[IU|}A \KG1 `‡3 >UBXIUBXSTAC>'BcShM_MyJ3@HJTM[OO3BEPJNOwIUSh@h\[@H^5JT@<MlJNIUBE\KM_I^<J3@dBXA^5GT@<S(@w@hImBXIŒJNG3IUBX@H\[O ICz{BXIŒg5GNJN@h>5@h@y^<–gCJNÌ BEuKv„@ˆ– ^UMuK@1iF@h@HIxOQgF@HShB]‚U@dABEI^U\KO3@ JNM[O3PST>UM_GTM[S(J3@hGNBcOoJNBXSHO‡M_IUAxAC@Hgj@HIUAC@HIUS(BX@HOM_GN@wAC@HONS(GNBXij@dABEIJN>5@w|}\KWEWX\l`‡BEIUY<JNM_iUWE@Kr …tONOQVU^a@ JN>UMlJtJ3>5@JTM[O3PCO‡>UMu[@ ’H@hGN\g5>UM[O3BXI5YyM_IUAGN@hgF@HM_Jt`‡B]JN>M5@dACV5WX@ `‡>5BcST>Sh\[V5WcAbiF@VUO3@HAinbMaJNM[i5WX@(zƒACG3BXu[@HIONST>5@HA5V5WE@HGHr =;M[O3P f\[^5nC@1OQJ3JN@HMK^6OQPyBEIST>j`‡M_>5GTM[BcSTS >JN@h‚UGNBXu[OQ@ J3BcGNSh@HOM_M_WEz›IUJ3ABX^aAC@ @hgFgF@h@hIjGNBEAC\C@hACIUBcShS1BE@dJNO‡MKOQM_PCGN5O @1\ ACb @dgO3g Shg \UG3BXm iF>U@HAyMu[BX@I’hJ3@H>5G3@\a|}g5\[>UWXWXMK\lOQ`‡BXI5BEI5YYˆM_JNIUM[Ai5WEGN@K@hrqgF“t@HMl@hJ‡J3@H`‡G3^BXI5M@ Ì 5 ML|}@HM[O3BXi5WE@ONST>5@HA5V5WE@ `‡>5BcST>xS(\KV5WXAiF@VUOQ@dAimnMˆJTM_i5WX@(zƒACGNBEuK@hIO3ST>U@HACV5WX@hGdr =MKOQP f\[^




































\ n



5

5

\`b



Version 2 CSE, IIT Kharagpur

Ì 5rtf\[IUO3BcAC@hGtMyG3@dM_WEz J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LNcaVI?gWG?R|IPHNF>@LNxa?SHK^0JAk?gUaPwjPHZUa>)>AaBbJwUa>‚Q>Re6œ…jI??g>>?RVPR?‰ACB«JjLN>.UCHNcaATOLKJjID LN>‡JjUCJ JwUa>‚>…u‰LKJj}>LKD$LNHNUaO‰FQJLNHNLK¡gUvJLNAaV xvUCHNFI?S>EUCO)?n>)PwjI?SWIFIHK?gW AaV JjI?k>)UCD$?pMIO)APR?S>)>@ATOSe žV8JjILZ>‰UCHNcaATOLKJjID€qJ)UT>@‚Q>…UCO)?pPHZUa>)>@LKz?SW8\Ua>?SW8AaV8JjI?SLKO‰FQJ)LKHNLN¡SUvJ)LKATV UTPRPATO)WILKVIc0JA;Jj?BiATHKHNAvu‰LNVIcGMbAaHNLZP^ae6—B#JjI?nJ)UT>@‚Q>…UCO)? J)A;\b?kWQLNxLNWQ?gW LKVqJAD¥PHZUa>)>@?g>R€QUGJ)UT>@ ‚ N I \b?RHNAaVcT>.JAUPRHNUT>> F8€ €=‚Hƒ„d€ILKª †‘ …T_/ˆ ‡ ‡ m ° ‰“ ƒ‹Š IzŒw5I € †‘ …_‡ m ° “ Ž Ž"ŽRA‘ aŽ ° “ e ¦ FMIMXAq>@? u?8u‰LN>jhJAdMUCOJLKJLNAaVoJ)jI? J)Ua>‚Q>kAaBEUm>@^Q>@J?SDLNVqJA~BiAaFIO;PHZUa>)>@?g>Re~œ…j?RV®\^oF>LKVIcr­|QMIOgd e e ° €J)jI? WQLKª«?RO)?RVqJ PRHNUT>>?S>…PRUaV \b?pBiAaO)D0FHNUCJ?SW WQ?SMX?SVWQLNVIcAaV Jj?ŒFQJLNHKLN¡SUCJLNAaV ACBJjI?pJwUa>‚Q>‰Ua>.BiAaHNHNAvu>R§  ,-08‘"‘“’5Dn†‘ … ”‡ m ° ‰“ ƒ‹• k € †‘ … ‡‡ m ° “  ,-08‘"‘$–MDn†‘ … —‡ m ° ‰“ ƒ‹•c˜o€ †‘ … ”‡ m ° “  ,-08‘"‘H™RDn†‘ … š‡ m ° ‰“ ƒ‹•c›o€ †‘ … —‡ m ° “

…

Version 2 CSE, IIT Kharagpur

 ,-08‘"‘D‰ƒ‹•€ †‘ … š‡ m ° “

‹OATD Jj?~UC\bAvxa?T€J)jI?mFQJ)LKHNLN¡SUvJ)LKATV©caO)LNW]BiATOJjI?dWQLlª«?RO)?RVqJ PRHNUT>>?S>8PRUCVŸ\b?mBiATFIVW–JAh\b?a§®„HZUa>)> ° §–‘-Ie  ° € ° š`€‰PRHNUT>>$…I§ ‘/I€ …I€ Ie  ° š`€PHZUa>)>I§‰‘/Ie °  € Ie …q“€QUCVXW PRHNUT>> X§‘-I€ Ie °  š`e r?PRUaVGxLN?Ru]­‡|QMIOSee ° Ua>WQ?RzVILNVIcŒcaO)LNW>6AaVGJjI?‰FQJ)LKHNLN¡SUvJ)LKATV$MIHKAaJ‡ACBXJjI?…JwUa>‚>Se6†–J)Ua>‚kLZ>Ua>)>@LNcaV?SW0JAŒUpcaO)LNW;WQ?SMX?SVWQLNVIc ATV LKJ)>EFQJLNHNLK¡gUvJLNAaV/e.—JLN>‰VACJWQLKŽtPFIHKJJ)AtAa\>?RO)xa?nJ)jUvJJ)jI?0>LK¡S?ŒACB6Jj?kcaO)LNW>UvJjILNcaj?RO‰JwUa>‚ FQJ)LKHNLN¡SUvJ)LKATVxyUaHKF?S>EUaO?ŒPRATUCOw>?RO PRAaD$MUCO)?SW}JA JjUCJpUCJnHNAvu J)UT>@‚}FQJ)LKHNLN¡SUvJ)LKATV~xvUCHNFI?g>Rekœ…jI?;caO)LZWm>@LN¡R?;ACB.PHZUa>)> ° J)Ua>‚Q>ELZ> ° _ Ie  ° Q%Ie  €u‰jI?RO)?SUT>J)jI?GcTOLZWm>LK¡S? AaB‰JjI? PHZUa>)> JwUa>‚>0LN> Ie  Qe ¦ LND0FIHZUvJ)LKATVY>[J)FWQLN?S>GLKVXWQLNPSUvJ)?tJjXUvJGFX>@LNVIc}J)jI? V?|J0zIJ$UCHNcaATO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)Ua>‚Q> J)A$WILlª«?RO)?RVqJ‰PHZUa>)>@?g>Reœ…jI?BiAaHNHKAvu‰LNVIcGJ)Ua\IHK?Œ>jIAvu>ˆJjI?ŒPATD$MIFQJ)UCJLNAaV ACB-J)jI?pFQJLNHNLK¡gUvJLNAaV ACB?SUTPwjtJ)UT>@‚tUaVWt\XUa>?SWtATV8J)jUvJ…J)jI? UT>>LKcTVID$?RVqJ‰ACB#JjI?pJwUa>‚>.J)AWQLlª«?RO)?RVqJEPRHNUT>>?S>Se œ#UT>@‚ N k N ˜ NO› N N N N N N N k  Š\I

  ° ° ° °  ° aI °  … ° …1… …@ Y  Y 1  !  ° 1 G I Ie Ie ! e °  Ie   Ie ! Ie  Ie Y… e  Ie °  e ° „HNUT>> ° …   … …     œ#Ua\IHK?Te e …Q§ ¦ ATHKFQJ)LKATV8BiATO­|IUCD$MIHN? e ° "

6 *-4$# 09:&M% *-4; <>,-;538?@*-)"BC xz3a?')>( v D~œ…jLN>.UCHNcaATOLKJjIDUvJJ?SD;MIJ)>JA;UCHNHKAQPRUCJ?‰JwUa>‚Q>JA0JjI?nMIO)AQP?S>)>AaOw>>@FPwjtJjUCJJ)jI? JwUa>‚>‡AaV;JjI?ELKVWILKxLZWQFUCHXMIO)APR?S>)>@ATO)>6PSUCV\b?E>@FXPRP?g>>@BiFIHNHK^;>Pwj?SWQFIHN?SW;F>LNVIc0­ˆ n‹.eaœ…jILZ>‡D$?SUaV>6J)jUvJ‡JwUa>‚Q>‡UCO)?…JAŒ\b?EUa>)>LKcTVI?SW J)A}MIOAQPR?S>)>@ATO)>n>@FXPwj~J)jUvJŒJ)jI?FQJLNHNLK¡gUvJLNAaVhUCJ0UCV^mMIO)AQP?S>)>AaOpWQA?S>ŒVIAaJŒ?|IP?S?SW ° e.LKVoMUTPw‚LKVIcLZ>ŒU}>[JwUCVWUCOwW~UCHNcaATOLKJjD;LZP MIO)Aa\HK?SD e6r?pBiAaO)D0FIHZUvJ)?nJjI?pJwUa>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OLN?S>6ATFQJJj?>UaD;?>?J‡AaB«>@J?SM>Se —B5UCHNHIVtPRHKAQPw‚Q>6ACB5UŒWQLZ>[J)OLN\IFQJ)?SW Byzantine C1

t+e

C5

t−e

C2 C3

C4

‹LNcaFIO)? I§.^¡SUCVqJ)LKVI?0„HNAQPw‚tLN>EU;œ…u.A‹UTP?SW}„HNAPw‚ e C1’

e C2

e C3

C1"

‹ LKcTFIO? X§6 O)LlB{JE.?J[u.?R?SV œ…u.A8„HKAQPw‚Q>…LNVƒˆO?g>@?SVP?nACB6.^q¡gUCVqJLNVI?0„HNAPw‚Q> >^Q>[J)?RD¬PRUaOO)^$AaFQJ…J)jI?nUa\XAvxT?>@J?SM>R€IUaVW8UCJ‰D;Aq>[J…D4PRHKAQPw‚Q>ˆATFQJ‰ACB/VPHNAQPw‚Q>UaO?n\UaW-€UaVW? & @P„d€qJ)jI?RV u?p>jIAvu•LNV8J)jI? BiATHKHNAvu‰LKVcGJ)jUvJ…J)jI?ŒcaAAQW PRHKAQPw‚Q>…u‰LNHKH-\b?k>^qVXPwjIOATVILN¡R?SW8u‰LlJ)jILNV ›ACB \bAaFIVW-e h r?zOw>@J.>jIAvu©LKVtJjI?BiAa›!HNA HKAvu‰LNVIcŒJ)jI?RATO?SD%JjUCJ.U0.^¡SUaVqJLNVI?PRHKAQPw‚$PRUCV8D$Ua‚a?‰J[u.A0cTAAWPRHKAQPw‚Q>.WQLlª«?RO.LNVtJj?RLNO.PRAaD$MIFQJ)?SW UyxT?ROwUCca?EJLND$?Œ\q^ UvJD$AT>@J e h  E4GIH › A 3  47 3         5 3 KJLG    MH  3NGO: ?P RQSHG 43NG    HG 5TH  0 &UH 73 47!H 7     =3NG9H D Br]38?@r]C ’F 5   : 3 V  7

   

 

h 3NG 4 365  W8 H: 5M 6J  7  < 7 YX 7  ZG  KJ  F5 HR[ 365 - 5\X  7 5 3 % 3   7 3 ]%% 0

4G 4 &   Z ^

%

_

Version 2 CSE, IIT Kharagpur

# @? 3M35x D /?JFX>PRAaV>LNWI?ROJ)jIO)?R?GPRHKAQPw‚Q>n„ ° €/„ …Q€-„ tACBˆU8WQLN>@JO)LN\IFQJ?gW~>^Q>[J)?RD Ua>n>@jIAvu‰V}LNV~‹LNce IežVr‹#LNce)I€-„ …tUaVWd„  UaO?ŒJ[u.A8cTAAW~PHNAPw‚Q>UCVWo„ ° LZ>U ^¡gUCVqJLNVI?GPRHKAQPw‚«eœ…j?;PRHKAQPw‚Q>n„ …8UCVWo„ 8UCO)?kO)?S¤qFILNO?gW}VIAaJEJA WQLKªb?SOn\^D$AaO)?kJ)jUCV  UT>Œ>@jIAvu‰VrLNVr‹LNce Ie8„  \b?RLNVIcmU^¡gUCVqJLNVI?PHNAQPw‚m>@jIAvu>nJ[u.AWQLlª«?RO)?RVqJkxvUCHNFI?g>nJAd„ ° UCVWh„ …QesEAvuŒ€5JjI??Rªb?gPJkAaBJ)jI? .^¡SUaVTJ)LKV?PHNAPw‚0LKV$J)jI?‰JAaJ)UaHl_`JLND$?PRUCHZPFHNUCJLNAaV$LN>JAkDUC‚T?.JjI?‰J[u.AŒcaAAQW$PHNAQPw‚>WILlª«?RO\q^;UvJ‡D$AT>@J @ ˆUT>‡>@›jA Avu‰VGLNVt‹LKcXeXe œ…jI?SO?RBiAaO)?‡J)jI?…?ª«?SPJAaBbUn>@LNVIcaHN?…^¡gUCVqJLNVI?…PHNAPw‚kPSUCVGD$Ua‚a?J[uAnUCO)\ILKJOwUCO)^pPRHKAQPw‚Q>#LKV$U>^Q>[J)?RD J)AnWILlª«?RO\^ h LNVGJLND;?…xvUCHNFI?Te ¦ AX€aBiATO „ .^q¡gUCVqJLNVI?EPRHKAQPw‚Q>ˆPSUCVDUC‚T?‰J[u.AkcaAAQWtPHNAQPw‚Q>‡WQLKªb?SO\^UvJ.D;Aq>[J   „4LNV8Uyxa?SO)Uaca?‰PATD$MIFQJ)UCJLNAaV-e‹OATD J)jILZ>ˆLKJ BiATHKHNAvu>«JjXUvJ/BiO)AaD Jj?‡JLND$?ˆPATD$MIFQJ)UCJLNAaVŒ\^JjI?LKVWILKxLZWQFUCHPHNAQPw‚Q>R€SJjI?ˆLKVWILKxLZWQFUCHPHNAQPw‚Q>5u‰LKHNHq\X?ˆ>^VPwjIO)AaVILN¡R?gWnu‰LlJ)jILKV ›!ACB e h" /?J…JjI?pJ)LKD$?ŒO)?S¤qFILNO?gWtBiATO …;PHNAPw‚Q>.J)A$WIOLKB{J‰BiOATD  „ J)A‰\X? ;'Nke6ATOS€ 



… ;'N>H€

ATOS€



m  „ 

;'NT€  Pm  …  > „ 

Ž"Ž ŽR‘-8Ž …a“ e ©jI?SO? ;'N LN>…J)jI?pJLND$?ŒO?g¤qFILKO)?SW8BiAaO …GcTAqAQW PHNAQPw‚>J)AtWQOLKB{J‰BiO)AaD   „ J)A Se r?Œ‚VIAvu•J)jUvJ ;Ne€ ‘  „   ° “ … >m   „   ;'N € … *> Ž"Ž SŽ ‘-8Ž T“ e

r?ŒVIAvu LKHNHKFX>[J)O)UCJ?ŒJ)jI?0PATD$MIFQJ)UCJLNAaVACBJj?0>@^VPwjOATVILK¡gUvJ)LKATV Mb?RO)LKAQW BiAaOJjI?0WILN>@JO)LK\FQJ?gW}PHNAPw‚ >@^VPwjOATVILK¡gUvJ)LKATV UaHKcTAC_ O)LlJ)jID4FX>@LNVIcUCV ?|IUCD$MIHN?ae  sM09C  ,-r'  ™MD /?J‡UpWQLN>@JO)LN\IFQJ?gW0O)?SUaHl_`JLND$?.>^Q>[J)?RD£jXUyxa? ° PRHKAQPw‚Q>S€aUCVW0LlJ‡LZ>O ?g¤qFILKO)?SWkJApO)?S>@JO)LNPJ#J)jI?RLNODUv|QLKDGFID¨WQO)LKB{JJ)A  Q ° „T, e /?J‡J)jI?DUv|QLND0FID%WQO)LlB{J.ACBbJjI?EPRHKAQPw‚Q>Mb?RO‡FVILlJˆJLND;?;‘ >Q“6\b?  °  e ?J)?RO)D;LNVI?‰J)jI?O)?S¤qFILNO?g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P=V]•u3>~^@5L7:FT/43ElFL/^3G  Z § Z § –$Zzw 12=37:E€GI7A/X:3>11<243sGH4=<=3I/Q11K„GI7A5L5 9H4@4@kN:=13Elt^\e1<243 NP@O3I=<7A1FL/4X,9\^9;13IK •j9HGC2d7P9a123rŽR6^.0 ‘ !#"$$&%('&"*),+A–Z R24-3 /43I=q1<243z=<3I9N:5LHB1FLN:/€NA`o123rG>5TNBGCV‡|1<243rKrNP=3`u=3YPH3>/Q1 /43I3IE€1Nntk3*1<243r1FLKM3M93>=3*FL/Q13I===JFL9J1<243s7AKMN:H4/Q16NA`@4=NBG>3I9<9;NP=q1=5o9@O3I/E496FL/d=<3I9@ONP/EBFL/4X 1ZeR24F89NigP3>=<243I7PE€@5L7PG3I9z7e5TFLKMFb1C7i1KŠG5LNBGCV€=<3I9N:5LHB1FLN:/_7lG>N:KM@4HB1<3>=zGI7A/ 9H4@4@kN:=1IZ w/4N:1243I= FL9<9;H3 1<27i1‚GI7A@9"123=<3I9N:5LHB1K“G5LNBGCVpFL9-1<27i1 1<243R=39;@kN:/93 1FLKr3RN:`12/3 0#!#"$1$%('&"*)2+ 9\B9m1<3>K GI7A5L5oFL9/4NA1zEB3>13I=KMFL/4FL9;1F8GAZ,.0/]`j7:G$1|ƒ3Ig:3>=<\€9\B9m1<3>K„GI7A5L5q•uNP=6`uN:=p1<27i1Ks7i113I=3>gP3>=<\e`uH4/G1FLN:/_G>7:5T5£–JFT/^gPN^GI7i1KM3IKztk3>=1<27i 1 3mFT1;13I=*DR7:9*EB(3 O/43IEc7P91<243hE4Fbˆ‡3>=<3>/G>3,tk31mD3>3I/_1243hD NP=<9;1;S0G>7P9;3s=<3I9@kN:/93s1FLKM3 7:/E&1243ztO39m16G>7:93p=<3I9@ONP/9;361=JF89qG>7:H93IE&@7A=15L\&N:/e7:GIGN:H/P1N:`oFT/Q13I==K¢G>7:5T589IZJ[‹23>/d7:/€FL/Q13>=<=3I9<9;FL/4XWN:` 7,9\B9m1<3>K¢G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91/_9;2NiDa/FL/_’-FTXOZ  Z § Zhw1FLKM3>=zYQH43IH43 GNP/P1C7AFL/9‚7:5T51FLKr3I=<9 7A=<=<7:/4X:3ErFT/sNP=<EB3I=‚NA`‰1<243>FL=f3>~B@4FT=C7i1Zj V 7:GC2r1FLKM3>= FL97:9<9;NBG>FL7A13IErDaFT12,727A/E45T3I=‚=NPHB1FL/43PZ

R243627A/OEB5T3I=a=NPHB1FL/43pF8912436`uH/G$13E491Nstk3pFT/^gPN:V:3EWDa243I/&124361=q3~B@4FL=39>Zow13I7PGC2&G>5TNBGCVWFL/Q13I==
k=l&m7n,oqprtsButnvm7waxty7nvz|{asBzan}x~sujx~€sx~y7Ds‚vrqƒ}z,wm„ƒ}r~y x†…‡r~nBˆay7{s{Š‰(…x~€as ut…2utxts‹om7n,oqpn}ŒLƒ6onvD‡waxtsBrBŽS€,wuBxt€s rtsButnvm7waxty7nvz|n}Œƒue…auex~s‘om7n2oqp onvr~r~sut‡!nvza{uSxtn’xt€sj{wr~ƒ“x~y7nvz/n}ŒJx~y7Dsxt€0ƒ“x”sm„ƒ}‡u~suS‰!s•x†–sszx†–n utwoosButu~y ˆ(sjom7n2o~p6xty7oqp,u= 5

Version 2 CSE, IIT Kharagpur

1243V:3I=/43I5GC243GCV^9‚1243q1FLKM3>=RE47i1C79m1<=HOG$1H=39‚FL/s1243q1FLKM3>= YQH43IH4313FT`ƒ7A/^\*1FLKM3>=3>g:3I/Q1f27:9fNBG>GH==<3IE‰Z-. ` FT1/E9 127A17r1FLKr3I=a3>gP3>/Q1a27:9RNBG>G>H4=<=3E‰|^1243I/nFb1qYQH43IH43I91<243GNP==<3I9@ONP/EBFL/4Xr27A/E45T3I=a=NPHB1FL/436FT/&1<243p=37:EB\hYPH3>H43PZ YJba_ \0_ 

ect`,bi ^FT/OG3r1243MNBG>G>H4=<=3I/G3*NA`f1<243M5L7P9m1pG5LNBGCVe3>gP3>/Q1I| 9N:KM3*1<7:9VB9JKrFLX:2Q1627†g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:=<=39;@kN:/OEBFT/X*27:/EB5L3>==H43W•U9;3I36’-FLXZ  Z § –Z‚’4NP=3>~47AKM@45L3:|47r@O3I=FLNBEBF8Gq1=931a1NM@kN:5L5‰123613>KM@k3>=C7i1/9N:=a7A`£13>=q3>g:3I=\ § ""*KW^3IG6FL/Q13>=11N€3~B@4FL=3WNP/45L\dNP/G3PZe[7A1=C9z7A=<3,7e@kN:@H45L7:= 3>~B7:KM_\@4ct5T]*36N:ce`-^/NP./4]93p\9;240 N:h1R_21FLKr1 33I=<]9Ib5Z 46+ŠctdP_\`i []7i1CGC2EBN:X€1FLKM3>=C9r7:=3hH93IEc3>~^13>/O9;FLg:3I5T\]FL/ =<3I7:5bSv1FLKM3,@4=/ 13IEBH=39*H@ONP/ 7EB37:EB5LFT/3eKrF89<9>Z w/ 3~47:Kr@5T3&H93&N:`J7DR7i1=s27P9MtO3I3>/

Version 2 CSE, IIT Kharagpur

f(){ wd_start(t1,exception−handler);

start

wd_tickle(); }

end

t1

-’ FLX:H4=<3Š5JWo…q93pNA`o7r[7A1= FL5T5LH9;1=C7i1<3IEdFT/]’-FTXOZ  Z 54Zz.0/]’"FLXZ  Z75B|ƒ7hDR7i1=FT1F8G>7:5 `uH4/G$17:5T5vZ6R243  0$ 1$j)=$ !+*G>7A5L5 9;3>1<9q1243rD7A1~^@FT=<3zt^\&1243M9@O3GF 3IElE43I7:E45TFL/43n•£1 § 1FLKM3 H4/Fb1C9<–`u=13s3>gP3>/]7i`£1<3> =   1587A@O9;3E‰| 1<243>/s1<243qDR7i1CGC2EBNPX61FLKr3I=f3>~^@FT=<3I9I|PFL/EBF8G>7A1FL/4Xp1<27i1 1243q1<7:9VMEB3I7PEB5TFL/43F89 KrF89<9;3Es7A/Er1<243q3>~BG>3>@B13IEBH4=<3aF89 FL/4FT1F87i13E‰Zo.0/hGI7:93q1<243J1<7P9;VsGNPKM@45T3>139RtO3>`uN:=<3q1<243DR7i1CGC2EBNPX1FLKM3>=R3~B@4FL=<3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:@k3>=C7i1FLN:/hNA`o7M=37A5TSU17A1FLN:/ |Da243>/43Ig:3I=7M24FTXP2n@4=FLN:=~B3IGH41FL/4Xd5LNiD @4=58E_123l?Ž … 1=@4=HB13FL9YQH7A/Q1~^@=3993IEs7P9?@9PQ8TEU587:7VCEF?BAIH<WX?BA2CD7ZY ? NP/P1<3>KM@kN:=C7A=<\p=37A5TSU1=C7i13>KM@B1= NA`‰7`u3>D KMFLG>=Np93IGNP/E49I”Z qNiD 3Ig:3>=| FL/r1=C7:EBFT1FLN:/7:5^N:@k3>=C7i1FL/4Xp9\^9;13IKs9>|i1<243RD NP=<9;1‚G>7P9;3 1<7P9;V@=3I3>KM@B1FLN:/*1FLKM3aFL9o1m\Q@FLGI7A5L5T\pN:`O1<243aN:=CEB3>= N:`k769;3GNP/E‰Z-[d3EBF89~Q193IG1FLN:/W1<27i1a1<24F89a9;FLX:/4F OGI7A/Q15L\s5L7:=XP3587i1<3>/G>\sFL9aGI7AH93IEht^\W7r/4N:/BS @4=<3>3IKr@41FLg:3JV:3>==C7i1K¤/43I3IE491NW27†gP37s@4=<3>3IKr@41FLg:3pV:3I=/3>5ƒ7:/Ee9;2N:H458En27†g:361C7:9V,@4=<3>3IKM@B1FLN:/n1Z [

Version 2 CSE, IIT Kharagpur

S .0/Q13>=<=/G>\MFL9REB,3 /43IEh7:9‚12431FLKM3JEB3I5L7†\Mtk31mD3>3I/W123qNBG>G>H4==<3>/OG3 :NZ` \07A_ /d”ctFT^ /Qb 1 3I==< tH4_ @B#1h7: /Ee1<24`,3Mb=,hH4&/b2/4_\FT/\ XhN:`‚b1324J3sb2G>_1N:h=<^ = <39;i @kN:/E4FT/4X,.;J4¥•j.0/Q13>=<==3 4aNPHB1FL/43†–$Zz.0/d=37A5TSU1=C7i1Ks9>|O123H4@4@k3>=tONPH4/EeNP/&FL/Q13I==/G>\hK*H9;1qtO3ztONPH4/EB3El7A/EnF89a3>~^@k3IG13En1NWtk35L3I9<9a1<27A/l7r`u3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H9"N:=-t45LNBGCVQFL/4XJ.:3>~B3IGH41FLN:/zN:`4123@=NBG399"F89 t45TNBGCVP3IEDa2FT5L3 FT1oD7:Fb1C9"`uN:=-1243R=<3I9H45T1<9-NA`41<243a9;\B9;13IK“G>7A5L5vZ qNiD 3Ig:3>=|BFT`f7s@4=3I9<9aH93I97P9;\^/GC2=NP/4N:H9    k•U–N: =    ^•U–9\B9m1<3>KG>7:5T589z•UG>7A5L5L3I E     k•U–7:/E   B^•v– FL/9N:KM3hN:@k3>=C7i1FL/4X]9;\B9;13IKM9C–$|‚1243I/”1<243e9;\B9;13>KGI7A5L5RDaFT5L5a=3>1H4=5L\_N:/G>3,1<243n. :¥=<3IYQH43I9;1M27:9rtk3>3>/@7P993IE EBNiDa/1=C7i1FL/4X_9\^9;13IKn| 1m\^@4F8G>7:5T5L\ctk3`uNP=3n1<243l@42^\B9;F8G>7:5a. :¢N:@k3>=C7i1gP3>/ tk3>XPH4/ ZR243r3~B3IG>HB1FLN:/€NA`‚1<243M@4=NBG>3I9<9F89/NA16t45TNBGCVP3IE‰|‡tk3IG>7:H93zFT1pE4NQ39q/NA16/43>3Ee1N&DR7AFT1q`uN:=J1<243*=<3I9H45T1<9NA`‚1<243M9;\B9;13>K GI7A5L5UZ".0/9m1<3I7PE‰|AFT1oGI7A/rGN:/Q1HB1FL/4X67A/E1243I/*=<3IG>3>FLg:3f1243R=<3I9H45b1C9-NA`41<243R. :NP@O3I=<7A1FLN:/587i1<3>=|iN:/G>3f1<243>\z7:=37†gi7AFL5L7:t45T3PZ 0 0 V‚K*tO3E4EB3IEd7A@4@5TF8G>7A1FLN:/9JH9H7A5L5L\ 27†gP3*c G>baN:ce]/h9;1 =C 7AFL/Q1<_ 9 N:/dc \0G>_1NPdP9;1I_1|‰h&9FTb2I`3:| q]97A/O\El @kd NiD 3I_ =JG>”N:_ / 9H4KM_ @B 1 2FLN:1 +Š/ƒŠZ ced[V‚_ Kztk0 3IEEB_\3IE€#b2=ce3h7A 5T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`j7PG$17A5L3:|P3>gP3>=<\*=3q9<7†g:3EMN:/sKM3>KMN:=<\M7A/EsN:1243I=f27:=<E4D7:=3a=<3IYQH4FL=3IKM3>/Q1<9oFLKM@7:G1<9 KMFT5L5TFLN:/O9fN:`‡=39 FL/n@4=!N 41IZ   (e™  p¡    ›  !#"k˜™>š % › $&›'ž o)™ (+* œ ,,¡ -›qš …q/4Fb~cF89r7€@kN:@4H5L7:=*XP3>/43I=<7:5f@4H4=<@kNP93,N:@k3>=C7i1gP3>5LN:@k3IE]`uNP=*1<243&KM7:FT/4`u=<7:Kr3&GNPKr@HB13I=<9IZ qNiD 3Ig:3>=|O…q/4FT~€7A/EeFT1<9gi7A==58ElG>N:KM@4HB1<3>=C9>Zp^FL/G3r…/4FT~€7A/ElFb1C9 gi7A=/9FLg:37A/OEe7A=<3JDaF8EB3I5T\n7†gi7AFL5L7:t45T3P|BFb1FL9aDN:=12^Da24FL5L361NsFL/QgP3I9;1FLXP7A136Da2431<243>=J…/4FT~eG>7A/ntk3H93IE&FL/e=37A5TSU1ZpR24F89JFT/^g:39m1FL7:5"FL/9FTXP2P1C9 FL/Q1Nr1243G>H4=<=3I/P1…q/4Fb~^S t7:93IEh=<3I7A5TSv1FLKr36NP@O3I=<7A1FL/4Xr9\B9m1<3>Ks912O7i1q7A=<3pGH4=<=<3>/Q15L\,GNPKMKr3I=FL7:5T5L\W7†gi7AFL5L7:t45L3:Z R243J1<=<7PEBFb1=C7i1K¥9HBˆ‡3>=C9`u=NPKy93>g:3I=<7:5‰9;24NP=;1CGNPKrFL/4XQ9 Da23>/nH93IEhFT/n=<3I7A5TSv1FLKr3p7:@4@45LFLGI7i1FLN:/O9>Z   "! $#%&'(*),+- .#/0! 213'40+- 3! #5 6768'(6- 9;:*'46!?!3'A@B6CDE#53:<- 2)#:HG F$: I @J'K'4E6- 9L;::13'B: 9 'B: ;: .#K3@V%6 #DOE#EW

[3p3>587AtkN:=C7i1<3q1<243I936@4=NPt45L3>Ks9RFT/&1<2436`uN:5L5TNiDaFL/4Xr1mDNr9H4t93IG1FLN:/9IZ & ;=: ‹ X AGKYOQK#ISI ( N6H#T I[Z ISKG6IS?

/43qNA`‡1243t4FLX:X:39m1‚@=NPt45T3IKs9 127A1 =<3I7:5bSv1FLKM3a@4=NPX:=C7AKMKM3>=C9-`j7:G>3Da24FL5T3HO9;FL/4Xz…q/4Fb~r`uN:= =37A5TSU1g:3I5TNP@4KM3>/Q1 F89612O7i1z…/Fb~]V:3I=/43I5‚G>7:/4/4NA1ptk3W@4=<3>3IKr@413IE Z,R27i1F89I|"7A5L5‚FL/Q13>=<==C7i1K¢==C9@O3G$1FLg:3P|45L31H9R3I5L7:tONP=<7A13124F89aF899H43:Z wq@4@45LFLGI7i1FLN:/@4=7:/dFL/^g:N:VP3zNP@O3I=<7A1FL/4X&9\B9m1<3>K„93>=3I912=NPH4X:2 Q:KPQG?@7VC :9<;2;RQ$Z Vo~47AKM@45L3I9JN:`9\^9;13IK„G>7:5T589JFT/4S G>5THE431<2436N:@k3>=C7i1=37i13I9<9>|^FL/P1<3>=<@4=3I9<9 G>N:KMKzH/4FLGI7i1KG>7A5L5 F89FL/^g:N:VP3IEht^\&7:/n7:@4@45LFLGI7i17A1FLN:/nDa24FL5T3FL/^g:NPVQFL/4XM1<243z9\^9;13IK¤GI7A5L5ƒ7A=<3 GC243GCV:3E€•j93>3p’-FLXZ  Z P–Z {q3~^1I|O7r9@k3IGF87A5‡FL/9;1=HB13E‰Zowq9a9NQNP/&7P9 1<243J1=C7A@&FT/9;1=~^3GHB15‰=ZoR243GC27:/4X:36N:`"KMNBEB3EBH4=KyGI7A5L5 a

Version 2 CSE, IIT Kharagpur

27P9a9GC23>Ks7i13I/lEB3>@4F8G$1<3IE&FL/&’-FLXZ  Z 4Z System

call

check parameters OS Service (kernel mode)

Trap

Application Program (user mode) system call next statement

-’ FLX:H4=<38 #Wo.0/^g:NBGI7i1FLN:/hNA`ow/€@k3>=C7i1FL/4Xs^\B9m1<3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7A1F8G@4==R7@=NPX:=C7AKMKM3>=f931C9 7*@4==C7i13I@9 N:/h7:5b1<3>==<\*EBF  GH45T1f1=C9 7P99H4KM31<27i1RN:/G>31C7:9V*@4==<3IEMt^\W7A/^\rNA123>=@7A=1<9 NA` 1<243qNP@O3I=<7A1FL/4X*9\B9m1<3>KnZ . 1 F89RFT/O9m1<=HG1FLg:361=C9;1<7A/OE,Da2^\h…q/4FT~h/43I3IE4917A5L5L\WGC27A/4XP3J1243p@4=Z …q/4Fb~HO9;39"=g:3I5^`u3>3EBt7:GCV‡Z".0/12FL9o9KM3P|†1243R9GC23IEBH45L3>=o7:==C7A/4XP3I9‡1C7:9VB9"FL/ K*H45b1gP3>5kYPH3>H439f7:9f9;24NiDa/MFL/W’-FTXOZ  Z [OZ-w1 3>g:3I=\*@4=<3>3>KM@B15kYQH43>H43`u=NPK 1<243 15L3IG$1C9o1<2431C7:9Vr7A1‚1243J2437:EMNA`‰1<2463 O=<9;1f/4NP/BSv3IKM@B1m\rYQH43IH43:N:/Ep1FLKr3a95TF8G3PZ-R2O7i1 FL9I|AFT`123 =

3I9<9 EBN^39 /NA1at45LN^GCVsNP=aGN:KM@45L31<3DaFT12FT/nN:/3J93IG>N:/E,NA`"FT1<9R9;1<7:=;1KM@B1<3IE&7A/E,1243p95L3IG1<91<243 /43>~^1a1<7:9Vs`uNP=EBFL9@7A1gP3>=R7A5L5TNiD9aG>N:J/ XPH4=3IKr@41<97s@=NBG399a127A1EBN^3I9a/NA1G>N:KM@45L313zDaFb1<24FT/eFT1<9J7:9<9FTXP/43IE,1FLKM3*YQH7A/Q1=1<9 FT1‚t7:GCVFL/Q1N6N:/3N:`O1<243a@4=H3I9oEB3I@O3I/EBFL/4XN:/*123a=3GN:KM@4H413IE*@4=
Priority Level

1

Task Queues

2 3 4 5 6

-’ FTXPH4=3 [9W ŒlH45b1=N:KM@4HB1<3I91243M@4=~^3GHB1
U–F89a=<3IGNPKM@4HB13Eh7A1a1243p3I/EhNA` Fb1C*9 3012&1FLKM39;5LF8G3pH9FT/X*1<2436`uN:5L5LNiDaFT/4X*1mDNr3>~B@4=399FLN:/29 W   $•

^– =^ •

v–  s •

Q!– #" %$D^ •

j– &'&(&•  & § –  M)• * +,^-–  M •

5 /. § –   M)• *5 +,/. § – &(&'&I•  &75:– Da243I=3   $•

+,^–FL9123r@=FLN:=/EdNA`fFT1<19  +2€1FLKM3s9;5LFLG>43 35s •

Q–F891243MHB1
o`uNP=FT1<96 +2l1FLKr3r9;5LF8G3:|‰7:/7E  M)• * 8,^–FL9q1243rD3>FLX:2Q13En24FL9;1NP=\nN:`?Žf…“H41FL5TFLI7A1FLN:/lN:`‚1243z1<7P9;9V

f7A11<243z3I/ElN:`‚Fb1C9 301<2e1FLKM3z9;5LF8G3:6Z =^ • –aF89R1243*t7:93p@4=FL7A13IE&DaFT102 Z…9;3I= @4=7:/€27†gP3*/4NP/BS /43>XQ7i1FLg:3z/4FLG>3Mg†7:5TH3I9IZzR2^H9>|ƒ3ˆ‡3IG$15L\n1243M/4F8G3Mgi7A5LH43r5TNiD3>=C9q1243M@4=3I9<9 •jFUZ 3:Zotk3>FL/4Xs/4F8G361=a@=NBG3993I9C–$| V‚~^@=IZ  7Z 5*27:9Rtk3>3I/&=<3IG>H4=C9;FLg:3I5T\WEB,3 /43E‰Z‚…/B`uNP5LE4FT/4XM1<243p=<3IGH=<9FTNP/ |^D 36XP321 W  M)• * +,^–  M • 5 :. § –  M)• ,[ /. 5P– ;&'&(& &'&(&>•  & P– . 1 GI7A/stk33I7P9;FL5L\*93>3>/M`u=N:KM@4HB1C7i1FLN:/MN:`k1<243D3>FLX:2Q13EM24F89m13I9<9;FL/4XMN:=R. :6– N:`"1<24361<7P9;VWFL/&1243pFLKMKM3IEBF87i1<3>5L\hGNP/G5LHEB3E,FL/Q13I=gi7A5‰F89aXPFTgP3>/W1<243pKs7i~BFLKzH4K¥D 3IFTXP2P1C7AXP3:Z <

Version 2 CSE, IIT Kharagpur

. `o71C7:9VWH93I9RH4@l?Žf…x`uNP=R1243J`uH45L5ƒEBH4=C7i13s•uFvZ 3PZ § ""?Žf… HB1/  M•)

,^– F89 G>N:KM@4HB1<3IE]•ut^\ V‚~^@=IZ  Z P–f17i1/9 M• ,^– DN:H458Entk3*GNPKM@4HB13Ee7:97s5TNiD gi7A5LH43:|kFL/EBF8G>7i13IEBFL/4X&FT/Q13I=gi7:5L9JX:3>1p@4=NPX:=<3I9<9;FLg:3I5T\&5LNiD 3I=D3>FLX:2Q1<7:X:3PZz. 19;2N:H458E€tk3sG5L3I7:=1<27i1  M)• Q–JGI7A@B121 W   $ • ,^– = E^)• –  M •

5 :. § –  M)• * +,[ /. 5P– ;&'&(&  " %$D^ • – &'&(&I•  & [Q– R243J@4H4=<@kNP93N:`ƒ123JtO7:93@4=1‚NA&` 4~B3IErt7:/E49oN:`‡@=FLN:=589IZo/G>37J1<7P9;VF89f7P99FLX:/43E1N:KM@4HB1C7i1FLN:/O9>Z R243gi7A5LH439 N:` s • Q–7A/E " %$D^ • –GN:KM@kN:/43I/Q1<97:=3sEB3I5TFLtO3I=<7A13I5T\=39m1<=F8G$1<3IEd1Netk3,9Ks7A5L5f3>/N:H4XP2d1g:3I/Q1z7n@4=NBG>3I9<96`u=NPK„KMFTS XP=<7A1FL/4XR`u=NPK Fb1C9"7P99FTXP/43IE6tO7A/E‰Z-R243ftO7A/E49ƒ27†g:3ftO3I3>/zEB39;FLX:/3IEJ1NN:@B13 . : GNPKr@5T3>1FLN:/p1N:KM@4HB1C7i1N:/9F8EB3>=C7i1=Kn|. :1=C7A/9;`u3>=M=C7i13nF89M@4=3I9<9;NP=<9 7:=3r3~^1=<3>KM3I5T\n`j7P9m1GNPKM@7A=<3IEl1N&1243r1<=<7:/9m`u3I=6=<7A13I9JN:` . :EB3>g^F8G3I9IZ*3>587†\lG>7:H93IEdtQ\e. P 1=C7A/O9m`u3I=<9123>=<3`uN:=<3M7A=<3z1<243 tkNA115L3>/43GCV,FL/n7PGC24FL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CSE, IIT Kharagpur

EB\^/7:KMFLGR924Fb`£15T37A=<5T\6FL/7A@4@=NP@4=F87i1<3:|A7P9 Fb1o@4=<3>gP3>/Q1<9"1<7P9;VB9-tk3>FL/4Xp9GC243EBH45L3IEr7i1o24FLX:2r@4=g:3I/Q1<9R9GC23IEBH45LFL/4XMH4/EB3I=@ONP@4H4587A=a=<3I7:5bSv1FLKM31C7:9V,9
fH 6ILK; I CTI”GCTI”R A‘G/T

6;=:

 HJISGR1TAGR

[3M27†g:3r9;Nh`j7A=pEBF89G>H9<9;3Ee1mDNhXP5L7:=FL/4Xh924NP=;1CGN:KMFL/4XP9qNA`R…/4FT~€FL/€27:/EB5LFT/4X&1<243*=<3IYQH4FL=<3>KM3>/Q1<9JN:`f=37A5TSU17A1FLN:/92W EB\^/7:KMFLGJ@4=3>KM@B1C7At45L3JV:3>=H9<9a7z`u3ID N:1243I=EB(3 OG>FT3I/GFL3I9RN:`-…q/4Fb~h127A1 G>=NP@hH4@nDa24FL5L31<=\^FL/4Xr1NsH93p…/4FT~hFL/n=37A5TSU17A1FLN:/9IZ (h`  P^ce_1h&b _gLct^!_ \0ceg9_\1*]\b4 .0/c…/4FT~‹•u=<3>KM3>K*tO3I=p127A1zD3,7A=<3M1<7:5TV^FL/4XeN:=p1<243WNP=FLX:FL/7A5‚…q/4FT~_^\B9;13IK 6– EB3Ig^FLG>3JEB==C9 =H4/hFT/hV:3I=/43I5‡KrNBEB3PZoR243>=<3`uNP=3P|QFT`"9H4@4@kN:=1 `uNP=a7z/43ID EB3IgQF8G3JF89f1/,1243pEB==KMN^E4H45T3627P9 1=5-KMNBEBH45L3I9  /43IG>3I9<9;FT1<7A1FL/4Xh7&9\^9;13IK X:3I/43>=C7i1@ Zw9p7W=<3I9H45T1I|‰@4=g^FLG>36FT/e7A/n7A5L=<3I7:E4\WEB3>@45LNi\:3Eh7:@4@45LFLGI7i17A13El7:967A/OElDa243I/l123>\l7A=<3z=<3IYQH439m1<3IE€tQ\l7:/d7:@BS @435L#F8G>^Z7i. 1c e/_ G>3:1L|‡_Da\24gLFLce5T^3M_17,`4 1<7:9VeF89Da=/OGN:H/P1<3>=p7A/€3>=<=NP=Da243I/l1<243rE4FL9Ve=H/9JN:HB16NA` 9@7:G>3:Z .0/nNA1<243>=aDN:=CE49I|Q/NrXPH7A=C7A/Q1<3>3JFL9RXPFTgP3>/h127A1qEBFL9V,9@7:G>36D NPH45LEhtk37†g†7:FT587At5T3JDa243>/e7*1<7P9;V,Da=FT139a7*t5TNBGCVs13=<3IYQH4FL=3E&9@7PG327P9R1N,tO3z7:5T5LNBG>7A13IEntk3`uNP=3pDa=7i1<3IE”N:/c1<243eEBF89;V‡Z”R24F89rD NPH458Ec=<3I9H45b1MFL/ =<3I7PEcN:@k3>=C7i1| =39;H5b1G399IZq.0/d=37A5TSU17A/Q1J@O3I=;`uNP=Ks7A/OG3FLKM@4=NigP3>KM3>/Q1GI7A/dtO3r7:GC24FL3>gP3IEet^\e9m1=C7i1Ks9>|-=<3I7A5TSv1FLKr3M1FT3I/P1*`uN:=Ks7:/Q\27:=<E =<(h3I7: 5bSv1_ FLKM 3J7Aba@4_2@45L+ŠF8G>ce7idP1|Da24FLGC2eF89a17A1FLN:/9IZ   (e™  "+p¡" ›   ›  !#"k˜™>š % › $ &d›q'ž  )™ (+* œ ,,¡ -›qš ¡ [3z27†gP3z7A5L=<3I7:E4\h93>3>/€FT/e1<243r@4=3Ig^FTNPH993IG$1Z-.0/&124F8993IG1FLN:/ |BD3pEBFL9=<3>/Q1q7:@4@4=/&H4/EB3I=;1C7AVP3>/h1NMKs7AV:3p…q/4Fb~ 9H4FT1<7At5T3J`uN:=q=37A5TSU17i1
w /O7AFLg:3z7A1;13IKM@B1qKs7:EB3zFT/n1<243z@7P9m1a17:@7At4FL5LFb1=1<243,tO7:9FLG,V:3>=KM3>/Q1<3IE”GI7A@7:t4FL5TFT1FL3I9*FT/OG5LHEB3IE”=37A5TSU1=Rt4H4FL5b1NigP3>= 1243p…q/4Fb~n9GC23IEBH45L3>=|^31CGAZjNiD3>gP3>=|:1<243I9363~^13I/9FTNP/9REBNM/4NA17:EEB=399 1<243 `uH4/OE47AKM3>/Q1C7A54@4=K“127A1‚D 3I=3R@kN:FL/P1<3IErN:H41‚FT/r123a5L7P9m1f93IG1FLN:/ 3P/7AKM3>5L\:|:/4N:/BS @4=<3>3IKr@41FLg:3RV:3I=/43I5 7:/E_EB\^/7AKMF8GM@4=g:3I5L9IZn{NeDN:/EB3I=p12O7i1*9H4@k3>== OGF87A5‚3>~^13>/O9;FLN:/9p1Ne1<243,G>7:@7AtFT5LFb1FT3I/GFL3I9rNA`q1243e…/Fb~”9\B9m1<3>KŠ`u3>5L5aDaF8EB3e9;24NP=;1rNA`1<243n=3YQH4FT=<3>KM3I/P1C9zN:`q27:=<E”=37A5TSU1Z 

6;

‹ARHY ' *K#UjIH N/NK#A-*C!

qNP9;1;Sv1<7A=<X:3>1NP@O3I=<7A1FL/4X&9\B9m1<3>Ks967A=<3*@kN:@H45L7:=5L\ntO3IFT/XnE43>@45LNi\:3ElFL/d3IKztk3IE4EB3Ed7:@4@45LFLGI7i1Zz.0/€1<24FL9p7:@4@4=7A1FLN:/dE43>g:3I5TNP@4KM3>/Q16FL96EBNP/43*NP/7h24NQ9m16Ks7:GC24FL/43:Z*R243M24NP9;1JKs7PGC24FT/3*F89J3>FT1243I=7W1<=<7PEBFb1KN:=67W[‹FL/EBNiD9J9;\B9;13IK&Z6R243*=37A5TSU15LN:@k3IElN:/e1<243*2NP9;1J7A/OEe123*EB3Ig:3>5LN:@k3IE€7A@4@45LF8G>7i1K*tO3E4EB3E_FT/7e=<3I7A5TSv1FLKr3&9;\B9;13IK&Zw 4JŒnS =39;F8EB3I/P1r9;Ks7A5L5=37A5TSU1=5‰F89RH93IE&FT/&1<24361<7:=XP31RtONQ7A=CE‰ZoR24FL9q7A@4@4=Ks7i13I/n924NiDa/&FT/e’-FLXZ  Z  Z

§"

Version 2 CSE, IIT Kharagpur

ROM−resident operating system

TCP/IP Embedded processor

Host System

"’ FLX:H=3  W‚BGC23>Ks7i1/Q1<7A1FLN:/,N:` 7 qNP9;1;S0"7:=XP31^\B9m1<3>K R243MKs7AFL/FLEB37,tk3>2FT/Ed1<24FL9p7:@4@4==C7i13IE9 1=C7i1FL/4X,9\B9m1<3>K¤N:/e1<2431C7A=<X:3>1qtONQ7A=CEnD NPH458En5L7PGCV g^FL=;1KMN:=<\MKs7A/7:X:3>KM3I/P1a9H4@4@kN:=1I|^/43>FT123>=RD NPH458EWFT1a9H4@4@kN:=1a7A/^\MHB1FL5TFT1FL3I9a9HGC2&7:9RGNPKr@FT5L3>=C9>|^@4=11atONQ7A=CE,DN:H458Eh=H4/h123p=37A5TSU1=C7i1KnZ R24324NQ9m1o9;\B9;13IK“FL9 7J…/4FT~zNP=-[‹FL/EBNiD9;S t7:93IE9\B9m1<3>K 9H4@4@kN:=1FL/4X1243R@4=g:3I5TNP@4KM3>/Q1 3>/^g^FT=N:KM@4FL5T3I=<9I|‡3IEBFT1NP=<9I|‰5TFLt4=C7A=<\:|‰G=N:KM@4FL5T3I=<9I|kE43>t4H4XPX:3I=<931CGAZzR2439;3M7A=<3zKM3IKrNP=\lE43>Ks7A/E4FT/4Xn7A@@45TF8G>7A1FLN:/91<27i16=3YQH4FT=<3 g^FL=;1KMNP=\€9H4@4@kN:=1IZsR243M24NQ9m1F896H9H7A5L5L\€GNP/4/43IG13El1=/G=/43I=<7A13zG>N^E43`uN:=J1<243 1C7A=<X:31p@4=/Q15L\:|ƒ1243s3>~B3IGH41<7At5T3MKMNBEBH45L3sFL9pEBNiDa/5TNQ7:EB3El1HB1FLN:/WF89GN:/Q1<=NP5T5L3IEs7A1f123q24NQ9m1R9;F8EB3qHO9;FL/4X*7*9;\^K*tONP5TF8GG==Z-/G>31<243q@4=KMNP=\,7:/EhtO3GN:KM39a=37:EB\M1@45LNi\:3EWFL/n7:@4@45LFLGI7i1Z ? NPKrKM3I=FL7:5-3>~47AK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:ZRR24F89DR7:9E4N:/436`u=/OG\hG>N:/9F8EB3>=C7i15L5 `uNP= /4NP/BS =37A5TSU17i1=<=H4@41<9EBH=FL/4XsV:3I=/3>5 @4==<\h9Ks7A5L5ƒG==RNA`"7M93IG>N:/E‰Z ’4H=;1<243>=|^124F89a7A@@4=NQ7:GC2WDN:H5LE,/4NA1aDN:=3I9<9;NP= 3I/^gQFL=/Q1C9>Z-.0/hK*H45T1FL@4=N:S G>3I9<9;NP=3I/Qg^FL=NP/4KM3>/Q1<9JKs7:9V^FT/X,1<243sFT/Q1<3>=<=H4@41<9`uN:=6N:/3r@=NBG399N:=6EBN^3I96/NA1p243>5L@FT/3>/9H4=X:=|47P9124361C7:9VB9R=H4//4FT/XrNP/hN:1243I=a@4=3I9<9;NP=<9G>7:/e9m1==5"GNBEB3p1N:KM3J1243@=NPt45T3IKnZRR23p`uH4/E47:KM3>/Q1<7:5 F899H43p9H4==3E,13>=1<7:FT/nGNBEB393>XPKr3I/Q1<9FT/&1<243V:3I=/3>5vZ R23I936G>NBEB3 93>XPKr3I/Q1<9I|fG>7:5T5L3IEG==M5TNBGCV^FL/4X€=C7:G>3&G>N:/EBFT1FLN:/O9MKrFLX:2Q1sEB3>gP3>5LN:@ Z :HO9m1M1N]3>~^3IKM@45TFT`u\_1<243 §5

Version 2 CSE, IIT Kharagpur

@4=N:/9F8EB3>=123G>7:936Da243>=<3J1243I=3p7:=31mD NM@4=3I9<9 /3>3IE91NMFT/OG=<3>KM3>/Q1a123Jgi7:5TH43pN:`-7M927A=<3IE gi7A=3I9<9R=37:E49Fv|7A/E,123>/&1243pN:1243I=IZ‚R23>\WtkNA1<2&FL/G>=3IKr3I/Q1RFT1I|1243I/&1243I\WtON:12nDa=KMNP=\PZ-. ` F DR7:9N:== 1=5B@=3I3>KM@B1FLg:3P|:5LNBGCV^9‚KzH9;1ftk3H93IEs7i1f7:@4@4=3I9oFL/M123V:3I=/43I5 G>N^E43:Z T2 Busy wait

T1 Spin lock Critical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1F8G>7:5k=<3I9N:H=3q1<27i1aDN:H458E,=<3IYQH4FL=<3:|B97†\ § Ks93IGJNA` @4==61<7P9;V9624N:58EBFL/4Xn123s5TNBGCVd7A161243s1H4=<=3E‰|ƒ7A589NW123WG>7:GC23rG>N:/Q13I/P1C9>|‰@O7AX:39JNA`f1<243M1<7P9;Ve3>1=R7924N:=1‚1FLKM3:|B9<7†\ § Ks93IG:|:1<2435LNBGCV*tk3IG>N:KM3I9 7†gi7AFL5L7:t45T3PZ-R23:|^7A/4N:1243I= GNP/Q13~^1R9;DaFT1
o1/G>3:|k123*=<3I9@ONP/93p1FLKM3*N:` * fD NPH458EetO3 Ks93IG  1<24N:HX:2€FT` FT1p27:Ed9;FLKM@45L\et4H9\eD7:Fb1<3IEe`uNP=q1<243M5TNBGCVn15L3I7P9;3P|k1243I/€1<243*=<3I9@kN:/9313> / 5 Ks93IGAZo.0/n9HGC2e7r9FT1H7A1FLN:/ |47s9@4FL/h5LNBGCVWD NPH458E,tk37A@4@=NP@4=F87i1<3:Z ƒ316H9J/4NiD H4/EB3I=<9;1<7:/Ee1<243rN:@k3>=C7i1FLN:/€NA` 7&9;@FT/d5TNBGCV‡Zpw9@4FL/€5LNBGCV&2O7:969GC23>Ks7i13>/9;2NiDa/lFT/]’-FTXOZ  Z a Z6.0/ ’-FLXZ  Z a 7nG=N:KM@7:=<7:t45T3z1Ne7&GN:/Q1<3~^1 9DaFb1CGC24FL/4Xz13F89 @=N:13IG13Est^\W7z9@4FT/&5LN^GCV‡Zo^H4@4@kNP93:|^1C7:9V 27P9 7PG>YQH4FL=3EM1243p9@4FL/,5LN^GCVMXPH7A=CEBFL/4X1<243 =<3I9N:H4=CG3P|O7:/EnFT/l1243*Kr37A/^Da24FL5T3P|1C7:9V =3YPH3I9;1<9a1<243z=<3I9N:H=3:Zq^FL/G3z1<7P9;V   27:95LN^GCVP3IE&FT1I*| G>7:/4/4N:1qX:3>1J7:GIG399R13:|FT’1 3mH9m1pt4HO9;\nDR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=FLN:=gP3>589 N:`-_1< 24 23p1 +|1<=Ks9IZf.0/l…/Fb~nt7:93IEn=<3I7:5bSv1FLKM3pN:@k3>=C7i1Ks9>|OFT/l7PE4EBFT1FLN:/&1NhEB\^/7AKMF8G6@4=FLN:=7:5T5L\z924NiD9"1243R1<24=<3>3a7†gi7AFL5L7:t45T3@4=g:3I5L9IZƒ[3a/4NiDct=FL3}\ EBF893pG>7A13>XPN:=gP3>589>Z §

Version 2 CSE, IIT Kharagpur

 t_ . •£1< 24]p3 h FLE41 5T36c1C97:\59VBJ–b2|Bcth=H /4 9a 7iR1a215v5TZ NiD.mEB3I5L9;3p1a@4@4==FLFLN:N:=<=3p5vZ‚9m1CR7i124F83JG61<7A7P/9;EnVW7:1=23J7A1/4NA=H41/O=<9a3IG>DaN:KM243>@4/hHB11<23IEh3>=<@O33I7A==7AN:5L5L1\:24Z 3I=R1<7P9;VB91NM=

N:KM@4HB1<3IE @k3>=7:5T5L\c1=C7AX:3&=<3I9@ONP/9;3n1=C7:G1FLg:3–f1C7:9V^9IZoq\^/7:KMFLG6=<3IG>N:KM@4HB1C7i1FLN:/&NA`-@4=
@4==@4=FLN:=gP3>589>Zpwq96924NiDa/lFL/d’-FLXZ  Z ^|k1<7P9;VB9J7i11243MEB\^/7AKMF8G @4=gP3>5QN:@k3>=C7i1<3 7i1-@4=="@4==C7i1<3q7i1‚1<243I93q5L3>gP3>589>Z -7:9V^9f27†g^FT/X=37A5TSU13IEB3I/G3qNig:3>=‚1<7:9VB9‚DaFT12&EB\^/7AKMF8Ga@4=gP3>589 •j93>3p’-FTXOZ  Z A–Z 0

Real−Time Priorities 127 Dynamic Priorities 254 255

Idle

Non−Migrating Priority

’-FLX:H4=<3 1W‚Žf=FLN:=g:3I5L9RFL/l^3>5T`£S 24NP9;1…/4FT~n^\B9;13IKM9 ™/( X¤¡„¡  ›  !#"k˜™>š › $&›ž'o™)(+* œ,,¡ -›qš ŒeF8G=Ks97:=3*3~^1=<3>KM3I5T\n@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| [‹FL/EBNiD9 {q‹9\^9;13IKD7P9oKzHGC2,KrNP=39m1C7At45L3z•jE4NQ39f/NA1G>=<7P9;2k–-127:/M12433I7:=5LFT3I= p6QS t7:93IEs9\B9m1<3>Ks9>Z R2435L7A13>= g:3I=<9FTNP/9 N:`oŒlFLG>=NQ9;N:`£1 $ 9aN:@k3>=C7i1Ks9aD3>=<3EB3I9/3I7A5LN:XP\lNA`R1<243Wgi7A=3I9;1NP=<9zNA`[‹FL/EBNiD9r{qDR7:9z/4NA1s97A1F89m`j7PG$1N:/G>3>=7i1FL/4XW3>~Q1<3>/9FLg:3>5L\&H9;3EnFT/€24N:KM3I9I|N  G3I9I|O7:/E FL/EBH9;1=/Q1C9>Z w/MN:=<XP7:/4FLI7i1Ks9 KMFTXP2P1‚tk3FL/Q13>=<3I9;13E17A1FLN:/9q`uN:=pGNQ9m1p9<7†gQFL/4XhN:=6GN:/^gP3>/4FL3>/G>3:ZR24F89JFL9639;@k3IG>FL7:5T5L\&1=7A1FLN:/dE43>g:3I5TNP@4KM3>/Q1J7:/E 7:5L9NsDa243>/nNP/45T\n7M5LFTKMFT13IEn/^H4K*tO3I=qN:`oE43>@45LNi\^Kr3I/Q1<9a7A=<3p=<3IYQH4FL=3E‰Zf.0/n1<243p`uN:5L5LNiDaFT/4XO|4D3zG=gP3>5LN:@4KM3>/Q1Z’"FL=C9m1|‰D 3*24FTXP245LFTXP2P1p9N:KM3`u37i1H=39N:`f[‹FL/EBNiD9J{q 1<27i1p7A=<3 §[ 

Version 2 CSE, IIT Kharagpur

DOS

Windows NT

Windows 3.1 new code

Windows 2000

Windows 95 Windows XP Windows 98

"’ FLX:H=3 < Wj J3I/43I7:5TNPX:\WN:`o@k3>=C7i1FL/4XW^\B9;13>Ks9`u==NQ9;N:`£1 $ 9Q1<7:t45T3 gP3>=<\z=<3>5L3>gi7A/Q1 7:/EsH93`uH45O1N*7p=37A5TSU1gP3>5LN:@k3>=Z".0/s1<2439H4t93IYQH43I/Q1 9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@4=<3>3IKM@B13E*t^\r7A/rFT/Q13I==~B3IGH413IErFL/W’-.m’- NP=<E43>=‚7i1f76@=FLN:== 12O7A/ 1243p2O7A=CEBD7:=3JFL/P1<3>=<=H@B1@4==127:/h1<243@4==S 5T3Ig:3>5O12=37:EM1~^3GHB1<3J7A1R7z@4== 12O7A/W1<27i1aN:`ƒ.;J 49N:=RJŽ?9IZ R23>=<3`uN:=<3:|Q3>gP3>/h.;J 49R7A/E,ŽR?9 GNP==<3I9@ONP/EBFL/4XM1Nhg:3I=\n5LNiD @4=FLN:=7:/€@4=<3>3IKr@41=<3I7A5TSv1FLKr3*@4=3I9<9;39>ZJwq9J7,=<3I9H45T1I|k123z@kNA13I/Q1F87A5 t45LN^GCV^FL/4X NA`=<3I7:5bSv1FLKM3s1<7P9;VB9rEBH43h1NdJŽ?9rG>7:/ctk3h587A=<X:3PZ€’4NP=*3>~B7:KM@45T3P|oFT/Q1<3>=<=H4@41<9rEBH43W1=C7i1<3IE]t^\]5TNiD @4=3I9<9;3Es`j7P9m1<3>=R12O7A/&=37A5TSU13I9<9;39>Zow589N|B.;J 49a7:/E&ŽR?9RX:3>/3>=C7i13E,EBH361NMV:3I\ tONQ7A=CEe7A/E€KMN:H93zFL/Q13>=C7:G1FLN:/9DN:H458EeN:@k3>=C7i1<3z7i1624FLX:243I=@=FLN:=g:3I5L9JGNPKM@7A=<3IEn1=<3`uN:=<3 §a

Version 2 CSE, IIT Kharagpur

FT/s@=39;3I/G3N:` @4=3I9<9;39‚G>7:==<\^FT/XpN:HB1f/31mDN:=KrSvDaF8EB3q’-.m’  YPH3>H439‚NA` JŽ?9 Ks7†\ 5T37:E,1NsH4/^tkN:H4/OEB3IE&=<3I9@ONP/9;31FLKM3I9a3Ig:3I/h`uNP=a=37A5TSU1Ky2O7:9Rtk3>3>/e7†gPN:F8EB3IE,FT/&123p[‹FT/E4NiD9 ’? VN:@k3>=C7i1FL/4XM9;\B9;13IK •j93>3^3GAZ  Z < Z < –‚1<24=
Real−time 16−31

Real−time normal

Real−time idle Dynamic critical

Dynamic 1−15

Dynamic idle

;&

16 15

Dynamic normal

Idle

Y

31

1 0

’-FTXPH4=3  W‚"7P9;V,Žf=FLN:=S 9;1*NPH4=CG3W]9\2b 7A~=<]9FT/\ Xe@4=_1N:`a1]!NB”G\0NP^!5L9z_/9;H41 @3@OJNP\0=;ct1` =C 7i1Kn|-1<7P9;VB9zNA`7e=<3I7A5TSv1FLKr3h7A@4@45LF8G>7i1G>3I9<9;FL/4X 9;2O7A=<3IEh=39;NPH4=3I9Ks7†\h9HBˆ‡3>=H4/^tkN:H4/OEB3IE&@4==C9FTNP/9R5T37:EBFL/4Xr1NhEB3I7PEB5TFL/43pKMF8993I9a7:/En3>gP3>/n9;\B9;13>Ky`j7AFL5TH=3PZ [‹FT/OEBNiD96{q“EBN^396/4NA16@4==3:|‰3>1=FT1F8G>7:54=<3I9N:H4=CG39o7AKMN:/4XJ1<243>Ks93>5Lg:3I9IZ R24FL9fFL9f76KM7 3mN:=f924NP=;1CGN:KMFL/4X6NA`‰[‹FL/EBNiD9‚{ Da23>/MH93IEMFL/s=37A5TSU17A1FLN:/9IZMBFT/G>3sKMNP9;16=<3I7:5bSv1FLKM3r7:@4@45LFLGI7i17A5 =<3I9N:H4=CG3967AKMN:/4Xh1<7P9;VB9I| D3rNPHB15LFL/43 tO3I5TNiD 7*`u3>D @ONQ99FTt5T36DR7†\^9FL/nDa24FLGC2nH93>=S 5T3Ig:3>5k`uH4/OG$1FLN:/O7A5LFb17A/ntk37:E4E43IE,1NM123p[‹FT/E4NiD9a{q 9;\B9;13>KnZ R243z9FTKM@45L3I9;1J7:@4@4=3I9aDaFT12N:HB1JH4/^tONPH4/EB3Ee@4==C9FTNP/9aF89 t^\GI7A=<3`uH45‚@=FLN:=1;15L3I7P9;FL/4Xe5LNBGCV^9IZewq9*9;N^N:/c7P9z7n1C7:9V€F89*9HGIG3I9<9;`uH45fFL/_5TNBGCV^FL/4Xl7 /4N:/4Sv@4=<3>3IKM@B1<7:t45T3q=39;NPH4=3:|QFb1C9@4=FLN:=5L3I7P9;39o1<243 =3YQH4FT=<3IEl=39;NPH4=3:|‡FT1<9J@4=7:/€tk3r=<3I9;1NP=3E‰ŠZ NiD3>gP3>=|OD3rVQ/NiD 127A16124F89p7A=<=<7:/4X:3IKM3>/Q1qDN:H458El5L3I7PEe1N&587A=<X:3 FT/243>=3S =3I5L7A13EWFL/QgP3>=C9;FLN:/O9•v^3>3z^3GAjZ Z [^–$Z w/4N:1243I=q@kNP9<9;FLt4FL5TFT1m\nFL91NhFTKM@45L3>KM3>/Q1J1243*@4=3>FL5TFL/4X,@=N:1NBGNP5 •jŽR?Ž –ZO"N,FLKr@5T3IKr3I/Q1q12FL9@4=N:5v|D3z/43I3IE 1Nr=39m1<=F8G$1123J=<3I7:5bSv1FLKM31C7:9V^9 13EBFT/X&7h=39;NPH4=CG3zF8Š9 5i/ |k1243I/1243sG3IFT5LFL/4Xh@=FLN:=3zF89 5†/  § Zp.0/…q/4FT~‡|"’".m’ N:@41FLN:/ 7AKMN:/X*3YPHO7A5‰@4=`uN:=<3p7A5L5 7†g†7:FT587At5T3J@4=g:3I5L9RGI7A/ntO3pHO9;3EW1
X

' ISKR1MR



GT

.0/”124F89s9;3G$1FL=M9H4FT1<7:t4FT5LFT1m\]`uN:=sEB3>@5TNi\^KM3>/Q1MFT/ =37A5TSU1Z §Ea

Version 2 CSE, IIT Kharagpur

0 _  1 +ŠctdP_ S _ Jb ”\0_

ceh”]\ `  +

h”c 

JŽ?9 ‚3I9 {N 4a37A5TSU1=C9;HO9a…/4FT~ w G>N:KM@7A=7A13EsFT/h"7:t45T3  Z § Z-. 1RGI7A/stk3J93>3I/M127A1[‹FL/EBNiD9 {q‹9H4@4@kN:=1<97K*HGC2 /43I= 1N:KM@7A=<3IEz1N*…/4FT~&• § "6KW^3IG–$Z [‹FL/EBNiD9‚{ 2O7:9oKs7A/^\*NA`k1243a`u37i1KnZ*NiD3>gP3>=|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PFb1C7A5‡DaFb1<2hFT1<9a…q5b1<=FT~‰|47A/E&?a DaFT12l?aqS0…/4FT~,7A=<39N:KM3JNA`"12436@4=/Q1R3~47AKM@45L3I9IZ ^FL/G>3123>=<3zD3>=<39;NhKM7:/^\hgi7A=7A1FLN:/97:G>=NQ99a…q/4Fb~l@5L7A1;`uN:==<3p7*@=NPX:=C7AKDa=/&N:/nNP/43p…/4FT~h@4587i1`uN:=3IE&`uNP=q7s9;1<7A/OE47A=CEn…/4FT~hDR7:9a=<3IG>N:XP/4FTI3IEht^\h7A5L5vZR243 O=<9;1q3ˆ‡N:=1a1NiDR7A=CE49a9;1<7:/E47A=CEBFLI7A1FLN:/&NA`o…/4FT~&DR7:9a1<7AVP3>/ t^\€wo p FT/1<243M`uN:=K .0/P1<3>=`j7:G>3M(3 O/4Fb1g:3I=IL| aBy7A/EdNA1<243>=pgP3>/EBNP=<9JFLX:/4NP=3El1<24F89 FL/4FT1F87i1FLg:3PZ‚R2436/43~^1FL/4FT1F87i1FLg:3pDR7:9 1C7AV:3I/hH/EB3>=wq{B. †. VVV|^Da24F8GC2n\QFL3>58EB3EhŽR6^.0‘zZ

 ;&

ILK DTBI  AO

F 

RŽ 6^.0‘ FL9a7:/hN:ˆOS09;2NQN:1N:`ƒ1<243pN:@k3>/n9;N:`£1mD7:=3KMNig:3>KM3I/P1Zow KM7 3mN:=aGNP/G3I=/hNA` Ž6^.0‘ F8912436@kN:=1<7AtFT5LFb1m\,NA`-7:@4@45LFLGI7i1=<3>/Q1gi7A=gP3>=|ƒŽ6B.0‘2O7:96tk3>3>/c9NnDaFLE43>5L\d7:GIG3I@B13E€/4NiD 127A1z3>gP3>/ /4NP/BS0…/4FT~    [#%%6F Q6$'4QQ,  F .# 0F- RH:H#%R#%3! #%3'(N$: CD.# 6FQPU#%$!6F;: CD# $@  .#/ #/3'(N3: C..# A+,) Q,.# F 37#.13EC : @ RM  D I6CD- R?S#/3'(N3: C..# 6$'( P+3=:
’N:=R9;NPH4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@k3>=`uN:=3@4=
Version 2 CSE, IIT Kharagpur

;=:

O

Ž6WF89a7*@ONP@4H4587A=a=<3I7A5TSv1FLKr3JN:@k3>=C7i1K1<27i1F89RtO3IFT/Xr@=FLKs7A=K*tO3E4EB3IEn7:@4@45LFLGI7i1FLN:/O9>Z . 1aFL9a7†gi7:FT587At45L3 `u=Ks9I|‚7l587A=<X:3s@4587†\:3I=FL/c123,=<3I7A5TSv1FLKr3,N:@k3>=C7i1FL/4X€9\B9m1<3>K 7A=<3>/O7   Zd. 1*F89*7€24NP9;1;Sv1<7:=XP31p1m\^@O3hNA` =<3I7:5bSv1FLKM3,N:@k3>=C7i13e^3IG:Z  Z [OZ 5P–$Z]Ž 6_FL9rtk3>FL/4X€H93IE”FT/9;3Ig:3I=<7:5 GNPKMKr3I=FL7:5 3IKztk3IE4E43IEc@=NBEBHG1<9IZ_w/ 3>~B7:KM@45T3p7:@4@45LFLGI7i1FLN:/&NA`oŽ O6WF89RFT/&1<243pt7:93p9m1C7i15L5 @42N:/43p9\^9;13IKs9>Z Legend: XRAY+: Source level debgguer PROBE: Target Debgger

Editor Cross− compiler . XRAY+ Libraries

Application

Host Computer TCP/IP

P N A +

PSOS+ PHILE PROBE ROM

Target Board

-’ FTXPH4=3 § "#WoŽ 6^Svt7P9;3E,3>gP3>5LN:@4KM3>/Q1aNA`gP3>5LN:@4KM3I/P1R27P997:5T5L\MtO3I3>/n9;24NiDa/hFT/n’-FTXOZ  Z § "4Z R243624NQ9m1aGNPKr@HB13I=F891m\^@4F8G>7A5L5L\ 7*EB3I9VQ1N:@ƒZNA1<2,…/Fb~W7A/OEs[‹FT/OEBNiD9f2NP9;1<97A=<3q9;H@4@ONP=;1<3IE‰ZoR243q1<7:=XP31ftkNP7:=<EsG>N:/Q1<7:FT/9‚12433>K*tO3E4EB3IE,@4=3I9<9;NP=I| 4aJŒc| 4wŒ_|k31N:KM@4HB1<3>=q=

=|B9;NPH4=3S 5T3Ig:3I5 EB3>t4HX:X:3I=I|O7A/En5LFTt=<7:=\h=NPHB1FL/43I9IZRŽ 6  7:/E”N:1243I=sN:@B11stONQ7A=CE‰Z Ž {qw  FL91<243p/43>1mD NP=VsKs7A/O7AX:3I=IZ-. 1a@4=7A1FLN:/&tO3>1mD 3I3>/h1243p24NQ9m17:/EW1<243J1<7:=XP31aNig:3I’= V‚1243I=/43>1 7:/E]’-J.$Z . 1zGNP/B`uN:=1p9\^/Q1<7i~7A/EdFL9zGN:KM@7A1FLt45L3rDaFT12]N:1243I=zq?Ž i.mŽoS t7:93IEe/31mDN:=/Q1EBNiDa/45LNP7:E4FT/4X&7A/EdEB3>tH4X:XPFT/4XnGNPKMKzH4/4F8G>7A1FLN:/ tk31mD3>3I/123 1C7A=<X:3>1 7:/Ep1<243R24NP9;1IZ-Ž 4   V ”FL9-1<2431<7:=XP31-E43>t4H4XPX:3I=-7:/E ‘ 4w :‹FL9-1<243a9;NPH4=3S 5T3Ig:3I5PEB3It4H4X:XP3>=Z /‘ 4qw : FL/^g:N:VP3I9‚Ž 4  ’V  1/^g^FL=NP/4KM3>/Q1‚1Nz1243=37A5TSU17i1gP3>5LN:@k3>=Z-R237A@@45TF8G>7AS 1gP3>5LN:@4KM3>/Q1F89EBNP/43pN:/&12324NP9;1qKs7:GC2FT/437:/E&FL9EBNiDa/45LNP7PEB3IE,1NM1<243p1<7:=XP31tkNP7:=<E‰ZR2437A@@45TF8G>7A1FLN:/nF89qEB3It4H4X:XP3IE H9FL/4Xr1243p9N:H4=CG36EB3>tH4X:XP3>=6•u/‘ 4qw :6–$Z qH4=7i1/Q1I|^1<243p7A@4@45LF8G>7i13J12437:@4@45LFLGI7i1FLN:/&=

589aDa24F8GC2lG>7:/ntO3r7:9<9;FLX:/43EW11N:@k3>=C7i1FL/4Xe9\^9;13IK„F89pN:/5T\ § 5 8\Q139>Zh’4N:=927:=FL/4X G>=FT1F8G>7:5"=<3I9N:H4=CG39q7:KrNP/4XW=<3I7:5bSv1FLKM31<7P9;VB9I|OF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7  GqGNP/Q1=Ks9IZ XJ{‘ {3>H41==C9Ž6^.0‘qS G>N:KM@45LFL7:/P1wqŽ‚.m9R7:/EsF89 FLKM@45L3>KM3>/Q13EWH9FL/4X 7rKMFLG>=NPV:3I=/43I5‰7A=CGC24Fb1<3IG1H4=<3:Z R2436KMF8G=5‰7A=CGC24FT13IG1H4=<3JNA` XJ{‘ F89a9;24NiDa/&FL/n’-FLXZ  Z §:§ 7:H9;36N:`ƒ123 /43pX:=C7AFL/43E,97A587AtFT5LFb1m\,NA`ƒ1<243pKMFLG>=N:S VP3>=5 7A=CGC24FT13IG1H4=<3:|kFT16GI7A/ltk3rG>N:J/ OX:H4=<3IEn1=FT1F8G>7:5-7PEBgi7A/Q1<7:X:3FL/€24FLX:2dg:NP5TH4KM3rEB3>g^F8G3I9I|‡Da243>=<3 3Ig:3>/n7 § =3EBHG$1KMN:=<\,GNQ9m1C9RG>7A/n=<31HB1<=FL/4NW7A/OEnFb1C9 ;KMF8G=<N 6…q.   G>7:5T5L3IEnŽf24NA1=C7i1<3p3~^1=<3>KM3>5L\W`j7P9m1N:/l7sgP3>=<\,9;Ks7:5T5"Kr3IKMN:=<\ `uN^NA1<@4=g^FLG>3I9@kNP9<9;FLt45L3:Z .0/,`j7PG$19| XJ{‘ 7A/Eh{3IHB1==[3>tn7A@4@45LFTS 7:/G39>|‰931;Sv1NP@€tkN†~B3I9I|‡Œ€Ž W@5L7†\P3>=C9>|k3IYQH4FL@4KM3>/Q1pH93IElFL/l1<243rFT/E4H9m1<=F87A5o7:/ElKM3IE4FLGI7A5TSv3YPHFT@4KM3I/P 1 3I5LE49I-Z XJ{‘{3IHB1=
5

§

Version 2 CSE, IIT Kharagpur

File System

Device Driver

Message Passing

Micro kernel

Interconnection

Appli− cation

TCP/IP Manager

-’ FTXPH4=<3 §P§ WoŒeF8G==5‰w=CGC24FT13G$1H=36NA`XJ{‘ 27P9ztk3>3I/”@kN:=13E]1N]7l/^H4K*tO3I=*N:`q@4587i1;`u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/3I9;13IE&FL/Q13>=<=KMN:=<\,Ks7:/7AXP3>KM3>/Q1 H4/Fb1z•UŒlŒl…–R`uN:=ag^FT=1HO7A5‰KM3>KMN:=<\WKs7A/O7AX:3IKM3>/Q1IZ [‹FL/EBNiD9‚’? VlHO9;39-7@4===C9;FLN:/@=NPt45T3IK 127A1oFL9-@4=<3I93>/Q1 FT/*[‹FT/E4NiD9 {6Z‡{qN:==5"124=<3I7PEe27:/EB5LFT/4X,1243*@7AXP3`j7:H45b1s•uFvZ 3:Z6ŽR?R–a=

g:3I5"2FTXP243>=127:/ €•U9;3I3 ^3GAZ  Z  Z 5P–$Za[‹243I/€7M1<24=37:EnDaFT12l@=FLN:=g:3I5 W9HBˆ‡3>=C9q7s@O7AX:3`j7AH45T1I|k123z@4=7:H9;FL/4Xh1243M@7:X:3z`j7AH45T1IZrR24FL963I/9H4=39 1<27i1q7*12=37:EhFL9a/NA1at45LN^GCVP3IEht^\,7A/^\W5LNiD 3I=R@4=FLN:=gP3>/&Da243>/nFT1q9;H4ˆk3I=<9a7r@7:X:3J`j7AH45T1IZ › (n  eš pž ,)™ (+*  ›  !#"k˜™>š › œ ,,¡ -›š¡ H4=gi7A5LH7i1K EB3Ig:3I5TNP@O3I=<9NA`£1<3>/ /EhFb1/3IG399<7A=<\r1NrtO3I/GC24Ks7A=N:KM@4HB1<3>=a9;\B9;S 1<3>Ks9>Z  3>1H9 =C9m1J3~47AKMFL/43z2NiD 124F89qF89JEBN:/43z`uN:=1=C7:EBFT1FLN:/O7A5"G>N:KM@4HB1<3>=69;\B9;13IKM9IZJBH4t93IYQH43>/Q1<5T\P|kD3*927:5T5-3~47AKMFL/431<24F89 F899H436`uNP=a=37A5TSU1=R1<243p`uNP5T5LNiDaFT/XM9FT1H7A1FLN:/ Zfw99H4KM3612O7i11<243 NP=XQ7A/4FLI7A1FLN:/&\:N:HeDN:=/Q1<=H9;1<9q\:NPHn1N,93>5L3IG1124 3 ;tk3I9;1 sG>N:KM@4HB1<3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T5LFTNP/h.0/O9m1<=HG1FLN:/9RŽ 3I=aB3IGNP/E–7A/OE,*’ -JŽl•j’-5LNP7A1FL/4X Ž NPFT/Q1@O3I=<7A1FLN:/9qŽ 3>=q^3GN:/OE–$’Z NiD3>g:3I=I|47:/n3>gi7A5LH7i19GI7A/nNA`£1<3>/etk324FLX:245L\,KMF89;5L3I7PEBFL/4XZR243 9Fb1gP3>/,@=NP@ONQ9;3EM127A1R7*KMN:=<39H4FT1<7At5T3`uH45L5‡`uN:=3I9<9;NP=aB@O3I3IE Z  3>1qH9a3>~47AKMFT/3pDa2Q\,124F89F899NZƒNWEB3>13I=KMFL/4361243*Œe.mŽ h=C7i1FL/4XsN:` 7sG>N:KM@4HB1<3>=| 7s@=NPX:=C7AKF89=

=NA`oFT/O9m1<=HG1FLN:/9FT/e1<243@4=N:KM@4HB1<3>=-Z qNiD 3Ig:3>=|kFb1pF896/4NA19@O3GF 3IEd7:91NnDa27A11m\^@k3rN:` @4=3IE9 1/Q1<5T\P|QgP3>/E4N:=C9f1C7AVP3q1<243p5TFLtk3>=1m\WNA`-=H4//4FT/Xr@=NPX:=C7AKs9o1<27i1XP3>/43I=<7A13JN:/45L\M124NQ9;3s•jKM7PGC24FL/43–FL/9;1=\^G>5T3M1Z,w9z7n=<3I9H45T1I|-Fb` \PN:HcKs7AVP3,\PN:H4=rt4H4\^FL/4XdEB3GF89;FLN:/O9zt7P9;3EcNP/_1243eYQH4N:13IE”Œe.mŽ ”7A/E ’  JŽ ]=C7i1




 









5<[

Version 2 CSE, IIT Kharagpur

EBF89<7A@4@kN:FL/Q13IE Zo. 1FL9agP3>=<\s5TFLV:3I5T\,127A1Da243>/n\PN:Hn7:G$111<243zG>N:KM@4HB1<3>=a\:NPH&93>5L3IG13EhtO7:93IEhN:/nŒe.mŽ h=C7i1FL/4Xs7A/OE,=

7A1FLN:/ |B\PN:H4=7:@4@45LFLGI7i1=<\^tONBEB\d9;N^N:/_=<3I7:5TFL>3Ed127A1rŒe.m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 .   4 

T1

T2 t1

T3

t2

t ts

-’ FTXPH4=<3 § #Wo-7:9V,^DaFb1CGC24FL/4XWRFTKM3wqKrNP/4X VfYQH7:5 Ž‚==Zo.0/&’-FLXZ  Z § 4|  FL91<24361FLKM37i`£13I=aDa24F8GC2 9;1<7A=1<91HB137A`£13I=  GNPKr@5T3>13I9‚Fb1C9o1FLKM3q95TF8G3P|:t45LNBGCV^9I|ANP=fGNPKr@5T3>13I9q•     .   –Zo"7P9;Vz9DaFT113>=/G>\WNA`-1243pVP3>=5 E7i1<7M9;1=KM@B1FLN:/1HB1FLN:/NA` 7s24FLX:243I=@4=GH=<9IZ "7P9;Vs@=3I3>KM@B1FLN:/h1FLKM3627:9tk3>3>/nFL5T5LH9;1=C7i1<3IEhFT/h124363>~B7:KM@45T3p924NiDa/,FL/n’"FLXZ § [Z "7P9;V,@4=3I3>KM@B13GN:KM@kN:/43I/Q1<29 W‰1<7P9;Vp9DaFb1CGC24FT/X1FLKM3   |A1FLKr3 1N=3GNPX:/4FL>3o1<2433>g:3I/Q1"3>/O7At45LFT/X123f24FLX:243I="@=FLN:=KM@B1/G>\1~B3IGH41FLN:/MNA` 5

Version 2 CSE, IIT Kharagpur

Condition enabling high priority task T 2

T2 starts running

T2 T1 t1

t2

t3 time

tt p

’-FTXPH4=<3 § [Wo-7:9V,Ž‚=<3>3IKr@41FLN:/nRFTKM3 Interrupt occurs ISR T1 t1

t2

t3 time

ti l

-’ FLX:H4=<3 §a W .0/Q13I==/G>\,RFTKM3 1243z=3YPHFT=<3IEh.;J4 7i`£1<3>=q7:/eFT/Q1<3>=<=H4@41N^GIGH4=C9IZf.0/Q13I==/G>\,13>/l924NiDa/nFL/l’"FLXZ §a Z .0/Q13>=<=/G>\*1N:KM@ONP/43>/Q1C,9 W-27A=CEBDR7A=<3EB3>587†\rFT/&?Ž …¦=<3IG>N:X:/FTIFT/4X61<243qFL/Q13I==13p1<243rG>H4=<=3I/P1FT/9;1=/Q15L\h=

/e1Ks7:@424N:=<3z92^H sFT/4Xh1FLKM3*F896EB(3 O/43IEd7:9q1243*1FLKM3*1<27i163>587A@O9;39qtk31mD3>3I/€7 Acquire Semaphore

Release Semaphore

tss T1 T2

T1

T2 time Request Semaphore

-’ FTXPH4=<3 §a W‚^3IKM7:@424NP=3p^2^HsFT/XWRFTKM3 5TNiD3>=f@4=FLN:=5L3I7:9FL/4X793>Ks7A@42N:=<37A/EW724FTXP243>= @4=3I/dFL5T5LH9;1=C7i1<3IEdFT/]’-FTXOZ  Z E§ a Zz.0/]’-FTXOZ  Z E§ a | 7i17&G3>=1<7:FT/d1FLKM3r1<7:90V 24N:58E491243W93>Ks7:@424N:=<3:Z*R243r1<7:90V  =3YQH43I9;1<9`uN:=J1<243W9;3IKs7A@424NP=3r7A/Edt45LNBGCV^9IZMR243MFT/Q13I=gi7:5-tk31mD3>3I/  =<31H=/4FL/4X&123M93>Ks7:@424N:=<3M7A/E =

Ks7A@24N:=<3p9;2^H sFL/4Xr1FLKr3PZ  Z h%]!h_ [Z\0ce]9\0c b (h&g9_\0`ace]h,+ŠctdP_ I• P–  w9 924NiDa/WFL/ XPH4=<3 § B|PH4/^tkN:H4/OEB3IE,@4=FLN:==C9;FLN:/M1
Version 2 CSE, IIT Kharagpur

t1 T3

T2

T1

t2

T1 time Request Release Acquire Semaphore Semaphore Semaphore

Acquire Semaphore

"’ FLX:H=3 § JWo…/^tONPH4/EB3EnŽ‚==C9FTNP/hRFLKr3 FL9aG>N:KM@4HB1<3IEn7:91<24361FLKM3pFb1q1<7AVP3I9 `uN:=1243pNP@O3I=<7A1FL/4Xr9\B9m1<3>Ky1NM=3GNPX:/4FL>3J@4==C9;FLN:/•   –R7A/E&=

3J7:/Eh9;1<7:=;61 7i`£1<3>1=  GNPKr@5T3>13I9pI•  –Zf^\^KztkN:5LFLGI7A5L5T\P|  /     Z a Z #b  9\5#d + 3”\] !3”b +|cedP_ .  4  R24F89f@7:=<7:KM313I=fFL/EBF8G>7A13I9f123/^H4K*tO3I= N:` VQFL5LN:t^\Q13I9fNA`"E7i1<7p127A1RGI7A/Wtk3 1=C7A/9;`u3>=<3IEztO3>1mD 3I3>/r1mDN1C7:9VB9 DaFb1<24N:HB1‚HO9;FL/4Xp9;2O7A=<3IE*Kr3IKMN:=<\N:= @kN:FL/P1<3>=C9>Z R24F89o@7:=<7:Kr3>13I=-KM37:9H4=39"1243a3  G>FT3I/G\ NA`"1243E47A1<7M9;1=Z R24384a23I7A589;1N:/3JKM3>1=/Q1F 3IE&@7:=<7:KM313I=<29 W 

2  / " 



 Z%$



   

 1     







 





 







[‹243I=3P|47 § |‰ZTZLZT|O7 a 7A=<3J3IKM@4FT=7A5L5L\,EB31<3>==39M1243dV:3I=/43I5bS 27:=<EBDR7A=<3eGNPKzt4FL/7i1KnZR24FL9hF89 1<243>=<3`uNP=37sG>N:KM@4=<3>243I/9;FLg:36tk3>/GC2KM7:=V‡Z qNiD 3Ig:3I=I#| 4a23I7A589;1N:/3p27:99N:KM393>=3>1 EB37:EB5LFL/43I96N:`R7:@4@45LFLGI7i1FLN:/O9s•£1<7P9;Vd9GC243EBH45LFT/X&3>1N:/9F8EB3>=<3IE7i1z7:5T5vZsw589;NO| 123W9;FT~dKM3I7P9;H=3IKr3I/Q16GI7i13IX:NP=FL3I967A=<3 9N:KM3>Da2O7i17:E^S 24NBG67A/E,123>=<3pFL9R/4NM@4=*= 3mHO9m13I/nGC2NP93>/ Z ;

FGHJILKKM6NH[OQK#ADC&ISR1R1TBGU

ISK 6I  

ƒ31  *tk3z1<243*1FLKr3*1NnGNPKM@45T3>13r7hG>3>=1<7AFL/e1C7:9V&Da23>/l1<243>=<3*7:=3*/4N,FL/Q13I==/ 5"4| """MFL/Q13I==G>H4=q@k3>=69;3GNP/E‰ZqR243I/e123*NigP3>=<243I7PEhEBH3z1=<=H4@41<9@k3>=693IGNP/EnF89 XPFTgP3>/&tQ&\ W  .  

  





  



  



? NP/9;F8EB3I= `uNP=R3~47AKM@45L3J127A1  6FL9 § & a 9;3G7:/E6 JF89 § 9;3GAZoR243I/ |^12436FL/Q13>=<=3I9<9;FL/4X*Nig:3>=<2437:E pFL9 "Z a •uNP= a " r–-NA`‡1231<7P9;V*3~B3IG>HB1FLN:/M13I9<9;FL/4X6123FTKMKM3IE4FL7A13@7:=;1‚N:`‡1243FT/Q13I==
  

;&





  

' KTT)( ISG/R1TAG*?  I 
"=F8EBFLKM3>/9FTNP/7A5-KM3I7P9;H4=<3*G>N:/9F8EB3>=C9a1<24=3I3z`j7PG$1=`uN:=3zN:` 7W=<3I7:5bSv1FLKM3r9\B9m1<3>KnZpR243I93*F8EB3I/P13I9<9;3E*@k3>=a^3GN:/OEl•jŒe.mŽ § –|QŒlFT5L5TFLN:/O9fN:` .0/P1<3>=<=H@B1<9Ž‚==N:`".P“@O3I=<7A1FLN:/9RŽ 3I=aB3IGNP/E•j{.JŽ4–$ZO/OG3J12439;3J1<24=3I36@7A=C7AKM31<3>=C927†g:3JtO3I3>/nEB31<3>=7A/&tk3pN:tB1C7AFL/43IEht^\,H9FT/X*1<2436`uN:5L5LNiDaFT/4Xr3~B@4=<3I9<9FTNP/LW

 •  §  j5  ‚– 

 



 







 

5

Version 2 CSE, IIT Kharagpur

ILH1ISK ( TBGT=G6U Z‹ILKGIS? OQK#ISI ( N6H /TB?=T•H

; 

^NPKM3M1FLKr39FT1tO3GNPKr39p/43G3I9<9<7A=<\e1NlEB3>13I=KMFL/43s123s3~^13I/P1z1NeDa24F8GC2_7A/]N:@k3>=C7i1K V:3>=KM@B1<7:t45L3stQ\ 24FLX:23>=‚@4=~B@O3I=FLKM3>/Q1<7:59;3>1fH4@M1<27i1 GI7A/sFL/EBF8G>7A13VP3>=54@=3I3>KM@B1<7:t4FL5TFT1m\:Z-.0/W’-FTXOZ § < |P12436D 4a.mwq { KMNBEBH45L3XP3>/43I=<7A13I9‚=<7:/EBN:K1<=FL@45L31<9EB3I/4NA13Jg:3I=;13I9fNA`ƒ7p1<=F87A/X:5L3:Z R243>=<37:=3/W=37A5TSU1
(& & & WDa24F8GC2,=<3I7PEs1<243J1==1F8G3I9R7:/E,GI7A=<=\MN:H41RG>3>=1<7AFL/,@=NBG399FL/4X*7:/EO/7A5L5T\sNPHB1@HB1R12436N:==1 F8G3I9"1=-KrNBEBH5T3R1<24=NPH4X:2*KM3I9<97:X:3f@O7:9<9;FL/4XZ-D 4a.mwq { ¦NP@O3I=<7A139-7A1o24FTXP243>= @4=’= =C9m1RFL/QgPN:VP3I9fD 4.mwq/{ r|47:/Es1<243>/hFT/^gPN:V:39f7r9;\B9;13IK G>7A5L5‡9;HGC2&7:9 @4=3I9<9 G>=37i1=C9 7nEBFTˆk3I=3I/Q1=37A5TSU13I=pGN:KM@7:=391243M1<=F87A/4XP5T3MgP3>=1F8G3I9J=<3IG>3>FLg:3IEl`u=NPK¢1<243 D 4a.mw/{ 7:/Eh`u=NPK 123z=<3I7A5TSv1FLKr3J1C7:9VkZ. ` 1243*9;\B9;13>K¤V:3I=/3>5 F89a/4N:1q@4=<3>3>KM@B1C7At45L3:|1243I/e3>gP3>/ntO3>`uN:=<3p123=37A5TSU1~Q1‚931oNA`O1=/G>FT39 7:=36gi7A=3I==<3I9H45T1<9a7:=36N:tO9;3I=gP3IE‰ZoR24361=`u=3YPH3>/G>\,7i1Da24F8GC2ng:3I=;13I9X:3>1KrF89<9;3E•U7:9RF8EB3>/Q1=$–$|^FT/OEBFLGI7i1<3I9R1<243pD NP=<9;1aG>7:936V:3I=/43I5‰@4=<3>3>KM@B1






TRIANG

Shared Memmory Analyser

System Call RT1

RT2

RTn

Output

Timer

Y

Y

Y

Y

’-FLX:H4=<3 §'< WoB31H@h`uNP=D4a.mwq{

œ     " [d3|=C9m1E4FL9=C7i1FL/4XW9\B9m1<3>K¤FL9=3YQH4FT=<3IE&15TNBGCV&7A/Eh1FLKM3>=J9;3I=g^F8G3I9I|9;1<7A1F8G6@4=FLN:=g:3I5L9I|45LNiD 1C7:9V,@4=<3>3IKM@B1FLN:/n1=N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3I/4/4399\ PN:2/ fZO7:/En7†g^F8EewZOŽo7A1;1<3>=C9;NP/  Z H=C9IJ| 5"" 4Z  5  p7AD = 4pZ Ž Z7:/EhŽ NP=;1<3>= M/= 5"" § Z 5





§

Version 2 CSE, IIT Kharagpur

       !#"%$'&)(+*',-!"%././$0*213"4(+*'576 89"%:+!;*'6<1:+!=">8*06/?>$0@BAC!3*06/?D*',-./$0!3,-!=67(+!=EF5>6GE/*08H(:+*'A IJ(!#EK./$2"4(LM5>:+,-8=NPORQ/!3:+!">:!,-">6S@D:+!="78H576 8 QT @;EJ*28U(+:*0A/IJ(+!=E*',-./$0!3,-!=67(V"4(+*'576 8R"%:+!W 6<EJ*'6 ?XLY"[Z75>I/:#N]\6 !*0,-.<57:H(V"%6^(_:+!="78H576;*28`(+Q "4(*'(*08_5%La(+!36b15^8U(&c!3dC!#1e(*0Z>!(59Q "[Z>!f" S EJ*28H(:+*'A/I/(!=Eg8H57$'IJ(+*'576-I 8H*06/?,h">6^@i./*0!=1!#8j5>Lk1VQ !="%.hQ<"%:VE ">:!7l%:V"4(Q !3:](+Q "%6hQ "[ZS*06/?"1!=6^(:V"%$0*'m=!=Ekl^8H57./Q/*28U(+*01="4(!#EklS"%6 Eh13578H($0@ ,h">1VQ *'6/!7NXn/I :H(+Q/!3:#lk,h"%6S@o:!#"%$'&)(+*',-!9"%././$0*213"4(+*'576 8p"%:+!X*0T 6/Q/!=:!=67(+$'@qE/*08H(:+*'A IJ(!#E T *'(QPEJ*'dC!=:!=67(8!36 85>:V8">6 Er"71e(+I "4(+5>:V85>Ls" 8@J8U(+!3,t. $0"71!=ED"4(?7!357?>:V"%./Q/*213">$'$0@o8H!=. "%:V"4(+!i$05J13"%(*05>6 8=Nhu6/5>(Q/!=:.<57*'6^(?75>*06/?*06DLY"[Z>57I/:p5%LEJ*08H(:+*0A/IJ(!#ED*',-./$0!3,-!36^(V"4(*05>6<8 *28pLY"%I $v(&)(+5>$0!3:V"%6 13!>N;n ">I/$'(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R6 !( T 5>:+x-8H(:+*0Z>!=8s(+5-"71VQ/*0!3Z>!f?>5S5JE"[Z>!3:V"%?7!.C!3:LM5>:+,-">6 1!7lJ"%6 E,h"%x>!#8_6/5 "%(H(!=,-.J((+5,-!=!(f(Q/!9*'6<EJ*'ZS*2EJI ">$zE/!=">E/$'*06/!=85%L`(+">8xJ83NpORQ/!#8H!i6/!( T 5>:+xJ8"%:+!X*06^(!=6 EJ!=EqLM5>:fI 8!i*06B">././$0*01="4(*05>6<8 T Q/!=:!i$'576/? EJ!=$0"[@J8f"%6 EqQ/*'?7QBE/"%(+"g$'5^88I/6 EJ!=:pQ/!="[ZS@$'5^">Eq135>6 EJ*'(*05>6<8f">:!9">1=1!3./(+"%A $'!7N†‡(p*08f6/!=!=EJ$0!=8+8(5b8"[@(Q<"4(8HI 1VQr6/!( T 5>:+xJ8"%:+! *06 8IJˆ;1*0!36^(LM5>:I 8!p*'6b:+!=">$v&c(*0,-!p">././$0*01="4(+*'576 83N †w6‰(Q *081VQ "%.J(+!3:#l !bW :V8H(gEJ*08+1I<888H57,9!oA<">8*01o135>6 13!3.J(V8;1576 1!=:6/*06/?P:+!="%$'&c(*0,9!q135>,-,XI 6/*01="4(+*'576|N…ŠSI A 8H!#~^I/!36^($0@>l ! 135>6 8*0E/!3:Q 5 T :+!=">$v&c(*0,-T !X157,-,XI/6/*213"%(*05>6o13">6qAC!i8I/./.C5>:(!=Eb*06q,iI/$v(+*'. $'!-">1=1!=8+86/!3( T 57:xJ8=Nn‹*'6 ">$'$0@>l T !XEJ*2813I 88Q/5 T :!#T"%$'& (+*',-!157,-,XI/6/*213"%(*05>6b13">6AC!8HI ./.<57:H(+!=E*06. "71Vx>!3(H&w8 T *'(+1VQ/!#Eg6 !( T 5>:+xS8=N Œ Ž‘“’o”•–˜—i™š›•”+œCž=‘• Ÿ—i‘“‘¢¡o£ož3¤f¥zž—9£¦ž=£¨§t’o’o”3ž3¤f¥zž3—i£b– †w6o(+Q/*28f8!=1(*05>6 T !iEJ*28+1I 8+8";LM! T "%. ./$'*213"%(*05>6 8 T Q/5^8H!X8+"4(+*08HLY">1(57:@gLMI/6 1e(+*'576/*06/?*28Q/!="[ZS*0$'@bEJ!3.C!36<EJ!36^(576o(Q !iI/6<EJ!3:+$'@S*06/? 6/!3( 57:xy© 81="%. ">A/*0$'*'(U@b(5b8HI ./.<57:H(p:+!="%$'&c(*0,9!-157,-,XI/6/*213"%(*05>6|N}D!h8HQ 5>I/$2EqAC!=">:(+Q/!=8!h"%./. $'*213"%(*05>6 8*'6D,-*'6<E Q/*0$0!i(+:@S*06/? (+5rI/T 6 E/!3:V8U(V"%6 EPZ4"%:+*05>I 8*28+8HI/!#8*06K:+!="%$'&c(*0,9!15>,-,iI/6/*213"4(+*'576 8XE/*08+1I 8+8!=EP$2"4(!=:X*06ª(Q *08i1VQ "%.J(+!3:#NrO:+"7EJ*v(+*'576 "%$0$0T @>l‹:!#"%$'&)(+*',-! 135>,-,XI/6 *01="4(*05>6<8 T !=:!I<8H!#E-*'6hQ ">:+E-">6 Eh8H5>La(`:+!="%$'&c(*0,9!">././$0*01="4(+*'576 8]:+I/6/6/*06/?*06;EJ*28U(+:*0A/IJ(+!=Eh./:+5J1!#88]135>6^(:+5>$ ">././$0*01="4(+*'576 8 8I 1VQP">8.C5 T !=:p./$0">6^(+8=l"[ZS*'576/*2138=l«1VQ/!3,-*213">$]./:5J13!=8+815>6^(+:57$)l|">IJ(57,957A/*0$'!#83l!(+1>N;¬5 T !3Z7!3:#lk(Q/!;13I/:+:!=67("7EJZ4"%6 13!3,-!36^(+8p*06 135>,-,XI/6 *01="4(*05>6(!#1VQ/6/57$'57?>*0!=8RQ "78,h">EJ!*'(.<5^88*0A/$'!pLM57:8I/./.C5>:(*06/?h"%././$0*213"4(+*'576 8*06b,-">6S@EJ*'dC!=:!=6^("%:+!=">8R8I 1VQo">8=­jZS*0E/!35 A/:+57"7E/13"78U(">6 EP"%././$0*213"4(+*'576 8p5>6D(+Q/!;†w6^(!=:6/!3(X8HI<1VQP"78pA "%6 x^*06/?,-,-!3:V1!7l«!(V1%N†w6B(+Q/!hLM57$'$05 T *'6 ? l T ! :+!3ZS*0! T "iLM! T 5>L«(Q !=8!"%././$0*213"4(+*'576 8=N ®°¯ ±k²³‡¯/´>µ=²¶[·)±¸º¹²«µ#»<¼F¯Jµ=·)»<±s½g†w6F">6F"%I/(5>,h"%(!=EªLY">1e(+5>:+@D"B8H!3(i5>L:57A<5>(+8913"%:+:+@r5>I/(X(Q !,h"%6SIJLY"71e(+I/:*06/?r"71e(+*'ZS*'(*0!=8=N ¬!3:+!>l%(+Q/!6 !( T 5>:+xX8H.<"%6 8j"X8H,h"%$0$ ?7!357?>:V"%./Q/*21_"%:+!="p*06;"¾«u¿À!36SZS*':+5>6 ,9!=6^(=NORQ !:57A<5>(+8j135>,-,XI 6/*01="4(+!"%,-5>6 ?p(Q/!=,-8!3$0Z>!#8 ">6 E T *v(+Qb(Q/!135>6^(:+5>$0$'!=:I 8*'6/?h"-:+!=">$v&c(*0,-!p135>,-,XI 6/*01="4(+*'576. :5>(5J157$k*',-./$0!3,-!36^(+!=Eb5>6b" T *0:!=$'!#88R,-!=E/*'I/,ÂÁY8!3!n‹*0? NRÃ>Ã>ÄN ORQ/!15>6^(+:57$'$0!3:j135^57:+E/*'6 "%(!#8‹(Q/!f">1e(+*'ZS*'(*0!=8]5>Ly(Q/!:+5>AC5%(#N‹ORQ !,-!=8+8">?>!=8](Q "%(j(Q/!:57A<5>(+8j135>,-,XI/6 *01="4(! *'(Q;(Q/!135>6^(:+5>$0$0!3: :V"%6/?7!fLM:57,€6/576J&‡13:*'(*213">$k"%6 E6/576J&c:+!=">$v&c(*0,-!p$'57?>?>*06/?-*06JLM5>:+,h"4(*05>6(5hQ *'?7Q/$'@1:+*v(+*01="%$«">6 EQ "%:VE:!#"%$'&)(+*',-T !15767(+:57$k*'6/LM5>:+,-"%& (+*'576|N]¿"4(+I/:V"%$0$'@7l>(+Q/!:+!=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(*28ULY"71e(*05>6«N ®°²‹ÉMµ#·Y¼KÅSƋ·Y¯o®°²‹ÉMµ#·Y´7¯ 3µ7½s†w6o"9,XI $v(+*',-!=E/*0"-,iI/$v(+*01=">8H("%./. $'*213"%(*05>6|lJ,h"%6S@;:+!=13!3*0Z>!=:+8s$'5J1="4(!#Eb"4(?>!=5>?>:V"%. Q/*01="%$0$'@hEJ*'dy!3:+!36^( ./$2">13!=8_:+!=1!=*'Z7!,iI/$'(*0,9!#EJ*2"i*06JLM57:,h"4(+*'576;LM:+5>,€"i,XI $v(+*',-!=E/*0"h8!3:+Z>!=:=N‹ORQ/!p,XI/$'(*0,-!=EJ*2"9*'6JLM57:,h"%(*05>6*08RI 8I ">$'$0@h*'6(Q !LM57:, 5>Lz8H(:+!=">,9*06/?9ZS*0EJ!=5h"%6 Eb"%I<EJ*'5L(+Q/!=8!*'6/LM5>:+,-"%(*05>6Q "[Z>!W :+,€:+!=">$v&c(*0,-!:+!=~^I/*0:!=,-!36^(+8=N ±yµ#Å^¶[±‹Å^µ _ÅSÉYÅ zÈ»C±yË]½ ]57† *28">$'$z8!((+5g:+!3Z75>$0IJ(*05>6/*0m3!XZ>5>*21!i15>,-,iI/6/*213"4(+*'576|N ]57† À8H(+"%6<E/8LM57: ]57*013!X54Z>!=:† zl Q/!3:+! † ‰:+!LM!3:V8_(5-(+Q/!†w6^(!=:6/!3( j:+5%(5J135>$C(Q "%(I/6 EJ!=:$0*0!=8"%$0$|†w6^(!=:6 !(157,9,iI/6/*213"%(*05>6|N _@;I 8*06/? ]5>† ‰./Q/576/!=8">6 E(!#1VQ/6/T 5>$05>?7@ 576/!f1="%6,-">x>!f./Q/576/!f1="%$0$08s(+Q/:57I/?>Q†w6^(!3:+6/!3(=N]ORQ/!pA1(I ">$CZ75>*21!(:V"4ˆ;1*08R13">::+*0!=EhAS@-(Q !f†w6^(+!3:+6/!(#l ]57† G*28_LM:+!3!5>:13578H(+8_,XI<1VQ$0!=8+8_(Q<"%6o"%6b">1(I ">$y(!3$0!3. Q/5>6/!1="%$0$)lJ!#8H.C!=13*0">$'$0@;54Z7!3:R$'576/?hEJ*28U(V"%6 13!=8=N ORQ/!h6 !( 5>:+xq!36 13:@S.J(V8Z>57*013!h8H*0?>6 ">$08p*06^(5qE/"%(+"b. "71Vx>!3(+8"4((+Q/!g8!36 E/!3:!=6 Eª"%6 EPEJ!#1:[email protected](+8*'(*067(+5oZ>57*013!;13"%$0$28"4((+Q/! :+!=13!3*0Z>!3:!=6 EkT NqORQ/*28!=6 1:[email protected](*05>6K">6 EPEJ!=13:@S.J(+*'576ª*08LM:57, ">6ª"%6 ">$'57?q8H*0?>6 ">$ÁM*cN !>Nq"bZ>57*013!;13">$'$aÄp*067(+5rEJ*0?>*'(+">$s8*'?76 "%$Á)E/"4(V" . "71Vx>!3(+8VÄj(+Q "4(*28R./$2">13!=8R5>6(Q !6/!( T 5>:+x;"%6 Eb">?7"%*06;(+Q/*28*08EJ!=13:@S.J(+!=E*'6^(5h">6 "%$05>?-8H*0?>6<"%$28"4(R(Q/!:+!=13!3*0Z>!=:_!=6 EkN ]57† …">././$0*01="4(+*'576 8"%:+!i6 5>:+,-">$'$0@qI 8!=E *'(Qª"o8*',-./$0!h,-*013:57./Q/5>6 !-">6 ED15>,-./I/(!3:i8H.C!=">x>!3:V8=lkA/IJ(X† (!=$'!=./Q/576/!=81="%6 ">$085gAC!iI<8H!#Eklk./:+54Z^*2EJ*06/?g">6r!{J.C!3:+*'!=6 1!i*0E/!3T 6^(*213">$«(+56/57:,h">$«(+!3$0!3./Q/576/*06/? N ]5>† "%./. $'*213"%(*05>6 8f"%6 EB8H!=:ZS*21!#8:+!=~^I/*0:!XW :, :+!=">$v&c(*0,-!pE "4(+"i(+:+">6 8ULM!=:8HI ./.<57:H(#N ROBOT

 

















 



  

 























 –‹ž3¤ Ÿ—9£b¤•’¥‹– †w6b(+Q/*088H!#1e(+*'576|l T !EJ*08+1I<88"9LM! T A ">8*01135>6 13!3.J(V88I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Nj¾«u¿8"%:+!fI 8HI<"%$0$'@;*0,-./$0!3,-!36^(!#EI 8H*06/?hA/:+57"7E/13"78U(R6/!3( T 57:xJ8=N ±yµ#Å^¶[±‹Å^µ>½_ORQ/!†w6^(!3:+6/!3(=l785>,-!3(*0,9!#8]13">$'$0!=E-8*',-./$0@i„%(Q/!¿!(=l „p*28]" 57:$2E *2EJ!8H@J8H(!3, 5%Ly15>,-./I/(!3:`6/!( 5>:+xJ8«&‹"6 !( 5>:+x 5>L/6/!( T 5>:+xJ8|*06 T Q/*21VQI 8!3:V8"%(‹">6^@p576/!s135>,-./IJ(+!3:z13"%6«l4*vL/(+Q/!3@pQ "[Z7!j.CT !3:+,9*28+T 8H*05>6|l4?7!(‹*'6JLM57:,h"%(*05>6LM:+5>,º"%6ST @p5%(+Q/!3:‹157,9. T IJ(!=: ">6 E;85>,-!(+*',-!=8`(+">$'xhEJ*0:+!=1e(+$'@9(+5iI 8!3:V8`"%(s5>(Q/!=:_135>,-./IJ(+!3:V8`I 8*06/? ]57† zN7}D!,iI 8H(sQ/5 T !3Z7!3:jAC!f" T "%:+!5%L«(Q/!LM5>$0$'5 T *06/?( T 5 EJ*28H(*06 1e(+*'576 83­s(Q !*'6^(+!3:+6/!(iÁY$'5 !3:V13"78H!f*aÄ*28"%6S@15>$0$0!=1e(+*'576b5%Lj8H!=. "%:V"4(+!p./QS@S8*213"%$«6/!( 5>:+xJ83l/*06^(!=:+135>6/6/!#1e(+!=EAS@";135>,-,-5>6 ./:+5%(+5J15>$cl/(+5hLM5>:+,›";8*'6/?7$'!X$'57?>T *213"%$«6/!( T 5>:+xyNORQ/!†w6^(!=:6/!3(9ÁYI/./.C!3:V13">8!†HÄ*08(Q/! T 57T :$2E T *2EJ!157$'$0!=1(*05>6o5>Lj*'6^(!=:+135>6/6 !=1e(+!=E 6/!3( T 57:xJ8=l T Q/*21VQ?>:+! T 57IJ(b5%L(+Q/!B57:*0?>*06 ">$u ku¿‚s9 O 8 ;Î :1< l(+Q "4(bI 8!=8†w6^(!3:+6/!3( `:5>(5J157$iÁM† _Ä-(+5G$0*'6 xÍ(Q/!DZ4"%:+*'57I 8 ./QS@J8*01="%$|6/!3( T 57:xJ8R*06^(5g"h8*'6 ?>$0!$'57?>*213"%$«6/!( T 5>:+xyNsORQ/!†w6^(+!3:+6/!(AC!3?^"%6o*06 1Î ./= Ã9">8"-:+!=8*'$0*0!36^(157,-./IJ(!=:6/!3( T 57:xhLM57:(+Q/! fŠg,-*0$'*'(+">:@gI/6 EJ!=:(Q/!u ku¿‚`OÀ./:5 U!=1(=l/"%6<E54Z7!3:s(*0,-!Q ">8?7:5 T 6*'6^(+5-"9?7$'57A "%$k157,-,XI/6/*213"%(*05>6(5S5>$«5%L,-57:!f(Q<"%6 Î ÃJl */*/*i157,9. IJ(!=:6/!( T 5>:+xJ8j(+Q "4(8Q ">:!"-157,9,-576"7E/EJ:+!=8+8H*06/?-81VQ/!=,-!>N

















>







?@BADCEFGIHJ KL EMN PO?QHSR

!#"%$'&)(+*',-!"%././$0*213"4(+*'576 86 !3!=EK?>I ">:+">67(+!3!#8:!=?7">:+EJ*06/?b(+Q/!8!3:+ZS*013!g~^I "%$0*'(U@BLM:+5>, (Q !I/6<EJ!3:+$'@S*06/?r6 !( 5>:+xqLM5>:i(Q !3*0:98+"4(+*08H& LY"71e(57:@B5>.C!3:V"4(+*'576 83NORQ/!g8!3:+ZS*013!-~^I ">$'*'(U@D!{J.:+xq*285>La(!36ª!3{J./:!#88!=EBT *06P(!3:+,h85>L13!3:(+">*'6 T I ">$'*'(U@q5>LRŠS!=:ZS*21!oÁ T 5SŠ/Ä. "%:V"%,-!(+!3:V83N-!#"%$'&)(+*',-!;"%. ./$'*213"%(*05>6 8fI 8I ">$'$0@qQ "[Z7!-8H(:+*06/?>!=67(:+!=~^I/*0:!=,-!36^(+8f5>6B(Q !-LM5>$0$'5 T *06/? T 5SŠb. "%:V"%,-!3(!3:V8=­_A<"%6 E *2ES(+Q|lk,h"4{J*',iI/, EJ!=$0"[@b*06q(:V"%6<8H,-*288*'576|lyEJ!3$2"[@ U*v((!3:#lk$0578+8:V"4(+!>lk"%6 EqA/$'5J1VxS*06/?g./:+5>A<"%A/*0$'*'(U@>Np}D! !=$0">A<57:+"%(!(Q/!#8H! T 5SŠ;. ">T :+">,-!(!=:+8_*06(Q/!pLM57$'$05 T *'6 ? N UÅSÉY¯7Ë]½pu8I 1313!=8+8ULMI/$zEJ!=$'*0Z>!=:@5%L`"g. ">1Vx7!(AS@o"g135>,-,XI/6 *01="4(*05>6r6/!( 5>:+xg*06B"g:!#"%$'&)(+*',-!X">././$0*01="4(*05>6BEJ!3.C!36 E 86/5>(576/$'@ 576;:!#1!=*'ZS*06/?(Q !. "71Vx>!3(s*067(V">1(=lSA/IJ("%$28H5X5>6h(+Q/!(+*',-!p"4( T Q/*01VQg*v(R*08_:+!=T 13!3*0Z>!=E|N†‡L|(+Q/!(+*',-!(Q/!f6/!3( T 57:xi(+">x>!=8`(59EJ!3$0*0Z>!3:_" 

V

Version 2 CSE, IIT Kharagpur

. "71Vx>!3(s!{/13!3!=E 8j(+Q/!8H.C!=13*vW !#EgEJ!=$0"[@-AC5>I/6<EklS(Q/!=6g(+Q/!p"%././$0*213"4(+*'576h(*0,-!=8R57IJ(R">6 Eg1="%6;:+!=8I/$'(_*06"XLY"%*0$0I/:!f*0613"78H!5%L"iQ ">:+E :+!=">$v&c(*0,-!p">././$0*01="4(+*'576">6 E"-EJ!=?>:V">E/"%(*05>65%L]8H!=:ZS*21!p~7I<"%$0*v(U@;*06o13"78H!p5%Lz"h8H5>La(:!#"%$'&)(+*',-!"%./. $'*213"%(*05>6|N UÅSÉY¯7 Ë #·Mµ3µ#Å^¶^½ 7*'(H(!=:]*08zEJ!3W 6/!#Ei"78«(+Q/!R,h"4{J*',iI/,°Z4"%:+*2"4(*05>6X*'6-EJ!3$2"[@!{J.C!3:+*'!=6 1!_AS@,-!=8+8">?>!#8«*069"f8*'6/?7$'!R8!=8+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:_*'6<EJ*01="4(+!=8_(Q !:+"%(!p"4( Q/*21VQb"91576/6/!#1e(*05>6 5>I/$2EgAC!8H!=:ZS*21!#EgAS@h(+Q/!p6/!( T 5>:+xyN]ŠJIJˆ;1*0!36^( A ">6 E T *2ES(Qb*28:+!=~^I/*0:!#Eh(5;8I 8H(+">*'6(Q/!:+!=~^I/*0:+!=Eg(Q/:+5>I/T ?7Q/./IJ(RLM57:"%6b"%././$0*213"4T (+*'576|N 2s» ¶4¯Jµ#Å<½_¾|5^88:+"%(!REJ!36 5%(!#8(Q/!.C!3:V1!=67(V"%?7!`5%Ly"%$0$^(:V"%6 8,-*v((!=Ei. "71Vx>!(V8|(+Q "4(],h"[@AC!_$0578H(]EJI/:+*'6/?f(+:+">6 8H,-*288*05>6|N ]"71Vx>!3(+8 *06q";1576/6/!#1e(*05>6o,h"[@A8E/!3$2"[@gAC5>I/6 EbZS*05>$2"4(+*'576|l<EJ!=$0"[@ U*v((!=:H&‡A<57I/6 EoZS*05>$2"4(+*'576|l A/I/dC!=:‹54Z7!3:  5 T l["%6 EiE/"4(V"135>:+:I/./(*05>6|"N !f"4(V"135>:+:I .J(*05>6*28‹*'6<8H*0?>6/*'W<1="%6^(‹*06W./(*21`,-!=E/*0"f"%6 Ei13">6XAC!s*0?>6/57:!#Ekl T Q/!3:+!="78 E/"%(+";135>:+:I .J(*05>6b*288*'?76/*vWC13"%6^(*06 T *':+!3$0!=8+8,-!=E/*0" N#!*'dC!=:!=6^("%./. $'*213"%(*05>6 8"%:+!8H!=6 8H*'(*0Z>!p(+5;$0578+8:V"4(!p(+5gEJ*'dC!=:!=6^(!{S(!=6^(+8=N u././$0*01="4(*05>6<8$0*0x>!`. :5J1!#88‹1576^(:+5>$>:+!=~^I/*0:+!`m3!=:5$'5^88:V"4(! T Q/*0$'!R"%./. $'*213"%(*05>6 8$'*0x>!s,XI/$'(*0,-!=EJ*2"f13"%6i8HI 8H(+">*'69"13!3:(+"%*06i">,-5>I/6^( 5>L‹$0578+8U&‡:V"4(!7N 9ÉY»|´ |·)±¸ ¶4» ‹¯ z·YÉ)·MµVË]½ _$05J1Vx^*06/?o./:+5>A<"%A/*0$'*'(U@r*28(+Q/!g. :57A "%A/*0$0*v(U@B5%L"o6/! T 15>6 6/!=1(*05>6ª*28:+! U!=1(!#EPA^@B(Q !">E/,9*28+8H*05>6 135>6^(:+5>$y,-!=1VQ ">6/*28H, 5>Lz"96/!3( T 57:xyN ORQ/!:+!=~^I/*0:+!3,-!36^(+85%L]EJ*vdy!3:+!36^(:+!=">$v&c(*0,-!"%././$0*213"4(+*'576 8 *'(Qo:+!=8.! T 5^Š. ">:+">,9!3(!=:+8R,h"[@;AC!Z>!=:@EJ*'La& LM!=:!=67(#Njn/57:_!3{/"%,-./$0!>l/1!=:H(V"%*06">././$0*01="4(*05>6<8_8I 1VQb">8_6/576J&c*06^(T !=:+"71e(*0Z>!(!=$'!=Z^*28*'576">6 E">I EJ*05iA :5^">E/1=">8H(*06/?X:+!=~^I/*0:!p8H(:+*'6/?7!36^( AC5>I/6<E/8`576 U*'(H(!=:RA/IJ("%:+!,-5>:+!5>:_$'!#88`*'6<8H!=6 8H*'(*0Z>!(59EJ!3$2"[@>N‹} Q/!3:+!="783lS8!36 85>:_E/"4(V"./:+5J1!=8+8*'6/?*06"  @^&cAS@^& T *':+!"%*0:+13:+"%La(`*28 I 8I ">$'$0@XZ7!3:+@i8!36 8*v(+*'Z7!R(5EJ!=$0"[@7l>*cN !7Nz5>6/$0@iEJ!=$0"[@J8z5>Lk8I/AJ&‡,-*'$0$0*08!=135>6 E/8j:+">6/?>!R*06h:!#1!3*0ZS*'6 ?8H!=6 8H57:j8H*0?>6<"%$28]"%:+!">1313!3.J(V"%A/$0!>N‹†w6 135>6^(:V">8H(=l4(+:+"7EJ*'(*05>6 ">$ 157,9. IJ(!=:`157,9,iI/6/*213"%(*05>6h"%./. $'*213"%(*05>6 8j8I 1VQ;"78zW $0!R(:V"%6 8HLM!3:#l>!=$'!#1e(:+5>6 *01R,h"%*0$cl7"%6<E-:!=,95>(!$05>?7*'6h"%:+! 6/576J&‡:!#"%$'&)(+*',-!"%. ./$'*213"%(*05>6 8=NzORQ/! T 5^Š9,-!3(:+*01=8]LM5>:_8HI<1VQ;"%././$0*213"4(+*'576 8`">:!Z7!3:+@iEJ*'dy!3:+!36^(`LM:+5>, T Q "4( T !E/*08+1I 8+8!=E9LM5>:s:!#"%$'& (+*',-!p"%././$0*213"4(+*'576 8=l^">6 E-(U@S./*213"%$0$0@-"[Z7!3:V"%?7!_.<">1Vx>!3(sEJ!=$0"[@h"%6<E;"[Z>!=:+">?>!R(Q :57I/?>Q/. IJ(_">:!135>6 8*2EJ!3:+!=Ekl^:V"4(Q !3:j(+Q "%6 T 57:+8H(H&w13"78H! . "71Vx>!3(_EJ!=$0"[@h57: 5>:V8U(&‡1=">8!R(Q/:+5>I ?>Q/./I/(=NjORQ/!#8H!p"%./. $'*213"%(*05>6 8sQ "[Z>!f"%$28H598U(+:*21e(R:+!3$0*0">A/*'$0*'(U@9:+!=~^I/*0:+!3,-!36^(+8_8*'6 13!f">6S@;15>:+:+I/.J& (+*'576i5>L<. ">:H(V8z5%LC"fT EJ5J1I ,9!=6^(`13"%69,h"%x7!`(+Q/!R!36^(*0:!EJ5J13I/,-!36^(]I/6SI 8">A/$0!>N‹†w6 EJ!3!#EX,iI 1VQ95%L (+Q/!157,-./$'!3{J*v(U@5>L (Q !R(:V">EJ*'(*05>6 ">$ 6/!3( T 57:x. :5>(5J157$08]">:*28H!#8LM:57,°(Q !6/!3!#EXLM57:]$'5^88H&cLM:!=!_135>,-,XI/6 *01="4(*05>6-AC!( T !3!=69E/"%(+"%&c57:*0!36^(!#E6/576J&‡:!#"%$'&)(+*',-!"%./. $'*213"%(*05>6 8=N u6/5%(+Q/!3:6 5%(+">A/$0!;!{/"%,-./$0!h5%L"o8.8!-5%LZS*0EJ!=5b(:V"%6 8,-*08+8*'576 83N *2EJ!35q(:V"%6 8H& ,-*288*'576 8p"%:+!iZ7!3:+@q8H!=6 8*v(+*'Z7!i(+5b. ">1Vx7!(p$'5^88!=8f8H*06 13!i(+Q/!=8!h8HQ 5 T I/.P">S8  *21Vx>!=:+8f5>:p?7$'*'(+1VQ/!#8f5>6B(Q/!;EJ*28./$0"[@q8+1:+!3!=6|N ]57*013! E/"%(+"i. ">1Vx7!(R8H*0m3!#8_">:!(Q/!=:!3LM5>:+!EJ!=$'*0AC!3:V"4(!=$'@hx7!3.J(8,-">$'$C(+5i,-*06/*',-*0m3!f(Q !. "71Vx>!3(*0m="4(+*'576gEJ!=$0"[@J8_"%6 E;(59$'*0,-*v(R(Q !!3dC!#1e(5%L . "71Vx>!3($'5^88!=8=NORQ/!98U(V"%6 E "%:VE $ , &‡AS@^(!X13!3$0$‹8*'m=!LM57:u] O 56 !( T 5>:+x;LM5>:f!{/">,9. $'! T ">81VQ/578!36o. :*0,h"%:+*'$0@gLM57:(+Q/!XAC!36 !W/(p5%L (+Q/!Z>57*013!p">././$0*01="4(+*'576 83N 





















 

























$

Version 2 CSE, IIT Kharagpur



 A M A    E A E 

‡† (g*28;*0,-.<57:H(V"%6^(h(5G13"4(+!3?75>:+*'m=!b"D(+:+"%ˆ;1o8H57I/:+13!oA ">8!=E‰576‰*'(+8;(:V"4ˆ;1b?>!=6/!3:V"4(+*'576 1VQ "%:V">1(!3:+*28U(+*01=83N ŠJI 1VQ 13"4(+!3?75>:+*'m#"4(*05>6 AC!=135>,-!=8_6/!#1!=8+8+"%:+@-LM5>:_(Q/!p6/!3( 57:x9(+59AC!" ">:!5%L(Q/!13"%(!=?>5>:+*0!=8s5%L«(+Q/!f(:V"4ˆ;1LM:57,€EJ*'dC!=:!=67(85>I/:V1!#8jLM57:R*v(R(5-AC!"%A/$0! (+5?>*0Z>!~^I ">$'*'(U@95%L|8H!=:ZS*21!?7I "%:V"%T 6^(+!3!=8=N«ORQ/!(T :V"4ˆ;1?7!36/!=:+"%(!=E9AS@-"8H57I/:V1!1="%6hAC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@X(+*',-!7NzORQ !¯/´7´>Å X¯J¶ ‹·Yµ3¶4¯Jµ=·)»<± .C5>$0*013@Í5%LX"K6 !( T 5>:+xGEJ!3(!3:+,-*'6 !=8 T Q/!36À"F6/5JEJ!B1="%6 (+:+">6 8,9*'(g576 (Q/!P1VQ ">6/6/!3$cN ORQ/!Bµ3¶4¯/± =¼F· =·)»<±´>»C±yµ3¶4»<ÉX.<57$'*21@ EJ!3(!=:,-*06/!=8sQ/5 $05>6/?(+Q/!f6/5JEJ!1="%6h(+:+">6 8H,-*'(=N]ORQ/!#8H!( 5i.<57$'*21*0!=8_"%:+!(57?>!3(Q/!=:_1="%$0$'!#E;¯/´>´7Å i´>»C±yµ3¶4»<É`µ=ÅS´[ȱ‹· k²‹Å ">6 E LM57:, (Q/!f®°ÅSÆT ·)¯¹´>´>Å XÇi»<±yµ=¶[»C É #U®°¹;Ç &R$2"[@>!=:]./:+5%T (5J135>$cN«†w6h5%(+Q/!3: T 57:+E/8=l%(+Q/!,-!=E/*0""71313!=8+8]15>6^(+:57$«Á 5quÌRÄ]./:5>(5J157$ *06o"h¾«u¿ 15>6<8H*28U(V8R5%L‹( T 5h. :5J1!#88!=8=­]"%6o">1=1!#88">:A/*'(:V"4(+*'576. :5J1!#88_(+Q "4(E/!(!=:,-*06/!=8 T Q/!36o"-6/5JEJ!1="%6bI 8!p(Q/!X1VQ<"%6/6/!=$ ">6 Eb"X(+:+">6 8,9*28+8H*05>6b15767(+:57$k./:+5S13!=8+8_(Q "%(EJ!(+!3:+,-*'6/!#8RLM5>:Q 5 T $05>6/?h"96/5JEJ!X1="%6b15767(+*'6SI/!p(+5hI 8!(+Q/!X1VQ ">6/6/!=$)N _!LM57:! T ! EJ*28+1I 8+8`Q 5 T :+!=">$v&c(*0,-!157,-,XI/6/*213"%(*05>6g1="%6;AC!"71VQ/*0!3Z>!#E-*'6"X¾«u¿l T !EJ*2813I 8+8`85>,-!A "78H*21"78H.C!=1(+8_"%AC5>IJ(R¾«u¿8s(Q "%(_"%:+! 13:I 13*0">$y(5-I/6 E/!3:V8U(V"%6 EJ*06/?-5>I :8HI/A<8H!#~7I !36^(EJ*08+1I<88*'576 8=N 























 

 

 



















 

  



 





 







  MSEF

M @B

ORQ/!=:!"%:+!( T 5X,-" U5>:_¾«u¿…"%:V1VQ/*'(!#1e(I :!#8z(Q "%(_">:!6 5>:+,-">$'$0@9I 8H!#EkN]ORQ/!=8!">:!(+Q/!fA/I 8_"%6 E9(+Q/!:+*06/?X"%:V1VQ/*'(!#1e(I :!#8B8 Î : l . < N ORQ/!#8H!( T 5i"%:V1VQ/*v(+!=1(I/:+!=8`I 8H!fEJ*'dC!=:!=67(">1=1!#88s15>6^(+:57$/(!#1VQ/6/*2~^I/!=8=Nz}B!W :+8H(sA :*0! @hEJ*28+1I 8+8j(+Q/!=8!( T 5i¾u¿ "%:V1VQ/*v(+!=1(I/:+!=8=l ">6 E8I/A 8!=~^I/!=6^($0@ T !pE/*08+1I 8+8_(Q !">8+8H5J1*2"4(+!=E">1313!=8+815767(+:57$C(!=1VQ 6/*0~^I/!#83N 9² z¯ #ÅSƹg¶4´#ȋ·Mµ#ÅS´%µ=²¶4Å >½]†w6A/I<8U&‡A ">8!=Ep">:+1VQ/*'(!#1e(+I/:!#83l3(Q/!`6/5JEJ!=8"%:+!z135>6/6 !=1e(+!=Ef(+5R(Q/!s6/!( 5>:+x13">A/$0!]I 8H*06/?O_&w8Q "%.C!=E 6/!3( T 57:xb*06^(!3:LY">13!i135>6/6/!#1e(+5>:V8"78f8Q/5 T 6q*06Bn‹*0? NiÃ/NO«!=:,-*06 "4(+*'6 ?.C5>*06^(+8p"%:+!X./$2">13!=EB"4(p!=">1VQBT !36 Er5%Lj(+Q/!-6/!( T 5>:+xb13"%A $'!7N 

    



(

Version 2 CSE, IIT Kharagpur

‹n *'?7I/:+!Ã/­ju _I 8u:V1VQ/*'(!=1(I/:+! ORQ/!=:!i*08p"8H*06/?>$0!i8Q ">:!#Eq1VQ "%6 6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05>?7@ Q *01VQg1="%6;Q<"[Z>!(+Q/!"7EJZ4"%6^(+">?>!5>L«AC5%(QgA/I 8R"%6 E;:*06/?i">:+1VQ *v(+!=1e(+I/:+!>NzORQ/*08s$0!=Eh(+5(+Q/!fE/!3Z>!=$'57./,-!36^( 5>Lj(Q/!i(57x>!=6qA/I 8p"%:V1VQ/*'(T !#1e(I :!7Npu (57x>!=6qA/I 8p"%:V1VQ/*'(!#1e(I :!i*08f"gA I 8fA ">8!=Eq">:+1VQ *v(+!=1e(+I/:+!>l T Q/!3:+!X(+Q/!-8U(V"4(*05>6<8576q(Q !iA/I<8 ">:!9$'57?>*213">$'$0@q"%:+:+">6/?>!#Eb*'6ª":*06/? T *'(QD!=">1VQD8U(V"4(+*'576BxS6/5 T *06/?(Q/!h">E EJ:!#88f5>L`(Q !;8U(V"4(*05>6r(5b*'(+8„%$0!La(V„b"%6 ED„%:+*'?7Q^(+„rÁ)8H!=! n‹*0? N $^ÄN } Q/!=6Í(Q/!B$'57?>*213">$:*06/?K*28;*06/*'(*2"%$0*'m=!=EklR(+Q/!rQ *'?7Q/!=8H(g6SI/,XAC!3:+!=E 8H(+"%(*05>6 ?7!(+8"K1VQ ">6 1!b(+5K*'6 *v(+*0"%(!r*'(+8;(:V"%6 8,-*08+8*'576|N uLa(!3:135>,-./$0!(+*'6/?9(+:+">6 8H,-*288*05>6hLM57:R"9./:+!=E/!(!=:,-*06/!=E;(*0,-!>lJ(+Q/!8U(V"4(*05>6. ">8+8!=8s(Q/!fLM:V"%,-!f(:V"%6 8,-*08+8*'576;.6;(+5-*v(V8 *0,-,9!#EJ*2"4(!ÁM$0!La(57::+*'?7Q7("78.C!3:(+Q/!X135>6SZ>!=67(+*'576o">EJ57.J(!#E ÄR6/!=*'?7Q^AC5>:AS@b8H!=6 EJ*06/?g"h8.6^(+:57$yLM:+">,9!i13"%$0$0!=Eb"-(57x>!=6|N 







  







=

Version 2 CSE, IIT Kharagpur

Legend: MSAU: Multistation Access Unit

MS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?;(+Q "4(p,h"%6S@o8U(V"4(+*'576 8576o(Q/!96/!3( T 57:x,h"[@6 5%(AC!96/5%(p*'6q(Q/!9:*06/?DÁaLM5>:f!>N ? Np8H(+"4(+*'576 8 Î7Î l Î (h*'6r(Q/!-n‹*'?$k"%$2859. :54ZS*2EJ!=8sLM5>:"7E/EJ*06/?h8U(V"4(+*'576 8_(5, (+Q/!$'57?>*213">$C:+*06/? N

Logical Ring

Node not in the ring

n‹*0?>I/:+! $ ­]¾|57?>*213"%$k*06/?h*06o"9O5>x7!36 _I 8 

X— ™[¥˜š›•”+œCž3‘ • Ÿ—i‘ ‘ ¡o£ož¤f¥]ž—9£¦ž3£  G§ ŠS5>La(:+!=">$v&c(*0,-!X157,9,iI/6/*213"%(*05>6r1="%6oAC!iI 8!=Eo(5g8I/./.C5>:(f85%La(f:!#"%$'&)(+*',-!X">././$0*01="4(*05>6<8*06B";¾u¿ 8 ,;< NfŠJ5%La(p:!#"%$'&)(+*',-!X135>,9& ,iI/6/*213"4(+*'576h6/!( T 5>:+xJ8]"%:+!6/5%(s!{J.6^@9"%A 85>$0IJ(+! T 5^Š9?>I<"%:V"%6^(!=!=8‹(5(Q/!">././$0*01="4(+*'576 83NzORQ/!=@i576/$'@9!36<8HI/:+! ./:+*05>:+*v(+*'m=!=Eh(+:!#"4(+,9!=6^(LM5>:R:!#"%$'&)(+*',-!p,-!=8+8">?>!#8_85i(Q "%((Q/!,-!=8+8+"%?>!fEJ!="7EJ$0*'6/!,-*288R:V"4(+*'5bÁaLM57::!#"%$'&)(+*',-!p,-!=8+8">?>!#8+Äs13">6AC! x7!3.J(R(5;"9,-*06/*',iI/,">6 E(Q/!:+!=">$v&c(*0,-!p,9!#88+"%?7!=8R13">6AC!./:+54ZS*0EJ!#Eg8H(+"%(*28U(+*01="%$k?>I<"%:V"%6^(!=!=8_5>6bEJ!3$2"[@;AC5>I/6<E/83N 





:

Version 2 CSE, IIT Kharagpur

ŠS5>La(j:!#"%$'&)(+*',-!R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(+Q/!X,-!=8+8+"%?>!EJ!#">EJ$0*06/! ,-*288:V"4(+*'5^8ÁaLM57::!#"%$'&)(+*',-!p,-!=8+8">?>!=8VÄ_13">T 6AC!x>!=.J( T !3$0$|I/6 EJ!=:(Q !,9*0$0$'*«8!=135>6 E 8:+">6/?>!LM5>:"%6S@g"%:+A/*'(:V"%:+@;"%:+:*0Z4"%$y:V"4(!pLM57: (+Q/!6/576J&c:+!=">$y(*0,-!,-!=8+8">?>!=8=N`ORQ/*28(+!=1VQ/6 *0~^I/!(+Q/5>I ?>Qb!ˆ;1*0!36^(LY">*'$28R(+5;./:+54Z^*2EJ!EJ!3(!3:+,-*'6 *08H(*21:+!="%$'&c(*0,9!135>,-,XI 6/*01="4(+*'576|N ¬!36 13!*v(*288HI *v(V"%A/$0!5>6/$0@hLM57:8H5>La(:!#"%$'&)(+*',-!p8H@J8H(!3,h8">6 Eb13"%66/5>(8HI/. .<57:H(Q ">:+E:!#"%$'&)(+*',-!157,-,XI/6/*213"%(*05>6|N   ¨š›•”+œCž3‘ • Ÿ—i‘ ‘ ¡o£ož¤f¥]ž—9£ ž3£  G§ }D!;Q "7EªEJ*08+1I<88!=EP8!3Z>!=:+">$]!{/"%,-./$0!;"%. ./$'*213"%(*05>6 8*'6FŠS!#1e(+*'576 = N Î l|LM57: T Q/*21VQPQ "%:VED:!#"%$'&)(+*',-!;135>,-,XI/6 *01="4(*05>6P*06K"q¾«u¿ !=6^ZS*0:576/,-!36^(i*28i6/!=13!=8+8">:@7ND¬"%:VEª:!#"%$'&)(+*',-!"%././$0*213"4(+*'576 8i5%La(!=6F*06SZ>5>$0Z>!;(:V"%6 8,-*08+8H*05>6F5%LpÌ R(+:+"%ˆh18I 1VQF">8i.C!3:+*'5JEJ*21 8!36 85>:8*0?>6 ">$08=N†w6ªQ<"%:VEB:+!=">$v&c(*0,-!;"%./. $'*213"%(*05>6 8=lEJ!3(!=:,-*06/*08H(*21h./:+!=E/*01(+"%A *'$0*v(U@D5%L6/!3( 57:xBEJ!3$2"[@q(V"%x>!#8./:+!=13!=EJ!=6 1!h54Z7!3: 6/!3( T 57:x-IJ(+*'$0*0m="4(+*'576"78H.C!=1(+8=Nz¬5 T !=Z>!=:=l>(59*',-./:+54Z>!(Q/!f6/!( T 5>:+x-IJ(*0$0*'m#"4(*05>6«lJ5%La(!=685%LaT ("%6 Eg6/5>6/&c:+!=">$v&c(*0,-!(:V"%6<8H,-*288*'576 8 ">:!"%$0$05 T !#Eh(5-AC!p(:V"%6 8,-*v((!#E*06(Q/5^8H!p*06^(!3:+Z4"%$28EJI/:+*'6 ? T Q *01VQbQ ">:+Eg:!#"%$'&)(+*',-!p,-!=8+8">?>!=8R">:!p6/5>(R. :!#8H!=67(#N †w6g"i¾«u¿lSQ "%:VE-:+!="%$'&c(*0,9!f157,9,iI/6/*213"%(*05>6 8s"%:+!6/5>:+,h"%$0$'@-8I/./.C5>:(!=E;I 8H*06/?9"%6S@-5%Lk(Q !LM57$'$05 *'6 ?(Q/:+!3!f1$2">8+8H!#8j5>L|./:5>& (+5S135>$2 8 8 Î l Î>Î < ­]?>$05>A<"%$y./:+*'57:*'(U@^&cA "78H!#EklJ13">$'!=6 EJ!3:&‡A ">8!=EklS"%6<EAC5>I 6 EJ!=EJ&‡"7131!#88_./:+5%(+5J15>$28=N}D!pW :V8U(T EJ*2813I 8+88H57,9!p*0,-.<57:H(V"%6^( LM!#"4(I :!#8R5%L‹(Q/!#8H!f(Q :!=!1$2">8+8H!#8s5>L‹Q<"%:VEg:+!=">$v&c(*0,-!p135>,-,XI 6/*01="4(+*'576./:+5%(+5J15>$28=NzŠSI A 8H!#~^I/!36^($0@>l T !EJ*2813I 8+88H57,9!p*0,-.<57:H(V"%6^( ./:+5%(+5J15>$28_A*06/?9(5-(+Q/!=8!f(Q/:+!3!13$0"788!=8=N  É)» z¯/É p¶[·)» ¶4·Yµ+ Ë p¶4» µ#»|´>»CÉ 7½†w6ª"?>$05>A ">$‹. :*05>:+*v(U@o. :5>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,-!XLM57: T Q/*21VQr"h. "71Vx>!3(,h"[@ Q "[Z7!-(5 T "%*'(XAC!LM57:!;*'(i*28(+:+">6 8,9*'(H(+!=Eª*28AC5>I 6 EJ!=E|Nru $05S1="%$_81VQ/!#EJI/$0*'6 ?r"%$0?>57:*'(Q/, *08XI 8!=ED(5DEJ!(+!3:+,-*'6/!;(Q/!5>:VEJ!3:*06 T Q/*21VQb. ">1Vx7!(V8_">:!(+">x>!=6I/.bAS@"96/5JEJ!pLM57:R(:V"%6 8,-*08+8*'576rN 





























 





 



.

Version 2 CSE, IIT Kharagpur

Çi¯/É)Å^±‹Æ‹¯J¶ z¯ =ÅSÆ ´[ÈÅSƋ²É)·Y±‹¸«½r†w6‰"D13">$'!=6 E/"%:&‡A ">8!=Eª. :5>(5J157$)lj!=Z>!=:@P6/5JEJ!b,h"%*06^(+"%*06 8-"P157.^@P5>L(Q !b1="%$0!36 E "%:9(Q "%( *06 EJ*213"%(!=8 T Q/*21VQ;6/5JEJ!*08s.6 8H,-*'(_EJI :*06/? T Q *01VQh(+*',-!f.I :+13!=8`1="%6;:+!=8!3:+Z>!R(+*',-!f*'6^(+!3:+Z[">$ LM57: . "71Vx>!3(`(:V"%6<8H,-*288*'576;AS@hA/:+57">E 13">8H(*06/?!LM5>: T Q/*21VQg6/59:+!=8!3:+Z["%(*05>6 T ">8s,h">EJ!7l *'(sW<6 E/8"LM:+!3!p8$'5>(_AS@;1576 8I/$v(+*'6 ?(Q !p1="%$0!36 E "%:s">6 E;:+!=8!3:+Z>!#8](+Q/!:+!=~^I/*0:+!=Eh(+*',-!f*'6^(+!3:+Z[">$yA^@-A/:+57"7E/13"78U(+*'6 ?(Q/!p:+!=8!3:+Z4"4(*05>6 *06JLM5>:+,h"4(+*'576-(5X">$'$C6/5JEJ!=8=NzuÀ13">$'!=6 E/">:H&‡A ">8!=E9./:+5%(+5J15>$ *08_8H*0,-./$0!>l^!ˆ;1*0!36^(=lJ">6 E T 57:xJ8]Z7!3:+@ T !3$0$ T Q !36g">$'$<,9!#88+"%?7!=8]*06h(+Q/! 8@J8U(+!3,€">:!p.C!3:+*'5JEJ*21p"%6 E./:+!=EJ*21e(V"%A/$0!>N †w6(Q/!pLM57$'$05 T *06/? l T !EJ*08+1I<8885>,-!p*',-.C5>:(+">67(. :5>(5J157$08sLM:+5>, !#">1VQ5%L«(+Q/!=8!p(Q :!=!p1="4(+!3?>57:*0!=8_5>L./:+5%(+5S135>$283N   





 C SADC  E   EF4AD

H M4

4@SC E



u…LM! T *0,-.<57:H(V"%6^(?>$05>A ">$k./:*05>:+*'(U@;"%:+A/*v(+:+"%(*05>6A ">8!=E./:+5%(5J135>$28_">:!f(+Q/!pLM5>$0$'5 T *06/?
Transmission Interval

‹n *0?>I/:+! (J­ j:+*'57:*'(U@;u:+A/*'(:V"4(+*'576">6 EO:V"%6 8,-*08+8H*05>6†w6^(!3:+Z4"%$28 Çi»C²±yµ#Æ» !h± p¶4» µ#»|´>»CÉU½_†w6g(+Q/*28R./:5>(5J157$)l^(+Q/!f(*0,9!p$0*'6 !f*28EJ*0ZS*0EJ!#Eg*06^(5iW/{J!=E*'6^(+!3:+Z[">$08=N]u_(R(Q/!8H(+"%:(R5%L!=Z>!=:@h*06^(!3:+Z4"%$cl ./:+*05>:+*v(U@P"%:+A/*'(:V"4(*05>6F*08-13">::+*0!=EP5>I/(i(+5BEJ!3(!3:+,-*'6 !g(+Q/!Q *'?7Q/!=8H(9. :*05>:+*v(U@P,-!=8+8+"%?>!g*'6F(Q/!6/!( T 5>:+xyNDu8-8H5S5>6G">8i./:*05>:+*'(U@ ">:A/*'(:V"4(+*'576r*28157,-./$'!3(!7lk(Q/!h6 5SE/!hQ "[ZS*'6/?(Q !hQ/*'?7Q/!=8H(./:+*'57:*'(U@o,-!=8+8">?>!9*08">$'$05 T !=Er(5(:V"%6 8,-*v(#Nh†w6B5>(Q/!=: T 57:+E 83lk(+Q/*28 8+1VQ/!3,-!p*06^Z75>$0Z>!#8s.C!3:+*05SE/*01f./:+*'57:*'(U@g">:A/*'(:V"4(+*'576;LM57$'$05 T !#E;AS@g,-!#88+"%?7!(+:+">6 8H,-*288*05>6"788HQ 5 T 6*06on*0? N (/N 

msb

lsb

N1 10

0

1

0

1

0

N2 16

1

0

0

0

0

N3 20

1

0

1

0

0

Priority bits

‹n *'?7I/:+! = ­ j:+*'57:*'(U@;u:+A/*'(:V"4(*05>6b‚]{/">,9. $'! `:*05>:+*v(U@o">:A/*'(:V"4(+*'576o(*0,-!h*08E/*'ZS*2EJ!=EB*'6^(+5W {S!#EB8*0m3!=ED8$'5>(+8=N9ORQ/!hEJI :+"%(*05>6r5>Ls!#">1VQP8H$05%(EJI/:V"4(+*'576B*28f(U@S./*01="%$0$'@o,h"7EJ! !#~7I<"%$J(+5!36 EJ&)(+5%&‡!36 E9./:+5>. ">?7"%(*05>6-EJ!3$2"[@X5>L<(+Q/!,-!=EJ*0I/,bN]†‡Ly(Q/!8H$05%(`8*'m=!*28],h">EJ!">6S@i8,-">$'$0!3:z(+Q "%6-(+Q/*283l7(Q/!=6-(Q/!./:*05>:+*'(U@ ">:A/*'(:V"4(+*'576r8+1VQ/!3,-! 57I/$2Eq6/5>( 5>:+xq8H*06 13!9"b157$'$0*28H*05>6q!=Z>!=6 Q/!=6r*'(5J131I :+8 57I/$2Er6/5>(fAC!hEJ!(+!=1(!=E|N9u8$'5>(8*0m3!9$0">:?7!3: (+Q "%6B(Q/*28 T 5>I/$2Eq$0!="7TEq(+5">6B*06 1T :+!="78H!i*'6P1VQ ">6/6/!3$z*2EJ$0!i(+*',-!hEJT I/:+*06/?b!3Z>!=:@o8$'5>(=T Nh\Z>!3:(Q !=8!-8$05%(+8=lk!3Z7!3:+@o6/5JEJ!9(:V"%6 8,-*v(V8 (+Q/!g./:+*05>:+*v(U@DZ4"%$0I/!;5%L*'(+8iQ/*0?>Q/!#8U(i./:*05>:+*'([email protected]!36 E/*'6/?B,-!=8+8">?>! T *'(QK,h8AªW :V8U(-">8X8Q/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(+*'!#8]EJ*'dC!=:jAS@X5>6 !>NzuLa(!=:`¿ Î 8H(+">:H(V8 (+:+">6 8H,-*'(H(+*'6/?:">6^@(+*',-!9$'5 T !3:(Q ">6q(Q !i./:+5>.<"%?7"%(*05>6b(+*',-!>ly(+Q/!36B*v(13">6r6/5>(fEJ!3(!#1e(p(Q/!i(:V"%6<8H,-*288*'576o5%L ¿ Î ">6 E T 5>I/$2Er8H(+">:H((:V"%6 8,-*v((*06/? NiORQ/*08 T 5>I/$2Eq$0!="7Eo(+5135>$0$'*28H*05>6B"%6 Er*'6 135>:+:!#1e(f./:*05>:+*'(U@b">:A *v(+:+"%(*05>6|NORQ/*28fA<57I/6 E/8f(+Q/! EJ*'dy!3:+!36 13!A6 8!=13IJ(*0Z>!p./:+*'57:*'(*0!=8=N 







>





†U‚s‚`‚ , *^ÃJN (*28"9./:+*'57:*'(U@;A "78H!#E;(+5>x>!=6b:*06/?-./:+5%(5J135>$cNjORQ/!Q/!="7EJ!3:5>Lz"9(+5>x7!36b15>6^(V"%*06 8_( T 59W !=$0E 83­`"-. :*05>:+*v(U@-W(5J157$)l^(+5>x>!=6">$v(+!3:+6 "4(+!=8RAC!( T !3!=6g( T 5-,95JEJ!#83­j"9:+!=8!3:+Z4"4(*05>6,-5SE/!>l ">6 E"iLM:+!3!p,-5JEJ!>N Î>Î

Version 2 CSE, IIT Kharagpur

Priority

Packet Payload

P Header Mode bit

n *0?>I :! . ­jŠ^(+:I<1e(I :!5>L‹"-O«57x>!=6*06b†U‚`‚`‚ , *^ÃJN ( †w6o:+!=8!3:+Z4"4(*05>6,-5JEJ!>lC. ">1Vx7!((+:+">6 8H,-*288*05>65S1=1I/:V8=NRORQ !./:+*'57:*'(U@;5%Lz(+Q/!X,-!=8+8+"%?>!f(+Q "4(f*08AC!3*06/?g(:V"%6 8,-*v((!=Eb*28:+!3?7*08H& (+!3:+!=Eq*06q(+Q/!9Q/!="7EJ!3:f5%Lj(+Q/!i(5>x7!36r"788Q/5 T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@>N‹ORQ/*28`6/5JEJ!13"%6gZ>!3:+@X!3ˆ;1*0!36^($0@-Q "%6 E/$'!fEJ!(+!3:+,9*06/*28U(+*01.?>!#83l>">6 E (+Q/!3:+!*286/5g54Z>!3:+Q/!#">E*'6r./:*05>:+*'(U@"%:+A/*'(:V"4(+*'576I 6/$'*0x>!X(Q/!i5%(+Q/!3:fEJ*08+1I<88!=Eb./:+5%(+5J15>$28=NR¬5 T !=Z>!=:=l<*v(fA,-!#8Z>!=:@EJ*'ˆh13I/$'( (+5Q<"%6 EJ$0!h"%.C!3:+*'5JEJ*219,-!=8+8">?>!=8f"%6<ED8.C5>:V">EJ*21X,-!#88+"%?7!=8*'6D(Q *08p./:+5%(+5J15>$cN-ORQ/!3:+!LM57:!i(Q/*28./:+5%(+5J15>$z*28pI 8!=EB5>6/$0@q*06BZ7!3:+@ 8*',-./$0!8@S8H(!=,h83N —i¡o£ o• ¨§t¤¤•–– ]—¥‹—;¤—9” }D!hEJ*08+1I<88f†U‚`‚s‚ , *7Ã/N $"%6 EB‚`O¬‚`">8( T 5.C5>./I/$2"%:p!3{J">,-./$'!#8f5%LsAC5>I 6 EJ!=ED">1=1!#88f./:+5%(+5S135>$283N†w6B(Q !-LM5>$0$'5 T *06/? l T ! EJ*28+1I 8+8_(Q/!#8H!p( T 5-./:+5%(5J135>$283N       ‚sO¬‚s8H(+">6 E/89LM5>:;!="%$'&c(*0,9!o‚sO¬‚`6/!(#NÍ‚`O¬‚s€*28h!=6/Q "%6<1!=8-OÌ +[† "%6 E‰./:+54ZS*0EJ!#89:!#"%$'&)(+*',-!.././$0*01="4(*05>6<8 T *'(Q 5>IJ(,-5JEJ*'LM@^*06/?-!{J*28U(+*'6 ?-‚j(Q/!=:6 !(Q "%:VE T "%:+! 8 1Î , < Nj¿!( T 5>:+x-(:V"%6 8,-*08+8H*05>6<8s1="%6 5J1313I/:*06b( T 5h,-5JEJ!#83­ÌRŠ 5qu +>Ì !°,-5JEJ!57:‚sO¬‚`…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*v(-*089.C578+8H*0A/$0!g(+5 "7131!=.J(R(Q/!:+!=T ~^I/!#8U(#NjuEJ,-*288*05>6b15>6^(+:57$C*28.C!3:LM5>:+,-!=E$'5J13">$'$0@;576!#">1VQ6/5JEJ!>­juEJ,-*v(:+!=">$v&c(*0,-!f:+!=~^I/!#8U(*'L    "! #$% '&( 

} Q/!=:!oO R¿zO*089(+Q/!oA ">6 E T *2ES(QÍ:+!=8!3:+Z>!=EKLM5>:9(Q !q¿zO8!(#N uEJ,-*288*'576 15>6^(+:57$_*28-6/5>(-.C!3:LM5>:+,-!=EGI/6^(*0$(Q !o6/5JEJ! :+!=13!3*0Z>!=8j(Q/!f(+5>x>!=6|N‹} Q/!36b":+!=">$v&c(*0,-!6/5JEJ! T ">6^(+8`(5(+!3:+,-*'6 "%(!f*v(V8_:!#"%$'&)(+*',-!135>6/6 !=1e(+*'576|lS*v(R,-!3:+!3$0@-:!=,954Z7!=8`*v(V8H!=$vL|LM:+5>, (+Q/!zOŠg*06JLM57:,h"4(+*'576576g(+Q/!p(57x>!=6|N  >  4j  

‹n *'?7I/:! Î7Î ­]O«57x>!=6*06/?-*06†U‚s‚`‚ , *^ÃJN $ "$†UR‚s‚`% ‚ Nz†w, 6i*7(+ÃJQ/N $;*28]././:+:+5%5%(+(5J5J1135>5>$‹$cl4*28f(Q/">!./">./,-$0*01=5>"%I/A/6^$0(j!i5%(L<5((*0,-5>x7!!36q!="7:+1V*0Qi6/?g6/5J6/EJ!3!( T Q 575>:$2E/xJ8]8=N"OR(5>Q/x7*08f!36-./*2:+8z5%(+A<5J571I/5>6 $‹EJ*2!#8Ek5>NzLa(†‡!=(j6rQ ">:+!8zLMAC!3:+!3:+!=!=6hEb*'6 (+5135>"7:+8.<57(+Q/:+"%! (!#CE

*06-O8n 3!  0/!1†e N †w6B†U‚`‚`‚ , *^ÃJN $ lkOOzOÁYO‹"%:+?>!3(pO5>x7!36B5%(+"%(*05>6DOR*',-!#Ä*28pI 8!=ED">8pEJ!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E/8(+5g(+:+">6 8H,-*'( Î Ã $ 5>LzE "4(+"9!=Z>!3:+@ (/*/*%>7NjŠS!3$0!=1("98I/*'(+">A/$'!OOzOÀLM5>:(+Q/!6/!3( T 57:x;">6 Eb15>,-./I/(!p(Q !p(5>x7!36bQ/57$0EJ*06/?9(*0,-!LM5>:!#">1VQ 6/5J EJ!7N »<É)²«µ#·Y»C±`½sn/:+5>, "%6!à {/*0"%* ,-*06 "4(+*'576;5%L(Q/!f,-!=8+8">?>!#83l7(Q/!p8Q/5>:(!#8U(EJ!="7EJ$0*'6/!p"%,-576/?i">$'$y,-!=8+8">?>!#8j*28R/à */*/>7NzORQ/!3:+!LM57:!7l T ! 1="%6b8H!=$'!#1e())A à  Î *0*%>>N]ORQ/!1VQ ">6/6/!=$kIJ(*0$'*0m="%(*05>6oEJI/!p(+59(Q/!EJ*'dy!3:+!36^(6/5JEJ!=8 T 5>I $0EAC!>­    Î V */* , 5oA +4,-8 à  , 5oA +4,-8    Î  ( *0*    à  , 5oA +4,-8   Ã/*/* à  ,  à  ,  V :0:  = 5oNA +[,h8             Î V */* ,  Î  (/ */* à *0* V */*/* 8*06/?h‚]{J./:#N = , N Î lS(Q/!pV *0(+*/5>* x7!36Q/5>$2EJ*06/?9(*0,9!#85%L(Q/!E/*vdy!3:+!36^(6/5JEJ!#813"%6bAC!EJ!(+!3:+,-*'6/!#E;(+5hA    Î */* (. */ = *  V V :0*0: */* =  Î (  /à (%> * 0 * / * Î 1 = V    Î */* à */*  V :0: =  =/V  ( = >  U





Î(

Version 2 CSE, IIT Kharagpur

 • ]™>— j‘£b¤•Ÿ—9‘ ’bjž–‹—i£ u_(f(Q/!9EJ!=8*0?>6o(+*',-!>l|"EJ!(V"%*0$'!#EoxS6/5 $0!=EJ?7!5%L](+Q/!i,-!#88+"%?7!X8H!3(*28f5%La(!=6qI/6 "[Z4">*'$2"%A/$0!>Nf¬5 !3Z7!3:#l/(Q !9EJ!#8H*0?>6 !3:V85%L`"g:!#"%$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ÅSƋ²É)¯ zÉYÅC½ 6 81VQ !=EJI/$2"%A $'!f8H!3(s:+!LM!3:V8](+5(Q 578!,-!=8+8">?>!#8zLM5>: T Q/*21VQ;EJ!="7EJ$'*06/!#8`5>L«8H57,9!,9!#88+"%?7!=8 T 5>I $0EhAC!,-*288!=E|N }D! 57I/$2E!3{J.6b$05 T !=:R(Q ">6qu °">6 Eb"%././:+57"71VQ *h"78IJ(*0$0*'m#"4(*05>6o*06 13:!#">8!=8 AC!3@75>6 ET u N †w6P$05 A ">6 E *2ES(Qª6/!3( 57:xJ8=l|./:+*'57:*'(U@^&cA<">8!=Eq. :5>(5J157$ 5>:+xJ8pA8"%(Q/*0?>Q/!=:A "%6 E *0ES(+Q 8=l«(+Q/!;AC5>I/6 E/!=E "7131!#88s./:+T 5%(+5S135>$ TT 57:xJ8`A:+,h"%6 13!5%L(Q/!f./:+*'T57:*'(U@^&‡E/:*0Z>!=6h./:T 5>(5J157$<*06/*'(*2"%$0$'@h*0,-./:+54Z>!=8_T ">8`(Q !fA<"%6 E T *2ES(+Qg*28 *06 1:+!="78H!#EklSA/IJ(8H(+"%:(+8`(5-EJ:+5>.5%doA576 Eg"91!=:H(V"%*06g.C5>*067(#NjORQ/*28s*28R"%?^"%*06 8U(_(Q !*06^(I/*'(*05>6(Q "%(.L"i./:5>(5J157$ 8Q/5>I $0E*',-./:+54Z>!"78`(+Q/!A ">6 E T *2ES(Qo*28R*'6<1:+!=">8!=E|N























 

 

Î1=

Version 2 CSE, IIT Kharagpur

low Bandwidth 802.5

GP(U) 802.4

U high Bandwidth 802.4

GP(U)

802.5

U

‹n *0?>I/:+! Î1V ­ 6 Á Ä_Z7!3:V8HI<8 (*0$0*'m#"4(*05>6o"%(¾«5 T ">6 E¬*'?7Q _">6 E T *2ES(Q<8 } Q/!=6ª(Q !gA ">6 E *2ES(QG*08X*'6 13:!#">8!=EPAC!3@75>6 Eª"B1!3:(+">*'6ªZ4">$'I/!7lz(Q/!EJ!=13:!#">8!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@ EJI :*06/?-*v(V8">8+8*'?76/!=E;(*0,9!8$05%(=N †w6"%$0$C1=">8!=8=l7*'(13"%6gAI ">:+">67(+!3!. :57A "%A/*0$0*v(U@-:+!3,h"%*06 8_1$0578!(5 Î "78`$05>6 ?i">8s(+Q/!I/(*0$'*0m="%(*05>6g*28_$'!#88`(Q<"%6 u XN/ORQ/!3:+!f*08R"98HQ ">:.EJ:57.g*06g(+Q/!f?>I ">:+">67(+!3!./:57A "%A *'$0*v(U@h"%(_IJ(+*'$0*0m="4(+*'576Z4">$'I/!#8R1$0578!(5-u XN/ORQ/*08E/!3,-5>6 8H(:V"4(+!=8`(Q "%( u *28s":+5>A I 8U(_,-!=">8I/:+!5%L«"[Z7!3:V"%?7!.L|:!#"%$'&)(+*',-!6/!3( 57:xJ8=N‹¿5 l !1="%6;8I/,-,h"%:+*'m=!5>I :`5>A<8H!=:Z4"4(+*'576 8`"78 LM57$'$05 T 83N]u_($05 T (:V"%6<8H,-*288*'5768.:+*v(U@h*06SZ>!=:+8*'576 8_13"%I<8H!#T EgAS@h(+Q/!p:T57I/6 T ES&‡:57A/*068+1VQ/!=EJI $'*06/?h"%./. :5^">1VQh(+!36 E/8_(+5 "7EJZ>!=:+8!3$0@*0,-. ">1(f,-!#88+"%?7!=8 *'(QP8Q/5>:(fEJ!#">EJ$0*06/!=8=NORQSI 83lk"%(f$05 A "%6<E *0EJ(Q 8f./:+*'57:*'(U@^&‡E/:*0Z>!=6o./:5>(5J157$*28Ax7!36./:+5%(5J13T 5>$CLM5>::+!=">$v&c(*0,-!p">././$0*01="4(+*'576 83N T T 







   

 

802.5 802.4

ABU Bandwidth

n‹*'?7I/:! Î $ ­]uA 85>$0IJ(+! s:+!=">xJEJ5 T 6 (*0$'*0m="%(*05>6 ]!3:V8HI 8 _">6 E T *2ES(Q 







Î;:

Version 2 CSE, IIT Kharagpur

š •”+œCž3‘ • Ÿ—i‘ ‘ ¡o£ož¤f¥]ž—9£i• |£9¥‹• j£b•R¥ › n :57,"D,95JEJ!#8U(hAC!3?7*'6/6 *'6/?K"D$0*v(($0!o54Z>!=:9"PEJ!#13">E/!b">?>58-AC!=135>,-!o"BZ4"78U(h:+!3.C578*v(+5>:+@ª5%L*06JLM57:,h"4(+*'576|ls">6 E !=6 "%A/$0!3:`5%Lk8H!=Z>!3:V"%$J6 ! T "%./. $'*213"%(*05>6 8]8I 1VQh">8]!3&‡135>,-,-!3:V1!7N«†w6^(!=:6/!3(`./:+54ZS*0EJ!#8 b'&' 5"' 8!3:+ZS*013!R(5"%. ./$'*213"%(*05>6 8=l>,-!#"%6/*06/? (+Q "4(p(:V"4ˆ;1i*08f./:+5J1!#88!=EB">8f~7I *01VxS$0@q">8f.<5^88*0A/$'!9A/IJ(p(+Q/!3:+!-*08f6/5?>I ">:+">6^(!3!i5%Lj(+*',-!=$'*06/!=8+8p5>:"71e(I<"%$]EJ!3$0*0Z>!3:+@>N} *'(QD(+Q/! *06 1:+!="78H*06/?D15>,-,-!3:V1*2"%$_I 8+"%?7!g5%L†w67(+!3:+6/!(#l](Q !3:+!*28-"q6/!=!=EF(5P8HI/. .<57:H(h8H5>La(-">6 EªW<:, :+!=">$v&c(*0,-!"%. ./$'*213"%(*05>6 8=NP†w6F(+Q/*28 8!=1(*05>6|l T !W<:+8H(_. :54ZS*2EJ!f85>,-!fA ">8*21135>6 13!3.J(V8_">A<57IJ(†w6^(!3:+6/!3(=N`ŠSI/A<8H!#~7I !36^($0@>l T !:+!3ZS*0! T (+Q/!p:!#1!=67(_(:+!36<E/8R*'6g(Q/*28"%:+!=" N 

A EM 



HJ

 LBE MN

 B

C

ORQ/!A<">8*01f†w6^(!=:6/!3(8H!=:ZS*21!p,-5SE/!3$kQ "7881VQ/!=,h"4(*213">$'$0@;AC!3!=6b8Q/5 T 6*'6on‹*0? N Î (/N physical link Host (Sender)

Host (Receiver)

Edge router

Edge router

n *0?>I :! Î (/­]u°ŠS*',-./$0! 5o5JEJ!=$k5%L‹(Q/!†w6^(!=:6 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85>I :+13!=8=N-O5q"[Z>57*0E ZS*05>$2"4(*06/?(Q !h?>I ">:+">67(+!3!#8,h">E/!i(+5o:!#"%$'&)(+*',-!-1576/6/!=1(*05>6 8=l|(+Q/!h6/!3( T 57:xo,iI 8U(!=*v(+Q/!3:!3{J./$'*21*'($0@B135>6^(:+5>$‹(+Q/!h*'6 ./IJ(:V"4(!#8 576‰"D.C!3:&‡135>6/6/!#1e(+*'576GA "78H*28-*cN !7N8HQ ">./*06/?ª"%6 EG.<57$'*21*06/?P5%Lf(Q !qE/"4(V"/l_5>:h">EJ57.J(g8+1VQ/!=EJI $'*06/?ª"%$0?>57:*'(Q/,h8i(Q<"4( T *0$'$EJ5K85 core router



















Î1,

Version 2 CSE, IIT Kharagpur

">IJ(57,-"%(*213">$'$0@h*'6(+Q/!6/5JEJ!=8XÁM!>N ? N0l/n ">*': T I !3I/*06/? lJ}D!3*0?>Q^(+!=Ebn ">*': T I/!=I/*06/? lJ!3(+1%N ÄeN ORQ/!#8H!(!=1VQ 6/*0~^I/!#8">:!"h.<"%:(5%L]*067(+!3?7:+"%(!=Eb85%La( "%:+!"%:V1VQ/*'(!=1(I/:+!=8R$0*0x>!†w6^(VŠJ!3:+ZCl !*vd|ŠS!3:+Z!(+1>N'l Q/*21VQoQ "[Z>!XA!=!3./*06/?f*'69,-*'6 EiZ4"%:+*'57I 8*08+8HI !=8‹.$v&c(*0,-!_135>,-,XI 6/*01="4(+*'576|N«}D!EJ*08+1I<88(Q !=8!_*28+8HT I/!#8«*06i(Q/!_LM5>$0$05 T *'6/?

 A M 4  A ADM 

 E A E 

O:+"%ˆ;11VQ ">:+"71e(+!3:+*'m#"4(*05>6h*28"i,95JEJ!=$k5%L(Q/!E/"%(+"i?>!36 !3:V"4(*05>61VQ "%:V">1(!=:*28U(+*01=8j5>L‹"98H57I/:+13!>Nz¿57:,h"%$0$0@;"X(+:+"%ˆ;1*28R1VQ "%:V">1(!3:& *0m3!#ErAS@qAC5>I/6<EJ*'6 ?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!=E  L#%`\3l`*'LE|Á sÄ  ,-*06 E|ÁY*)l Äel_E|Á l x/ÄelfN'N0N0l`E|ÁM$cl ,hÄ 7N‰u6F!3{/"%,-./$0!5>L"B135>6 1="[Z>! 135>6 8H(:V"%*06^(z*28jA<"%6 E T *2ES(+Q|N _">6 E T *2ES(Q-576-"p.<"4(Qh*28]!#~7I<"%$J(+5p(Q/!,-*06/*0,XI/,A "%6<E T *0EJ(Qh5%Lk"p$0*'6/x95>69(+Q "4(`.<"4(Q«N}P"%6/?">6 E Ìs:+5 13:5>La(j./:+54Z>!=E9(+Q "4(_(Q !./:+5>A/$0!3,5>LkW 6 EJ*06/?9. "4(+Qg8HI A U!=1(`(5X( 5i5>:s,957:!f">E/E/*v(+*'Z7!"%6<E +[57:j,XI/$'(*0./$0*01="4(+*'Z7!1576 8H(:V"%*067(V8 *06i">6^T @p.C578+8H*0A/$0!s135>,XA *'6 "%(*05>6*28‹¿ ]&w157,-./$'!3(! 8 à Π< Nz¬5 T !3Z7!3:#l3(+Q/!_./T :5S5>L/5%L ¿ j&UÌs57,-./$'!3(!=6/!=8+8«*28A ">8!=EX5>6(+Q/!_"788I/,-.J(+*'576 8 Ã* >

















































Version 2 CSE, IIT Kharagpur

(+Q "4(#­ Î ÄR"%$0$y(Q !15>6<8H*2EJ!3:+!=E1576 8H(:V"%*067(V8R"%:+!f*06 EJ!=.6 EÃ7Äs(Q/!E/!3$2"[@g"%6 E U*'(H(!=:5%Lz!3Z7!3:+@h$'*06/x"%:+!fxS6/5 T 6b"9./:+*'57:*cN u$v(+Q/5>I/?7Qr(+Q/!-W :V8U("788I/,-.J(*05>6D*28p6/5>:+,h"%$0$'@b(+:I/!-LM57:1*0:+13I/*v(&‡8 *'(+1VQ/!#Er6/!3( 57:xJ8=lkA "%6<E *0EJ(Q|l‹EJ!3$2"[@>l«">6 E U*v((!3:i"%:+!i6/5>( *06 EJ!=.8!5%Lz. ">1Vx7!(8 T *v(V1VQ/!=Eb6 !( T 5>:+x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*0! T 8j5>LkI/6/*213">8H(`"%6<E-,XI/$'(*213"78U(s">$'?75>:+*v(+Q/,h8zLM5>: T 5^Ši:+5>IJ(+*'6/?">:!"[T Z4">*'$'& ">A/$'!X*'Q6 8 ÃJl =;< BN 5qI/$v(+*',-!#EJ*0""%./. $'*213"%(*05>6 8=l T Q/*21VQo:!#~^I/*':+!,XI $v(+*01=">8H( T 5^Š:+5>IJ(+*'6 ? l<">:!AC!=135>,-*06/?hZ>!=:@*',-.C5>:(+"%6^(">6 Eo"%:+! TT *25SEJŠ;!3$0:+@;5>IJAC(+!3*'*06 6/? ?-l/I "%86*0La?7("%:(!#!"%"i$'&)(+LM*'! ,-!p*',-"%./.C./5>$0*2:13(+"4"%(+6^*'(576 ./8=:+N‹5%(+†w5S613(5>Q $283!N LM57$'$05 T *06/? l T !fEJ*28+1I 8+88H57,-!*288I/!#8s:+!3$0!3Z4">67(_(5-,iI/$v(+*01=">8H( T 











Œ  ¡o”V¥zž3¤–|¥›š›—i¡¥]ž3£  †w6^(!=:6 !(*08W 6 EJ*06/?-?>:+5 T *'6 ?iI 8!p*'6b,h"%6S@;85%La(:+!=">$v&c(*0,-!f">././$0*01="4(*05>6<83Nz†w6o">E/E/*v(+*'576g(+5hZ^*2EJ!=5%&‡5>6J&wEJ!3,h">6 EklJ"%6 Eg(!=$'!#1576JLM!3:& !=6 1*06/? ly,h"%6S@bEJ*28U(+:*0A/IJ(+!=Er">././$0*01="4(+*'576 8:+!=~^I/*0:+!,XI/$'(*213"78U(p157,9,iI/6/*213"%(*05>6|N 6 *'ZS*06/?g!#">1VQr85>I/:V1!i"%6q*06 EJ!=.6/6 !=1e(+*'576o(5!="71VQrEJ!=8H(*06 "%(*05>6q*28">6qI/6 "71313!3.J(V"%A/$0!i">././:+57">1VQbAC!=1="%I 8!X5>L](Q/!9.<5>(!=67(+*0">$ T ">8H(+">?>!5>Lj:!#8H57I/:V1!=8=N ORQ/!i15>,-,-5>6q">././:+57"71VQ*28(+5g1576 8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08+1I<88f"-LM! T :57IJ(*06/? ./:+5%(+5J15>$28_A*06/?9(5-(+Q/!=8!f( T 5-A/:+57"7Eg1="4(!=?>57:*0!=8=N  B  H @B MN  SA

  @ E  D  MN C †w6(Q !pLM5>$0$'5 T *06/? l T !EJ*2813I 88_( T 5-*',-.C5>:(+">67(85>I/:V1!3&cA<">8!=Eh:+5>IJ(+*'6 ?9. :5>(5J157$08=N U ®  # U· =µ=¯/±‹´>Å ÅS´%µ#» ¶®°²‹ÉMµ=·)´>¯ =µ g»C²«µ#·Y±‹¸ p¶4»<µ=»|´7»<É & ! 5q 8 V < *0,9. $'!=,9!=6^(+8;85>I/:V1!3&cA<">8!=EP(+:!=!=8 *'(QÍ:!=Z>!=:+8!g. "%(Q‰LM5>: "%:VEJ*'6 ? l]./:+I/6/*06/?ª"%6 EG?>:V"4La(+*'6 ? N‰†‡(;:!=$'*0!=8-576F(+Q/! !3{J1VQ<"%6/?7!5>L‹„>E/*08H(+">6 1!pZ>!#1e(+5>:RI/.yE/"4(+!=8+„9">,-5>6/?-T 6/5JEJ!#83N]‚`"71VQZ7!=1(5>:R!=T 67(+:@15>6^(V"%*06 8s(Q/!EJ!#8U(+*'6<"4(*05>6b"%6<EE/*08H(+">6 1!p*06JLM5>:& ,h"4(+*'576b!{J./:+!=8+8H!#Eg*06(!3:+,h85%L]6SI/,iA.<83N`ORQ !=8!I/.CE "4(!#8"%:+!8H!=6^(5>6!="71VQ$0*06/xyNsORQ/!,iI/$v(+*01=">8H(EJ*28U(+:*0A/IJ(+*'576(+:!=! *28_(Q/!=6q1:+!="%(!=E|N ®  Ê #U®°²‹ÉMµ#·Y´7¯ 3µ  sÅ^± È»<¶[µ=Å =µ ¯Jµ=ÈÀÊ·M¶ 3µ & »<²µ=·)±¸ p¶4»<µ=»|´7»<É  5B\pŠ `n 8 Î Ã < *08i"q,XI $v(+*01=">8H(X!{S(!=6 8*'576ª(5r(Q/!o\pŠ `n I/6/*213"78U(9$'*06/x^&‡8H(+"%(!;:+5>I/(*06/?q./:+5%(+5S135>$cNq†w6‰\pŠ snÀ!#">1VQª:+5>IJ(+!3:i.$'$0@P8H!=6 E/8$0*06/xª8U(V"4(!#8(+5r"%$0$`5>(Q/!=:X:+5>IJ(+!3:V8*06ª(Q/!g6/!( T 5>:+xJ83Nq‚s">1VQP:57IJ(!=:A/I/*0$2E/8XI .F"q157,-./$'!3(!6/!( T 5>:+xr,h"%.«N } *'(Qg(Q/*28`*06JLM57:,h"4(+*'576h!="71VQ;:57IJ(!=:`*28`">A/$'!(5915>,-./I/(!(+Q/!8Q/57:H(+!=8H(`. "4(+Q;(+5!3Z7!3:+@9EJ!#8U(+*'6<"4(*05>6g*'6h(+Q/!f6/!( T 5>:+xXI 8*06/?(+Q/! !* UxJ8H(:V"/© 8p8HQ/57:H(+!=8H(. "%(QD"%$0?>5>:+*'(Q/, 8 Î :1< N 5B\pŠ `nÍ!3{S(!36<E/8(Q/!#8H!9$'*06/xq8H(+"%(!=8(5b"%$285g*06 1$0I EJ!9*'6/LM5>:+,-"%(*05>6r">A<57IJ(p?>:+5>I/. ,-!3,iA1VQD:+5>IJ(+!3:">EJZ7!3:(*28H!#8(Q/!;. :!#8H!=6 1!-5%L_,XI/$'(*213"78U(?7:57I/.D:!#1!3*0Z>!=:+8f"4((+"71VQ/!=EB(5b*'(=NgORQ !3:+!LM5>:+! 5B\pŠ sn 1="%6r135>6 8H(:+I 1e(p"g8Q/5>:(!#8U(&c.<"4(Qr,XI/$'(*213"78U((:+!3!>ly*cN !7Nf(Q/!9. "4(+QoLM:+5>,˜(Q !985>I/:V1!(5g!#">1VQq:+!=13!3*0Z>!=:*06q(Q !i,iI/$v(+*01=">8H((+:!=!X*28 















































ÃÎ

Version 2 CSE, IIT Kharagpur

(+Q/!I/6/*213"78U(f8HQ/57:H(+!=8H(H&‡. "4(+Q|Nj†w6 8H(!#">Eb5>L‹:+!3$0@S*'6/?h576  5S5JEJ*'6 ? +[. :I/6 *'6/?-*06JLM5>:+,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´>»CÉ `:5>(5J157$k†w6 EJ!3.C!36<EJ!36^S( 5oI $v(+*01=">8H(XÁ j† 5B Ä 8 $ < ">8(Q/!6<"%,-!*v(V8H!=$vLj8I/?>?7!=8H(+8R*28*06 EJ!3.C!36<EJ!36^(5>Lz">6S@gI/6 E/!3:+$'@S*06/?h./:+5%(5J135>$cNj†‡( 135>6 8*08H(+85%L]( 5g,iI/$'(*213">8H(:+5>I/(*06/?g./:+5%(+5J15>$28=­ !!36<8H! 5o5JEJ!bÁ ! 5rÄ `† 5">6 ErŠS. ">:+8! 5q5SE/!Á)Š 5rÄ `† 5ªNy}B!96/5 T EJ*28+1I 8+8 (+Q/!=8!p( T 59./:+T 5%(+5S135>$283N UÅS± #ÅP®°»|ƋŠ# U® &  ® ½†‡(p*08f*06^(!36<EJ!=EqLM5>:p*'6^(+!3:&‡EJ57,h"%*06q:57IJ(*06/?"%6 EB">8+8HI/,-!#8(+Q "4(?>:+5>I .q,-!3,XAC!3:V8f"%:+!iEJ!=6 8H!=$'@ EJ*28H(:+*'A/I/(!=EG*06F(+Q/!o6/!( 5>:+xyNF¬!=6 1!7l`*'(;*089:+!="78H576 "%A/$0!;(+5ª">8+8HI/,-!(Q "%(h!=">1VQ‰"%6 EG!3Z7!3:+@ª:57IJ(!=:98Q/57I/$0EGAC!*06SZ>57$'Z7!=EK*06 ,iI/$v(+*01=">8H(=NjORQSI 8=l/"%6o"%. T ./:5^">1VQ;$0*0x>!!3Z7!3:V8H! ]"%(Qn‹$05S5SE/*'6/?-(+Q "4 ( <5^5JE/8E "4(+">?>:V"%,h8s(5-!3Z7!3:+@h,XI/$'(*213"78U(:+5>I/(!3:#N ‹¯/¶ #Åo®°»|ƋÅ # ® &  3® ½<†‡( ">8sW :V8U(R*067(+!36 E/!=EgLM5>: *0E/!&w"%:+!=",iI/$'(*213">8H(:57IJ(*06/?:!;8. "%:V8!3$0@rEJ*28U(+:*0A/IJ(+!=Eª*06P(Q/!6/T !( T 5>:+xyNu6F">8+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E/!3:V"4(!=$'@!ˆ;1*0!36^(#l j†U¿ +%Š 5 !=6 "%A/$0!=8(Q/!X13:!3& "%(*05>65%L]"9 `nP(+:!=!:5S5%(+!=E"4((Q *0885>I :+13!>Nz†‡(*08R(+QSI 8$0!=8+8EJ!3.C!36 E/!36^(5>6(Q/!13!36^(!=:$'5J1="4(*05>6(Q<"%6rÌ ROpN 









































































 ">$'?75>:+*v(+Q/,˜:!#~7I *':+!=8!3Z7!3:+@6/5JEJ!9(+5g,h"%*06^(+"%*06B"EJ*28U(V"%6 13!iZ7!=1(5>: T Q/*21VQB8H(5>:+!=8(Q !9,-*06/*0,XI/,tE/!3$2"[@(+5!=Z>!=:@5%(+Q/!3:p6/5JEJ!7N Š^(V"%:(*06/? *'(Q(Q/!i8H57I/:+13!p6/5JEJ!>lJ(+Q/!X">$'?75>:+*v(+Q/,€1576 8H(:+I 1e(V8_(Q/!,iI/$'(*213">8H((:+!3!*'(!=:+"%(*0Z>!=$'@;AS@">E/EJ*06/?;"-$0*'6 xg*067(+5-(Q/!p(+:!=! !#">1VQh(+*',-!>T Nj‚s">1VQ;*'(!=:+"%(*05>65%L|(+Q/!"%$0?>5>:+*'(Q/, 1576 8*08H(+8s5%L(Q/:+!3!f./Q "78H!#8`5>L«,-!=8+8">?>!.<">8+8H*06/? Nz†w6g(Q/!fW :V8U(R./Q "78H!7l^(Q/!p8H57I/:V1! 6/5JEJ!pA/:+57"7E/13"78U(V8s" O7'&&1#1QAREJ5 T 6;(+Q/!p. "%:(*2"%$0$0@;15>6<8U(+:I 1(!#Eh(:+!3!7N]} Q/!36b"i6/5JEJ!p:!#1!3*0Z>!#8j(+Q/!p,-!=8+8">?>!>lS*'(RW 6 E/8R57IJ( (+Q/!">E H"71!=67($0*'6 x T Q/*21VQ|­ E $'!#">E/8_(+5h"9E/!=8H(*06 "4(+*'57657IJ(5%L‹(Q/!p(+:!=!>l E EJ5S!=8R6/5>(Z^*05>$2"4(+!f(Q/!EJ!=$0"[@15>6<8U(+:+">*'6^(=lJ">6 E E ,-*'6/*0,-*'m=!"-8H!=$'!#1e(*05>6LMI/6 1(*05>6|N †w69(Q !R8!=135>6 Ei./Q "78H!7l4(Q !8H!=$'!#1e(!#E9$'*06/xJ8]"%:+!_8!36^(](+5(+Q/!85>I/:V1!_6/5JEJ!>l Q/!3:+!_(Q/!RAC!=8H(j$'*06/xi$ Q/*21VQi,-*06/*',-*0m3!#8z(Q/!8!3$0!=1(*05>6 LMI/6<1e(*05>6‰*2891VQ 578!36|NP†w6G(Q/!(Q/*0:VEF./Q<">8!>lj"%6‰u ! !›,-!=8+8">?>!;*28-8H!=6^(iT (+5D"7E/EK$R(+5r(+Q/!g(+:!=T !>NFORQ *089./:+5J1!=E/I/:!15767(+*'6SI/!#8 I/6^(+*'$z!3Z7!3:+@E/!=8H(*06 "4(+*'576q*08*06 1$0I EJ!#Eq*06q(Q !X(+:!=!>NpORQ/*08f"%$0?>57:*'(Q ,:+!=~^I/*0:!#8*06^(!36<8H*0Z>!i,XI/$'(*0./$0!i,-!=8+8+"%?>!X!{/1VQ "%6 ?>!=8=NO T 5 *0,-.<57:H(V"%6^(]./:57A/$0!3, T *'(Q B*08(Q<"4(](Q !R135>,-,XI 6/*01="4(+*'576X54Z>!=:Q !=">E*08‹Z>!=:@Q *'?7Q9">6 E(+Q "4(j!=Z>!3:+@p6/5JEJ!R6/!3!#E/8‹(5f,h"%*06^(+"%*06 "9?>$05>A<"%$|8H(+"4(+!>N Ã>à  B  

?QH  SA

9@4C E MNAD 0  @ E  p57,9.C!3$0$2"o!(h"%$cN 8 Î $ < ./:+5>.C578!=EK"rEJ*08H(:+*0A/IJ(!#EKQ/!=I/:+*08H(*21g">$'?75>:+*v(+Q/,tLM57:9135>6 8H(:+I 1(*06/?r"r135>6 8H(:V"%*06/!#EKŠ^(!=*'6/!=:X(+:!=!>NDORQ/!



 

Version 2 CSE, IIT Kharagpur

4j

 B  

?QH J S

E 







¬5>I 1.#_1576 1!=67(+:+"%(!#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>I/.‰"4(9(Q/!o:+5>IJ(+!3:V8i">6 E $0*'6 xS8(:V"[Z>!=:+8!=EAS@b,957:!p(+Q "%6r5>6/!i,XI/$'(*213T "78U((+:!=!XI 8*06/?g"h:+!=85>I/:V1!:+!#ŠJ!3: j"4(*05>6o. :5>(5J157$k(Q "%(f135>6 8*0E/!3:V8(Q !i"%?7?>:+!3?^"4(! :+!=~^I/*0:!=,-!36^(5%L«(+Q/!,XI $v(+*01=">8H(?>:+5>I/.">8" T Q/5>$0!>N]†w6oEJ!=!=EklS(+Q/*28*08(Q/!Š ‰./:+5%(5J135>$cN 





















 



 @4 MN 

K L A E   D  MN C O H  R Š Í*288H57$'!=$'@g"9:+!=85>I/:V1!:!#8H!=:Z4"%(*05>6g. :5>(5J157$)Nz†‡(">8+8I/,-!=8s(Q "%((Q/!,iI/$'(*213">8H(R(:+!3!Q "78RAI/(!3:V8_5%L (+Q/!6/!( T 5>:+xyN‹uEJ,-*08+8*'5765>L‹"-6/! T ,iI/$v(+*01=">8H(1576/6/!=1(*05>6*08RQ<"%6 EJ$0!=EAS@h(+Q/!">EJ,-*288*05>6b15>6^(+:57$C,-5JEJI/$0!*06b"9$05 T !=:R$0"[@7!3:#N Š ">8EJ!#8H*0?>6/!#E*'6 -Î ././V "4B( 3!3:+5[{ ]"%$05hu$'(5;!#8H!#"%:V1VQoÌs!=6^(!3:#NsORQ !*0EJ!#" "78_(5;EJ!#8H*0?>6o"-:+!=85>I/:V1!p:+!=8!3:+Z4"4(*05>6 ./:+5%(+5J15>$C(+Q T "4(1="%6b81="%$0!(+5h,XI/$'(*213"78U(135>,-,XI/6 *01="4(*05>6b"%6<E1="%6*'6<15>:+.C5>:V"4(!fQ/!3(!3:+5>?7T !36/!=5>I 8s:+!=1!=*'Z7!3:V83N Š !#8U(V"%A/$0*08Q/!#8"%6 Eb,h">*'6^(+">*'6<8" &'

Z0."$_LM5>:!=">1VQoEJ!#8U(+*'6<"4(*05>6q">6 EbI 8!=8*'((+5;8H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E/!=EklS8H5(Q "%(`(Q !?>:+!3!#EJ@X57: ,h"%$0*21*05>I 8_:+!="%$'&c(*0,9!f5>:R6/576:+!=">$v&c(*0,-!f85>I :+13!=8_EJ5i6 5%(6/!3?^"4(+T *'Z7!3$0@;"4dy!=1e(R(+Q/! T 5^Šh?7I T "%:V"%6^(+!3!=8s?>*0Z>!=6;(+595>(Q/!=:15>6 6/!=1(*05>6 8=N ŠSQ<"%./*06/?r">6 EP.<57$'*21*06/?r">:!;(Q/!,9!#1VQ "%6 *08,h8I 8!=EP(+5q!36 8I/:+!h(Q *08=NqO">A/$0! = N Î 8I/,-,-">:*0m3!#8(+Q/!;x>!=@DE/*vdy!3:+!36 13!=8XA6 E.<57$'*21*06/? NsORQ/!1VQ/5>*21!AC!( T !3!=6 T Q/*01VQb576/!f(5hI 8!EJ!3.C!36<E/8576g(+Q/!(U@S.Lz">././$0*01="4(+*'576">6 E*v(V88.·Y±‹¸ ȋ¯ ‹·)±¸  #Å^´>µ=D· C<Å        !  " $#%'&(  ) *+#  , !  " -# &+  .*0/(  . %12*0/( , ,*+343456" 74 '  8 *+343456" 74 '  89),*:  $*%-1!  78 ;o¯/±‹ÆÉ)·Y±‹¸ 9²¶ =µ <= "  -?>@ 7&:AB1'&( *4! >CA DE *+#F(0  1  G 8 " 'H4%I 5C /!5@FJ? "34*:*%5CF?  78 ),*:  $* "34*:*%5CF8 ¹g=Æ C/¯/±yµ=¯ ¸<Å K/(*%5C   " ' "345@ " "5@*+L =* K/+*+5C $! >C7AB =*4: 5@F!8 EJ:+5>. .1Vx>!3(+8=N U· =¯ Æ C/¯/±yµ#¯/¸CÅ M%N5@:" * O >PA! - =*4: 5@F8 M%  7 = *%F%#!$*%Q   7B G"  734 8 O‹"%A $'!7N = N Î ­]O«:V"4ˆ;1ŠSQ ">./*'6 ?hZ>!3:V8I 8 z5>$0*013*'6/? ŠS!=Z>!=:+">$z(:V"4ˆ;1;8Q "%./*06/?q">6 EP.<57$'*21*06/?o(+!=1VQ/6 *0~^I/!#8X"%:+!;"[Z4"%*0$0">A/$0!>N†w6P(Q/!gLM5>$0$'5 T *06/? l T !;EJ*08+1I<88i"%6ª*0,9.C5>:(+">6^((:V"4ˆ;1 8Q "%. *'6/?h">6 Eg.C5>$0*21*06/?-(!#1VQ/6/*2~7I !>N 

 

 



























Ã$

Version 2 CSE, IIT Kharagpur

r tokens / second

Packets

if sufficient tokens, remove tokens and transmit packet

Packet Wait

outgoing link

n‹*'?7I/:! Î : ­]O«57x>!=6 _I 1Vx7!(} *v(+Qo¾|!=">xS@g"4(+!XÌs5>6^(:+5>$      @4M  Q E  7 KA    A     C u .C5>. I/$0">:](!#1VQ/6/*2~^I/!I 8!=E-*06-8Q ">./*'6 ?"%6 E-.C5>$0*013*'6 ?*08z(+5>x7!36-A/I 1Vx7!( *'(Qh$0!="%xS@i:+"%(!1576^(:+5>$K8 Î;:1< N]u8j8Q/5 6-*'6;n‹*0? N Î;: l>" A/I<1Vx>!(_13"%6hQ 5>$2EhI/.h(+5X1!=:H(V"%*06h./:!#8H.C!=13*vWx>!=6 8=N‹O5>x7!3T 6 8j">:!">E/EJ!#E9(5X(Q/*28jA/I<1Vx>!(R">8zLM57$'$05 TT 8=N‹¿! T (57x>!=6 8 (+Q "4(,-*0?>Q^(A!(#l">:!h"%$ T "[@S8?>!=6/!3:V"4(+!=ED"4(X":V"4(!-5>L_:p(+5>x>!=6 8p.C!3:X8!=135>6 EkN-†‡LR(Q !hA/I 1Vx>!3(15>6^(V"%*06 8 $0!=8+8j(+Q/!36A;(+5>x>!=6 8 T Q/!36g"(57x>!36g*08_?>!=6/!3:V"4(+!=Ekl7(Q !6/! T $'@-?7!36/!=:+"%(!=Eh(5>x7!36h*28R">E/EJ!#E-(5i(Q !A/I<1Vx>!(#S5%(Q !3: T *08!(Q !6/! T $'@ ?7!36/!=:+"%(!=E;(57x>!36*28*'?76/5>:+!=E|lS">6 E(Q/!p(+5>x7!36A/I 1Vx>!3(:!=,-">*'6<8_L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$0*',-*'(`(Q !$05>6/?>&)(+!3:+, "[Z>!=:+">?>!R:V"4(!"%( T Q/*21VQ-(Q !. "71Vx>!(_13"%6h!=6^(!3:`(Q/!6/!( T 5>:+xyNORQ/*28`(!=1VQ 6/*0~^I/!13"%6;">$085 AC!I 8!=E(5-.C5>$0*013!p(Q/!.C!=">x;:+"%(!"%$05>6 ? T *'(Qb$05>6/?>&)(+!3:+,€"[Z>!=:+">?>!:V"4(+!>N 













Œ 



¤  • q ¡o”=ž3£





•¤   £ož–z‘–

Switch

Service Discipline

Switch

Output Buffers fixed delay Switch Switch

‹n *0?>I/:+! Î1, ­]u 5o5JEJ!=$|5%L]u ]">1Vx7!(Š T *v(V1VQ/!=Eb¿!( T 5>:+x u8H*0,-./$'!,-5SE/!3$_5%L"%6K†w6^(+!3:+6/!(9*08i"r157$'$0!=1(*05>6ª5>L8H!=6 EJ*06/?r"%6<Eª:!#1!=*'ZS*06/?q6/5JEJ!#8X"%6<Eª6/!( 5>:+xB8 *'(+1VQ/!#83Nru_(9!3Z7!3:+@ 8 T *v(V1VQ|l](+Q/!3:+!,h"[@PAC!,h"%6S@ª*06 157,-*'6/?D"%6 EF,h"%6S@P5>IJ(+?>5>*06/?D15>,-,iI/6/*213"4(+*'576K$0*'6/xJ8-">898Q/5 T 6KT *06‰n‹*0? T N Î1, N !!3.C!36<EJ*'6 ? /à ( 

Version 2 CSE, IIT Kharagpur

I/.C5>6PEJ!#8U(+*'6 "%(*05>6B5%L_". "71Vx>!(#ly*v(*28~7I !3I/!#Eq5>6DA/IJdy!3:~^I/!=I/!-5%L`. ">:H(+*013I/$2"%:f5>IJ(+?>5>*06/?$'*06/xyNiu8+1VQ/!=EJI $'!=:p8!3$0!=1(+8f. "71Vx>!(V8 (+59AC!f(:V"%6 8,-*v((!#E;LM:+5>,(+Q/!A/IJdy!3:"%(s(+Q/!p5>IJ(+./IJ($0*'6/xgA ">8!=Eg5>6b8H57,9!p8+1VQ/!=EJI $'*06/?9.<57$'*21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ZS*013!EJ*2813*'./$0*06/!1="%6;AC! Ã=

Version 2 CSE, IIT Kharagpur

Eligible Time computation

Active Msgs

1

D M U X

Hold Queue

2 n−1

MUX

Departing msg

n

n‹*'?7I/:! Î-. ­ j:+5J1!=8+8*'6/?9*06b"-¿5>6J&‡}B57:x^&HÌs5>6 8!3:+ZS*'6 ?iŠS!3:+ZS*013! ! *2813*'. $'*06/! 

13$0"788*vW8p!3*'(Q !3: T 5>:+x7&w1576 8!3:+Z^*06/?;57:p6/5>6J& T 5>:+x7&w1576 8!3:+Z^*06/?:+x^&‡135>6 8!3:+ZS*'6/?EJ*08+1*0./$0*'6 !>l"b8!3:+Z>!=:f*28p6/!=Z>!3:*2EJ$0! T"%LaQ/(!3!=: 69(Q/Q/!=*01V:!Qo*2"-8j"p. "7. 1V"7x>1V!3x>(R!(zAC!=(+1355>8H,-!=6 !=Ek8N‹!3$0†w*'6-?7*'"pA/$06 !p5>(6J5h& T AC57!:8x^!3&w:+1Z^57*26 18H!#!=Ek:N`ZS*0uº6/?8!3EJ:+*2Z>8+1!=*0:./*0$'*086/">!7$'l>$05!="71V!=QiEg.<(">5;1Vx>8!3!36 (]E*08j5>"76 8$'8@g*0?>(6/Q/!#!Ei. ">"7691Vx>!=!3$'*0(+?>8 *0A/*0$'Q/*'(U*21V@Qo(+*'"%,-:+!f!>lS!="f$'*0?>(*0*0A/,-$0!! ">6 EK*'(9T *2896/!3Z7!3:-*2EJ$'!b">8i$05>6/?P">8X(Q/!=:!b"%:+!g!=$'*0?>*0A/$0!.<">1Vx>!3(+8X(5P8H!=6 EkNKuT ,9576/?B(Q/!b./:+5>.C578!=EK8!3:+ZS*013!EJT *28+1*0./$'*06/!#83l ZS*':(I ">$ 13$'5J1Vxyl }n T l^Š Ì_n T l !!3$2"[@^&‡‚ ! !…"%:+! T 5>:+x^&‡135>6 8!3:+ZS*'6/?.J&w"%6 EJ& 6 56 8!3:+ZS*'6/?-EJ*2813*'. $'*06/!>N O5B. :54ZS*2EJ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8R576/$'@g?>I ">:+">67(+!3! 576/!i57:f85>,-!i5%Lj(+Q/!=8!i. :57.,-./:+!3Q !36 8*'Z7!i">6 "%$0@J8H*285>L`Z4"%:+*'57I 8(+:+"%ˆ;1iEJ*28+1*0./$'*06/!#89ÁYA<5>(Q T 57:xo1576 8!3:+Z^*06/?g">6 E 6/576 T 5>:+xg135>6 8!3:+ZS*'6/?SÄ`">6 Eg(Q/!=*'::+!3$2"4(+*'Z7!f135>,-. ">:*28H5761="%6A6 8!3:+ZS*'6 ?iEJ*2813*'. $'*06/!=8=l ">6 E8I/A 8!=~^I/!=6^($0@ T !EJ*2813I 8+8"XLM! T 6/576J& T 57:x^& 135>6 8!3:+ZS*'6/?-8!3:+Z^T *21!pEJ*2T813*'. $'*06/!=8=N E





























d

 

 )   4 K LBE

E ME  C E B



†w6(Q *088I/A 8!=1(*05>6|l T !EJ*2813I 88"iLM! T *0,-.<57:H(V"%6^( T 57:x;135>6 8!3:+ZS*'6 ?98!3:+ZS*013!fEJ*28+1*0./$'*06/!#83N ÅS·)¸<Èyµ#Å^Æ Ê«¯/·Y¶ k²‹ÅS²·)±¸ # Ê %&4½]}n T 8 :;< Q "78!3Z75>$0Z>!=ErLM:+5>, n‹$0I/*2Eªn "%*0: T I/!=I/*06/?KÁYnzn T Äl">$085bx^6 5 T 6P"78 ]">1Vx7!( 6 !=6/!3:V"%$0*'m=!=E `:5J13!=8+8H57:iŠSQ ">:*06/?GÁ 6 _Š/ÄeNz†w6Gnzn T (Q/!=:!*08-"D8H!=. "%:V"4(+!gn‹†Un‹\˜~^I/!=I/!;LM57:-!=">1VQG15>6 6/!=1(*05>6F8Q "%:+*06/?q(+Q/! 8+"%,-!g$0*06/xyN !I/:+*06/?B">6^@D(+*',-!b*'6^(+!3:+Z[">$ Q !36K(+Q/!3:+!b"%:+!;!{/">1($0@K¿€6 5>6J&‡!3,-.J(U@ª~^I/!3I !=8=l](Q/!b8!3:+Z>!3:98H!=:Z7!=8(Q/!b¿€.<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!3:+*05SEA:+!`*'(‹*28«,h"7EJ!`!=$'*0?>*0A/$0!j(5A




Delay Bound PreAhead

Switch i−1

Arrival

Departure

Deadline

Holding Switch i

Delay Bound

Arrival

Eligible

Deadline

n *0?>I :!Ã* ­ ]">1Vx>!3(ŠJ!3:+Z^*21!p*06 >*'(H(+!3:&‡‚ ! ! 7*v((!=:H&p‚ ! !*28i*'$0$'I<8U(+:+"%(!=EP*06Gn‹*0? NPÃ*/l Q/*21VQF8Q/5 8(+Q/!./:57?>:+!=8+8p5%L"r. ">1Vx7!((+Q/:57I/?>QK( 5r"7E H">13!36^(98!3:+Z>!=:+8=No†w6 (+Q/!bW :V8U(g8!3:+Z>!=:=l](+Q/!o. "71Vx>!(h?75%(;8H!=:Z7!=E j:+!=T uQ !=">E‰8!=T 1576 E/8-AC!LM57:!b*'(+8;EJ!#">EJ$0*06/!>NÀŠS5*0A/$0!(5A6/$0@"%La(!=: j:+!=uQ/!="7Eb8H!#15>6<E/83NŠJ*'6 13!(+Q/!3:+!*28"g135>6 8H(+">6^(EJ!3$2"[@AC!( T !3!=6b(Q/!i!3$0*'?7*'A *'$0*v(U@(+*',-!=85%L](+Q/! . "71Vx>!3("%(( T 5h"7E H">13!36^(8H!=:Z7!3:V83l^(Q !. ">1Vx7!(8H(:+!="%,13"%6AC!./:+54Z^*2EJ!#E"-EJ!=$0"[@ U*'(H(+!3:A<57I/6 EkN`u88I/,-*06/?-(Q/!=:!*286/5-:+!3?7IJ& $2"4(+5>:j"4(z(+Q/!EJ!=8H(*06 "%(*05>6-Q/578H(=l%(Q/!!=6 ES&c(5%&‡!36<EiEJ!=$0"[@ U*v((!3:`A<57I/6 E9*08](Q/!8+"%,-!">8‹(+Q/!$'5J1="%$/EJ!=$0"[@AC5>I 6 E-"4(z(Q/!$0"78U(j8!3:+Z>!3:#N µ=» V¯/±‹Æ  »«½pŠ^(57.J&‡">6 ES& 6 5;EJ*2813*'./$0*06/%! 8 ( < *28A<">8!=Eb5>6o,iI/$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,9*28+8H*05>6|N ORQ/!fLM:V"%,-*06/?h8U(+:+"%(!3?7@h*'6^(+:5JEJI 13!=8_(+Q/!./:+5>A/$0!3, 5>L‹135>I/./$0*06/?-AI/6 Eb">6 EgA<"%6 E *2ES(+Qb">$'$05J13"%(*05>6?>:V"%6SIJ& $2"%:+*v(U@7N_ORQ !XEJ!3$2"[@g5>Lj"%6S@.<">1Vx>!3("4(";8*06/?>$0!8 T *'(+1VQo*28AC5>I 6 EJ!=EqA^@gT ( T 5-LM:V"%,-!(+*',-!#83NO5;:!#EJI 13!pT (Q/!9EJ!3$2"[@>l "g8H,h"%$0$0!3:O *28EJ!=8*0:!#EkN]¬5 !3Z>!=:=lJ8*'6<1!O*28"%$28H59I 8!=Eg(5h8.6 E *2ES(Qo">$'$05J13"4(+*'576g?7:+">6^I $0">:*'(U@>N‹u8+8HI/,-*06/?h" W/{J!#Eb. ">1Vx7!(8*'T m=! zlJ(Q/!i,-*'6/*0,XI ,?7:+">6^I $0">:*'(U@h5%L]A ">6 E T *2ES(Qq">$'$05J13"4(+*'576b*08 J+4T OpN/O5;Q "[Z7!p,957:! 6 E *2ES(Q«l^57:_8,h"%$0$'!=:sA<"%6 E *2ES(+Q"%$0$05S1="4(+*'576h?>:V"%6SI/$2"%:+*v(U@7l7"$2"%:+?>!=:`O *28`. :!3LM!3:+:!#EkN†‡(R*28_13$'!#"%:`(Q "%(_$05 EJ!3$2"[@9A<57I/6 Eg">6 E W 6 !?>T :V"%6SI/$2"%:+*v(U@-5%L‹A "%6<E T *0EJ(T Qq"%$0$05S1="4(+*'57613">6/6/5>(RAC!">1VQ *'!=Z>!=E8*',iI/$v(V"%6/!=5>I 8$0@h*'6o"iLM:+">,-*'6/?h8H(:V"4(+!3?>@gT $'*0x>!Š^(+5>.J&w"%6 EJ& 6 5
























T2 Frame T1 Frame

n‹*'?7I/:+!à Π­]O T 95 ¾«!3Z>!=$|n/:V"%,-*06/? T *v(+Q   Ã.

V   

Version 2 CSE, IIT Khar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(!=E./:*05>:+*'(U@ ~^I/!=I/!R,9!#1VQ "%6 *08, ÁM!7N ?N ? N]Š^(+5>.J&w"%6 EJ& 6 5SÄeN‹ŠJ5>:(!=EX./:+*'57:*'(U@8H!=:ZS*21!3&‡EJ*28+1*0./$'*06/!#8">:!R157,9. $'!3{ ">6 EoEJ*'ˆh13I/$'((+5;*',-./$0!3,-!=67("%6<ELM:+">,9*06/?g8H(:V"4(+!3?7@8IJdC!=:LM:+5>,(Q !iEJ!=.6 Eo?7:+">6^I $0">:H& *'(U@o5%L`A<"%6 E T *2ES(+Q|NiO5?7!("%:+5>I/6<Eb(Q/!#8H!9./:+5>A/$0!3,h8=lkm3Q ">6/?">6 Ern !3:+:+">:* 8 à =;< lk./:+5>.C578!=T Er"4(!3&UÌs576^(:+5>$0$'!#EqŠ^(+"%(*21e& j:+*'57:*'(U@ T Q/!=:!=*'6(Q !pLMI/6 1e(+*'576b5%Lz:+"%(!15767(+:57$CLM:57,€EJ!3$2"[@g135>6^(:+5>$yQ "78RAI ./$'!#Eg*06(Q/!E/!=8*'?765>L‹8!3:+Z>!3:#N









Regulator 1

Regulated Traffic

Priority level

Regulator 2

1

input

output

n Regulator h

Scheduler

Rate Controller

n *0?>I :!Ã>Ã/­]"4(+!iÌs5>6^(:+5>$0$'!#EŠ^(V"4(+*01 `:*05>:+*v(U@ u88Q/5 6o*06Cly"gÌRŠ À8!3:+Z>!=:Q "78( 5157,-.<576/!36^(+8=­";:V"4(+!&w15>6^(+:57$'$0!3:">6 Eq"g8H(+"%(*21./:+*05>:+*v(U@81VQ/!#EJI/$0!3:#NpÌs576 1!=.J& (+I "%$0$'@7l/"X:V"4T (+!f135>6^(:+5>$0$0!3:s135>6 8*28U(V8s5>L"98H!3(R5>TL«:+!3?>I $0"%(5>:V8_15>:+:+!=8.<576 EJ*06/?(59!="71VQg5>L|(Q/!135>6/6/!#1e(+*'576 8s(:V"[Z>!3:V8*'6/?(Q/!8!3:+Z>!3:# !#">1VQª:+!3?>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">8H((+:+"%ˆh1>N†w6^(+8!3:+Z:+!=~^I/*0!3:V8!{J./$0*21*'(:+!=85>I/:V1!p:+!=8!3:+Z["%(*05>6(5gA6/!7l T Q *01VQo*06o(I :6o:+!=~^I/*0:!#8  5 T &w8.IJ(+!3:V83N ORQ/!†w6^(+!3:+6/!(jQ "78z(5AC!I 8!=E-"78j"157,9,-576i./$2"4(LM5>:+,°LM57:jA<5>(Qh:+!=">$v&c(*0,-!R">6 E96/5>6/&c:+!=">$v&c(*0,-!s(+:+"%ˆ;1"%6 Ei(QSI 8`./:+!=1$0I EJ!#8 (+Q/!6/!3!#E(5;EJ!#8H*0?>6b"-. ">:+">$'$0!3$k*06JLM:V">8H(:+I 1e(+I/:!fLM57::!#"%$'&)(+*',-!p(:V"4ˆ;1>N 8!5%Lz!{J*08H(*06/?h†w6^(!=:6 !(H&‡$2"[@>!3:R./:+5%(+5J15>$jÁY!>N ? N0l/† sÄsLM57: :+!=">$v&c(*0,-!E/"%(+"i*08s./:+5>.C578!=E;85X(+Q "4(R!=135>6/57,X@95%L135>,-,XI 6/*01="4(+*'576"%6<Eh*'6^(+!3:+5>.C!3:V"%A/*0$'*'(U@-A6/&c†w6^(VŠJ!3:+Z 6/!3( T 57:xJ8j1="%6;AC!f:!#"%$0*'m=!=EkNzORQ/!3:+!8Q/5>I $0EhAC!p"8H*06/?7$'!f8H!=:ZS*21!,-5JEJ!3$CA/IJ(R. "71Vx>!(_81VQ/!#EJI/$0*'6 ?i"%6<Eh">EJ,-*288*'576g1576^(:+5>$ ,-!#1VQJ& ">6/*08,€1="%6bZ4"%:+@>N 



 

     "!$#%&' !)(**,+-.#/0 1 2  $3 # $+%#454,6  78#9  :;#1< =#/0>3 #?=$@  <#?=$ < %>*%# % <1:* A .@ #+6B # C#9 .

  %> % 6D <"  45#2# "#/0>3 # C#9E . 2   F

V/Î

Version 2 CSE, IIT Kharagpur

†w6^(VŠJ!3:+Zo*',-./$0!3,-!36^(V"4(*05>6BQ ">8LM57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3,h8"%:+!(+Q/!pLM5>$0$05 T *'6/?<­ T E ORQ/!i">,-5>I/6^(5>Ls8U(V"4(+!X*06JLM5>:+,h"4(*05>6o*06 13:!#">8!=8. :57.<57:H(+*'576 "%$0$'@ T *v(+Qq(+Q/!X6SI/,iADL  5 T 83NfORQ/*28./$2">13!=8f";QSI/?7!X8U(+5>:& "%?7!_">6 E./:+5J1!#88*'6 ?54Z7!3:+Q/!="7E5>6i(Q/!R:+5>IJ(+!3:V83N‹ORQ/!3:+!LM57:!7l[(Q/*28]"%:V1VQ/*'(!#1e(I :!REJ5S!=8‹6/5>(`81="%$0! T !3$0$J*'6i(Q !_†w6^(+!3:+6/!(j157:!7 E ORQ/!9:!#~7I *':+!3,-!36^(f5>6r:+5>I/(!3:V8*08fQ/*0?>Q|Niu$0$‹:+5>I/(!3:V8,XI 8H(f*0,-./$0!3,-!36^(Š zl|">EJ,-*288*'576r1576^(:+5>$cNl 5rn 1$2">8+8H*'W<13"%(*05>6 "%6 E. "71Vx>!(8+1VQ/!=E/I/$'*06/?< E A/*2~^I/*'(5>I<8_E/!3./$054@S,9!=6^(_*28_:!#~7I *':+!=E-LM57:R?>I ">:+">67(+!3!#E;8H!=:ZS*21!7N†w6 13:!=,-!36^(+">$yE/!3./$054@S,9!=6^(_5>LzÌs5>6^(:+5>$0$0!=ES&w¾|5^">E;ŠS!=:ZS*21! *08R.C578+8*'A/$0!fA^@EJ!3./$054@S*'6 ?hÌs5767(+:57$'$0!=EJ&‡¾«57">EŠS!3:+ZS*013!f">6 EŠ GLMI/6 1(*05>6 ">$'*'(U@g"%(_(+Q/!AC5%(H(+$'!=6/!=1Vxg6/5JEJ!=8R5>L‹"9EJ5>,h"%*06 "%6 Eg(I 6/6/!3$0*06/?-(Q/!Š Í,-!=8+8+"%?>!#8_54Z>!3:_5%(+Q/!3:.<"%:(R5>L(+Q/!EJ57,-">*'6«N Và 





 



 







Version 2 CSE, IIT Kharagpur

;j

 4

E K  E A 

$H K LBE MN



O5h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_*'6^(+5i"6 !( T 5>:+x T *'(Q/57IJ(_"7EJQ/!=:*06/?(+5i">6^@9. ">:H(+*013I/$0">:`:+I/$0!=8_"%6 E-(+Q/!f6/!( T 5>:+x T *0$0$CEJ!=$'*0Z>!=:_"78 ,h"%6S@;5%L(Q/!#8H!.<">1Vx>!3(+8R">8R.C578+8*'A/$0!"%6 Eb"788H5S5>6b">8_.C578+8H*0A/$0!A/IJ( T *'(Q/57IJ("%6S@;?7I "%:V"%6^(+!3!=8=N E u8+8HI :!#E;n/57: T "%:VEJ*06/?gÁYun]Ä s¬ Í*28R"X,-!=">6 8sLM5>:R"X. :54ZS*2EJ!3:_EJ*vdy!3:+!36^(+*0"%(!=E8!3:+Z^*21!#8`EJ57,h"%*06;(595%dy!3:EJ*'dy!3:+!36^(_$0!3Z7!3$28 5%LLM5>: T ">:+EJ*06/?-">8+8HI :+">6 1!#8jLM57:† G.<">1Vx>!3(+8R:+!=13!3*0Z>!=E;LM:57,€"h1I<8U(+5>,-!3:EJ*'dy!3:+!36^(*2"4(+!=E8H!=:ZS*21!=8REJ57,h"%*06|N  



  





























 



 

 

 

 

 

 



  

V/V

Version 2 CSE, IIT Kharagpur

ORQ/!‚j{J.: "%:VEJ*'6 ?KÁY‚`n]Ä `¬ *28-"qQ/*0?>QF./:*05>:+*'(U@BAC!3Q "[ZS*05>:9"%6 EF*089EJ!W<6/!=EG">89"oLM5>: "%:VEJ*'6 ?b(:+!="4(+,-!36^( LM5>:"-. ">:H(+*013I/$2"%:EJ*'dC!=T :!=6^(*2"4(!#Eb8H!=:ZS*21!=8">?>?7:!=?7"4(+! T Q !3:+!(+Q/!XEJ!=. "%:(I :!p:V"4(!5>L(+Q/!X">?>?>:+!3?^"4(+!>© T8`. "71Vx>!3(+8_LM:+5>,">6S@ !fŠS&‡135>,-./$0*0">67(-6/5JEJ!,XI 8H(-!=~^I "%$R57:i!3{J13!3!#EF"D15>6/W ?>I/:V"%A $'!:+"%(!>NKORQ !‚sn…(:V"4ˆ;18Q/57I/$0EFA$'$05J13"4(+!=EP(+Q/*28-:+"%(! *'6<EJ!3.C!36 E/!36^($0@g5>L«(Q !*'6^(!=6 8*v(U@5%L‹">6S@;5%(+Q/!3:R(+:+"%ˆh1p"%(H(!=,-.J(*06/?-(5-(+:+">6 8*v(R(Q !6/5JEJ!>N    §  š  E !=">$v&c(*0,-!r157,-,XI/6/*213"%(*05>6 :+!=~^I/*0:!=,-!36^(+8h5>LX"%./. $'*213"%(*05>6 8"%:+!o!{J./:+!=8+8H!#EÍ*'6 (+!3:+,h8;5%LX13!3:(+">*'6~^I ">$'*'(U@G5>L8H!=:ZS*21! Á T 5SŠ/Ä. ">:+">,-!(!=:+8=Npu :+!=">$v&c(*0,-!X./:+5%(+5S135>$‹?>I ">:+">6^(!3!#8R(Q ! T 5SŠb:+!=~^I/*0:!=,9!=6^(5%Ls">6B">././$0*01="4(*05>6«lC576 1!i*v(">1=1!=.J(+8f" 1576/6/!=1(*05>6:!#~^I/!=8H(=N E !=">$v&c(*0,-!157,9,iI/6/*213"%(*05>69./:5>(5J157$08]">$'$05 T A<5>(Q-6/5>6/&c:+!=">$v&c(*0,-!R">6 E-:+!="%$'&c(*0,9!R,-!=8+8+"%?>!#8‹(5AC!Q ">6 EJ$0!=E9*'6-(+Q/!8+"%,-! LM:+">,-! T 5>:+xCN E †w6g(+Q/!†w6^(!=:6/!3(!36SZS*':+5>6 ,9!=6^(=lS5>6/$0@85%La(:+!=">$v&c(*0,-!p135>,-,XI 6/*01="4(+*'576*288HI ./.<57:H(+!=EkN    š˜Ÿ    Î NŠ^(+"%(! T Q !(Q !3:9@>5>Iª135>6 8*0E/!3:(+Q/!hLM57$'$05 T *'6 ?r8U(V"4(+!3,-!36^(+8(5qAC!  5>:iÊy¹ 2 XN >I<8U(+*vLM@P@>57I/:X">6 8 T !3:X*'6K!#">1VQ 13"78H!7N ÁY"^ÄŠ^(+:!#"%,-*06/?h15>,-./:+!=8+8!=E;ZS*2EJ!35-(+:+">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135>6SZ>!=67(+*'576|N ÁY*2Ä‚`Z>!36 T Q/!=6o"-?>$05>A ">$k./:*05>:+*'(U@7&‡A "78H!#E;,-!=8+8">?>!(:V"%6 8,-*08+8*'576*288I/./.C5>:(!=EAS@"-:+!=">$v&c(*0,-!157,9,iI/6/*213"%(*05>66/!(& T 5>:+xylS45qu ÁM:V"4(+!p,9576/5%(+5>6/*21p"%$0?>57:*'(Q/,;Äs81VQ !=EJI/$0*06/?-5%Lz:!#"%$'&)(+*',-!p,-!=8+8">?>!=8_*28R*'6 !dy!=1e(+*'Z7!>N Á Än 5>:(+:+">6 8H,-*'(H(+*'6/? R :+!=">$v&c(*0,-!-(:V"4ˆ;1h"%,-576/?(+">8xJ8p54Z>!=:"o¾«u¿Xl"o1="%$0!36 E/">:H&‡A "78H!#Eq:+!=8!3:+Z["%(*05>6B./:5>(5J157$ T Á 6 5>I/$2Á EÍfÄR@S*'*2!=8_$0E(Q/Q/!*'?7?7I Q/!3"%::V"%66^(!=!Á . Ä-:57(+A Q "%"%A/6À*0$0*v!3(U*'@;(Q/"%!=(:IJ"ª(*0$'?7*0m=$'57"%A (*0"%5>$6 ./:*0Ä 5>:+*'(U@7&‡A "78H!#Ekls57:"ªAC5>I 6 EJ!=EÀ">1313!=8+8-(U@S.$cN ÁYxJĆw6P,XI $v(+*'./$0!hAC5>I/6 E/*'6/?q"[Z7!3:V"%?7!X:V"4(!h1VQ ">:+"71e(+!3:+*'m#"4(*05>6r5%LRA/I/:V8U(U@o(+:+"%ˆ;1%lk(+Q/!;$2"%:+?>!3:f*28p(Q/!;"[Z7!3:V"%?7*'6/?*'6^(+!3:+Z[">$ (+Q/!$'5 T !3:R*28R(Q !:+"%(! T *v(+Q T Q/*01VQ(Q !8H57I/:+13!p*08RAC5>I/6<EkN E

 













 







 











V$

Version 2 CSE, IIT Kharagpur

ÁY$2ÄORQ/!-Á  ;D 7Äj,-5JEJ!3$CLM57:s:+!=">$v&c(*0,-!(:V"4ˆ;113"%6A1e(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71e(+5>:[email protected] ÁMA<Ĭ5 T 13">6o"i?7$'57A "%$y./:+*05>:+*v(U@h./:+5%(+5J15>$kAC!8I/./.C5>:(!=E*06b"-¾u¿ T *'(Qq157$'$0*28H*05>6J&‡A "78H!#E;">1=1!=8+8 F ÁY1=ƇL45qu 8+1VQ/!#EJI/$0*'6/?i5%L«5>L|. ">1Vx7!(V8`*28j(+5iAC!p8HI/. .<57:H(+!=Ekl T Q "%(s*28`(+Q/!,h"%{S*0,XI , 1VQ "%6/6 !3$CIJ(*0$'*0m="%(*05>6g(Q "%(_13">6gAC! "71VQ/*'!=Z>!#(E F ÁYE Ä} Q "%("%:+!f(Q/!,h"%*065>A 8H(+"71$0!=8_(5-!3ˆh13*'!=6^(*',-./$0!3,-!36^(V"4(*05>6b5>L‹B5qu *06(Q/*288!(I/9. F (/NÌs5>6 8*2EJ!3:(Q/!iI 8H!i5%L](+*',-!=Eo(5>x7!36q. :5>(5J157$`ÁM†U‚s‚`‚ , *7ÃJN $^Ä*'6o(+Q/!LM57$'$05 T *06/?g8*v(+I "4(+*'576|N}D!XQ "[Z7!LM5>I :6/5JEJ!#8*06q(+Q/! 8H@J8H(!=,N‰ORQ/!b:!#"%$'&)(+*',-!:!#~^I/*':+!3,-!=67(h*28i(Q "%(;6/5JEJ!  AA/$'!(+5B(+:+">6 8,9*'(hI/.J(+5  pA *v(V8-54Z>!3:9!="71VQF.C!3:+*'5JEG5%L EJI/:V"4(+*'576  ,9*0$0$'*aŠS!=135>6 E 83l Q/!3:+!  "%6 E  "%:+!?>*0Z>!=6*06o(+Q/!(V"%A/$0!XAC!3$05 Nu8+8HI ,9!X(Q "%((+Q/!X./:+5>.<"%?7"%(*05>6(*0,-!X*28 6/!3?7$'*0?>*0A/$0!15>,-. ">:!#Eh(+5-OOT zO…"%6 E(+Q "4((+Q/!6/!( T 5>:+xhA ">6 E T *2ES(Qb*28 Î 5oT A/.<83N ¿5JEJ!   6 Î Î */* pA Î *9,h8H!#1 6<à /à */* pA Î (4,h8!=1 6 V (/*/* pA Î */*%,h8!=1 ÁY"^ÄÌsQ/5S5^8H!8I/*v(V"%A/$0!OOzO ÁM(+"%:+?>!3(R(5>x7!36:5>(+"%(*05>6(*0,9![ÄeN ÁMA<Ä} Q "%(*08(Q/!,h"4{J*0,XI/, (*0,9!pLM57: T Q/*21VQb"9:+!=">$v&c(*0,-!f,-!#88+"%?7!,h"[@g8IJdy!3:*06^Z7!3:V8H*05>96 F ÁY1=Ä57AJ(+">*'6ª8I/*v(V"%A/$0!-Z4"%$0I/!=85>L  ÁM(5>(+"%$`6^I ,XAC!3:5%LRA/*'(+8p(+Q "4(X1="%6DA6 EB6 V 54Z7!3:R!3Z7!3:+@;1@J1$0!>N ÄiI/6 EJ!=:./:+5>.C5>:(*05>6 ">$C">6 E$'5J13">$|"%$0$'5J1="4(*05>681VQ !3,-!=8=N 













 



 

 



 



 















V(

Version 2 CSE, IIT Kharagpur

ÁYE Ä !!(+!3:+,9*06/!-(+Q/! T 5>:V8U(13"78H!9(*0,-!=8AS@ T Q/*01VQD6 Î 135>,-./$0!(!#8f(:V"%6 8,-*v((*06/? Î *0* pAB5%LR:!#"%$'&)(+*',-!-,-!=8+8">?>!9I/6 EJ!=: !#">1VQ5%L‹(Q/!p( T 5iA<"%6 E T *2ES(+Qb">$'$05J13"%(*05>6b81VQ/!=,-!=8=N ÁM!#Ä !!(+!3:+,9*06/!(+Q/! T 5>:V8U(`1=">8!_(*0,9!A^@ T Q/*21VQ-6 Î 157,-./$'!3(!#8z(:V"%6 8,-*v((*06/? Î *0* pA95%Lk6/576J&c:+!=">$v&c(*0,-!R,9!#88+"%?7!RI/6 EJ!=: !#">1VQ5%L‹(Q/!p( T 5iA<"%6 E T *2ES(+Qb">$'$05J13"%(*05>6b81VQ/!=,-!=8=N = NÌs5>6 8*2EJ!3:"-13">$'!=6 E/"%:&‡A ">8!=Eg:!#8H!=:Z4"4(+*'576g./:+5%(+5J15>$C(+5-(:V"%6 8,-*v(:+!="%$'&c(*0,9!p,-!=8+8+"%?>!#8_54Z>!3:R"h157$'$0*28H*05>6J&‡A "78H!#Eh6/!( T 5>:+xy­ ÁY"^Äg‚j{S. $0">*'6qQ 5 T (+:+">6 8,9*28+8H*05>6o5>Ls">8@S6 1VQ/:+5>6/57I 8,-!=8+8">?>!#8AS@6 5SE/!=8f13"%6rA6/57I 8,-!#88+"%?7!=8 Q "[Z7!p./:57A "%A *'$0*08H(*21f"%:+:*0Z4"%$C(*0,-!=8">6 EbEJ5-6/5%(Q "[Z7!f">[email protected]!=13*vW*'6 T *'(QK. :57.85>6 *'6/?(+Q/!;([email protected]!=85>L(:V"4ˆ;138LM5>: T Q *01VQF"r13"%$0!36<E/"%:&cA<">8!=EB./:5>(5J157$ T 5>I/$2EP.C!3:LM5>:+, 8+"4(+*08HLY">1(5>:+*0$'@;">6 E(Q/!p([email protected]!=8_LM5>: T Q *01VQb*'( T *'$0$|6/5>(=N : NORQ/!A ">6 E T *2ES(Qg5%L«"./:+*05>:+*v(U@^&‡A ">8!=EX(57x>!36h:+*06/?6/!3( T 57:xÁM†U‚`‚s‚ , *^ÃJN (>ċ*28 Î */*/5qA/. 8=N‹u88I/,-!(Q<"4(`(+Q/!. :57. "%?^"4(*05>6 (*0,-!B5>L(Q/!D6/!( T 5>:+x‰*08 Î *K,9*0$0$'*aŠS!=135>6 E 83N !!(!=:,-*06/!B(Q/!BLM:+"71e(+*'5765%LA ">6 E T *2ES(Q T "78U(+!=EE/I/:*06/?G!3Z>!=:@‰LM:V"%,-! (:V"%6 8,-*08+8*'576|l T Q !36;(+Q/!fLM:+">,-!f8*'m=!*28à _. 8pÁDp*0$05 _@^(!#8`.C!3:8!=135>6 E Ä 6 E/!3: T Q "%(R135>6 EJ*'(*05>6<8 T 5>I/$2Eh(+Q/! T "78U(+!=E A "%6<E T *0EJ(QbA$v&c(*0,-!p135>,-,XI 6/*01="4(+*'576 8R*'6b. "71Vx>!3(H&w8 T *'(+1VQ/!#Eg6 !( T 5>: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T *2ES(Q T 5>I/$2Eo"hAC5>I/6<EJ!=Eo"7131!#88./:5>(5J157$|.C!3:LM5>:+,€AC!(H(+!3: Fª‚]{J./$2"%*06b@>57I/: "%6 8 T !3:#N Î ÃJNÌs5>6 8*2EJ!3:" Î */5oA/.<8p(57x>!36P:+*'6 ?6 !( T 5>:+xCNORQ/! T "%$0xo(*0,-!;*08 Î ,;ŠS!=1>NORQ/!-LM:V"%,-!;8*'m=!h*08 ( Î ÃgAS@^(!#83N !!3(!=:,-*06/! (Q/!,h"4{J*',iI/, (*0,9!LM5>: T Q/*21VQF"o,-!=8+8">?>!h,h"[@PI/6 EJ!=:?75o./:+*'57:*'(U@B*06SZ>!=:+8*'576PI/6 EJ!=:i†U‚s‚`‚ , *^ÃJN $q"%6 EK†U‚`‚`‚ , *7Ã/N ( ./:+5%(5J135>$283N Î-V N›ÁY"^Ä;†UEJ!=6^(*'LM@-"%(s$0!="78U(s( T 5LY"71e(+5>:V8 T Q/*21VQg15767(+:*0A/IJ(+!(+5XEJ!3$2"[@ U*v((!3:R*06;:+!="%$'&c(*0,9!15>,-,iI/6/*213"4(+*'576 8`">6 E-!{J./$2"%*06;Q/5 T (+Q/!3@13"%I<8H! U*'(H(!=:=N ÁMA<Ä} Q "%(f*28(Q/!-EJ*'dC!=:!=6 1!iA6o(+*',-!-"%6 Er:!#8H.C5>6<8H!(+*',-!95%Ls";(+"78Hx F‰†w6 T Q "%(p13*':V1I ,-8H(+">6 1!#81="%6 (+Q/!3@A






























V/=

Version 2 CSE, IIT Kharagpur

Î $ NÌs5>6 8*2EJ!3:(Q/!iI 8H!i5%L](+*',-!=Eo(5>x7!36q. :5>(5J157$`ÁM†U‚s‚`‚ , *7ÃJN $^Ä*'6o(+Q/!LM57$'$05 T *06/?g8*v(+I "4(+*'576|N}D!XQ "[Z7!LM5>I :6/5JEJ!#8*06q(+Q/! 8H@J8H(!=,NzORQ/!:+!=">$v&c(*0,-!_:+!=~^I/*0:+!3,-!36^(]*08](Q "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05>6P8HI<1VQP"78pLY">1(57:@r">IJ(57,h"4(*05>96 F >I<8U(+*vLM@;@75>I/:">6 8 T !=:=Nz‚jZ4"%$0I "%(!f(Q/!. :5^8_">6 Eb1576 8R5%L‹I 8H*06/?;">6‚j(Q/!=:6/!3(H&‡A ">8!=Eg./:+5%(5J135>$k*06b8I 1VQb"%6b"%./. $'*213"%(*05>6|N Ã/*/NŠSI/?7?>!=8H(g"K8+1VQ/!3,-!b(+Q "4(b13"%6 Q !3$0. Q "%6 E/$'!r">.:V">EJ*21b,-!=8+8">?>!=8-*06"ª:+!=8!3:+Z4"4(*05>6ºÁ)13"%$0!36<E/"%:&cA<">8!=E Ä ./:+5%(5J135>$ T *v(+Q/5>I/(,-">xS*'6/?-,h" U57:1VQ "%6/?7!=8s(5-(+Q/!./:+5%(+5S135>$cN à ΠNR†UEJ!36^(+*vLM@(Q/!LY">1e(+5>:V8 T Q/*21VQq15>6^(+:*0A/IJ(+!p(5gEJ!=$0"[@ U*v((!3:f*06o:!#"%$'&)(+*',-!157,9,iI/6/*213"%(*05>6 8=Nsu88I/,-!(Q<"4("h13!3:(+"%*06b:!#"%$'& (*0,-!9">././$0*01="4(*05>6r:!#1!3*0Z>!#8E/"%(+""4((Q/!9:+"%(!i5%L Î */5oA/.<83NORQ/! T 5^Šb?7I "%:V"%6^(+!3!(+5;(Q !9">././$0*01="4(*05>6B.,-./I/(!p(Q !A/IJdy!3::+!=~^I/*0:!=,-!36^(R"%((Q/!:+!=13!3*0Z>!=:=N 

















$ (%

$

%



























V:

Version 2 CSE, IIT Kharagpur

Ã7ÃJN‚]{J./$2"%*06 T QS@(+:+"%ˆh1_?7!(+8]E/*08H(57:H(+!=Ei*'6h"f,XI/$'(*28!3?>,-!=67(]6/!3( T 57:x">6 EiQ/5 T (+:+"%ˆh1_:+!=8Q "%. *'6/?f*28]">1VQ/*0!3Z7!=EXLM5>:z./:+54Z^*2EJ*06/? T 5^Š;?>I ">:+">67(+!3!7N à V NÌs5>,-.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,XI/$'(*0./$0*01="4(+*'Z7!>lk"%6 EB1576 13"[Z7!X1576J& 8U(+:+">*'6^(V8(+Q "4(X">:!96/57:,h"%$0$0@r1576 8H*2EJ!=:!#Eq*06 T 5SŠq:+5>I/(*06/?o81VQ/!=,-!=8=N-‚j{J./$0">*'6BQ/5 T (+Q/!=8!-LM!="%(I/:+!=8">:!-1576 8*0EJ!=:!#Er*06 T 5^Š;:57IJ(*06/?-./:+5%(5J135>$283N V Î N‚]{J./$2"%*06g(+Q/!XEJ*'dy!3:+!36 13!A6 E.<57$'*21*06/?6 Eb.<57$'*21*06/?h./:+5%(+5J15>$|">6 E A/:+*'!  @gEJ!#813:*0A6|N V ÃJNR} Q "4(*08"h135>6^(:+5>$0$0!3:"%:+!="96/!3( T 57:xBÁcÌ_u¿fÄ F9‚]{J./$2"%*06o"h:+!="%$'&c(*0,9!135>,-,XI/6 *01="4(*05>6b./:+5%(+5J15>$|(Q "%(13">6AC!I 8!=Eb*06o" Ì_u¿XN š›•™>• ]•£b¤•– 8 Î < u8HQ 5>x;u?^"%: T ">$0"iu:VE/">8Ìs*0$'*06/?7*':+5>?7$'I|l/ŠSI 6/?h¾|!3!7N]!=">$v&c(*0,-!p135>,-,XI 6/*01="4(+*'576| X5O`# LO !" CO% *'&1T  33T F,  !" ;! *1 !6 I 

`T F,P#%"'^=#N O4l 7

`">!6S"I &'"%

:+^.@ -1Î ,.0. : #N "'^ # O' &'C

3 ,!" 8 à < ŠJQ/*'?^"%6/?ÌsQ/!=6-">6 E p$0">:+"f¿">Q/:V8U(+!=ES(#N u6h54Z7!3:+Z^*0! T 5>Ly~^I ">$'*'(U@^&c5>La&‡8!3:+ZS*013!`:+5>IJ(+*'6 ?LM57:z(Q/!6 !{S(j?>!=6/!3:V"4(+*'576XQ/*0?>QJ&w8.:+xS8=­ `:5hA $'!=,-8f"%6<Eo8H57$'IJ(+*'576 8= N    (!G "$0 /1 *#&&'7 "L# &' )&& *% # ON )&'C"' *b1 * -,f [Q/

3#% I *O/4l<¿54ZyN + !!#1%N -Î ././, N 8 V< !iN>}P"%*'(m=,h"%6gÌN ]">:H(+:*2EJ?>!ŠyN !!=!3:+*'6/?<N !*08H(+">6 1!Z>!=1(57:],XI/$'(*213"78U(j:+5>IJ(+*'6 ?./:5>(5J157$)N !#"6$N1CG %"$0% "$0%

AQ & "$% a6 3#% R,!"LO'I a

`\1"&'

C^4lC¿54Z7!3,XAC!3: -Î ./,/, N 8 $ < uXN¬!3$0,X@ !XNzn ">:*06 ">1=1*j!3(=N‹"%$cN `:5>(5J157$]*'6<EJ!3.C!36 E/!36^(i,iI/$v(+*01=">8H(H&w8H.<"%:V8H!-,-5JEJ!rÁM. *',9&w8H,;Äe­ `:5>(5J157$)( N )+*+,-)/6  #%33QA"'^./ 9!!"'

! a3#% l 7I/6/! -Î ././, N 8 ( < ŠkN  N 6 5>$0!=8H(+">6/*cNFu˜8U(+5>.J&w"%6 EJ&c?75B~^I/!3I *'6/?BLM:V"%,-! T 5>:+xDLM5>:h1576/?>!#8U(+*'576K,h"%6 ">?>!3,-!=67(#N 0 & 212(43 5 a^&

(6  %(   *# * &5X5"$L

31C"LN# O76K"LR 686 Z

 #/O/1 Z *#\626;XlJ. "%?7!=8 ,:9C1Î , l/ŠS!3.J(+!3,iA


















V/,

Version 2 CSE, IIT Kharagpur

†eN *06/*'5>(*28;¬NRŠJ"%$2"%,h" l !iN`!=!3Z>!#8h"%6 EÍOpNRŠSQ/!3I«N…Ìs5>,-. ">:*28H576G5>Lf,iI/$'(*213">8H(;:+5>IJ(+*'6/?ª">$'?75>:+*v(+Q/,h89LM5>:hQ/*0?>QJ&w8.:+xS8=N   aL  *#%"'*6   R )+5:T 5*%l Î1./. $ N uXN!!3,-!=:+8RŠyN.p!=8Q "[Zi">6 EgŠyN/ŠSQ !36/x7!3:#N|u6 ">$'@J8*08s"%6 E;8*0,XI/$2"4(+*'576;5%L«"LY"%*0:s~^I/!3I *'6/?9"%$0?>57:*'(Q/,bN 6K"LRO

AQ%&_F, X7  ! & 12  3 56 X5Z&'

 l/. ">?>!#8 Î 9CÎ ÃJlJŠS!3./(!3,iA6 E CQ/!=6/? T N Š^(V"4(*28H(*213"%$:!#"%$'&)(+*',-!o157,-,XI/6/*213"%(*05>6Í54Z>!=:h!(+Q/!3:+6/!(hLM57:;,h"%6SIJLY"71e(I :*06/? ">IJT (57,h"4(*05>6b8@S8H(!=,h83N 6K"$ LO

ZQ&7-,   45# R

 aL %=$Q/^ # O7XH: *#%C *% & ^ \&'

9l . ">?>!=8 -Î . Ã 9 Ã *^ÃJl -Î ./.0. N ^"%,-!#8n_9N pI :5^8H!X">6 E p!3*'(Qr}ºNy578+83N  % 31"(!G "$0%

AQ CX  O/G MXK/"$R#:LJN z!="%:V85>6b‚`EJI 1="4(+*'576qu8*0" l /à */*^ÃJN -N 6 1N T !35>6«l7ŠyN -N>ŠSQ/*06;"%6 Ei}B57:xS,h"%6 6 N!_(:V"4ˆ;1 8,-5S5%(Q *'6/?<N 6K"$ RT,\4   5# R

fZ %=LQ%^c# O XH/ *# * & a^\&'

 2 f:X 23 )+.'< 6/% #\&$

AQ/3% (T  T=6 Xl^.<"%?>!#8 . * 9CÎ *0*/l V/Î 5q"[@h&_Ã 7I/6/!Ã *0*/* N ¿XKN 5q"%$2157$', ">6 EB}ºN CQ "%5:+Er:!#"%$'&)(+*',-!-157,9,iI/6/*213"%(*05>6r*06D,XI/$'(*0./$0!;">1313!=8+86 !( T 5>:+xS8=N "' # -, 5L#% R

7 ^\&'31N&el ]57$)N . ­ : ( 9yÎ * : l -Î ./. (/N 

AQ & "$ 66K"LL% !  T0l 5q">:+1VQ 1Î ./. $ N ŠkN<ŠSQ/!=6/x>!=:ÌN ]"%:(:+*0EJ?7!">6 EbN 6 I/!=:*06|NjŠS.C!=1*'W<1="4(*05>6b5>L‹?7I "%:V"%6^(!=!=E;~^I ">$'*'(U@;5>Lz8!3:+ZS*013!>N  ).)0:)7lyŠS!=.J(=N 1Î ./. : N iN zN p57,-.ÌN ]"78~^I ">$'!s"%6 E 6 N%ÌN z57$'@Sm=578=0N 5oI/$'(*213"78U(z:+5>IJ(+*'6/?LM5>:‹,XI/$'(*0,-!=EJ*2"p157,9,iI/6/*213"%(*05>6|!N    X7  "$#% &1#/1C *% &N (N1CG %"$0

ZQ%l ]5>$cN Î Á)¿5 N V Äe­ à ,0=-9 à . Ã/l 7I/6/! 1Î .0./V N !3(=N ">$)N ŠkN _$0">x>! !XN _$2">1V%x 5KNCÌ_"%:+$085>6«N‹u6b">:+1VQ *v(+!=1e(+I/:+!LM57:EJ*vdy!3:+!36^(+*0"%(!=Eb8!3:+ZS*013!=8=N   ) -"4l !!#1%N -Î ./.0, N ¾`N yQ "%6/?ŠyN !!=!3:+*'6/? !XNk‚`8H(:+*06rŠyN|ŠSQ/!36 x>!3:f"%6 E !XN y">./. "%$2"/N8HZS.|­u 6/! T :!#8H57I/:+13!:!#8H!=:Z4"%(*05>6o./:+5%(+5S135>$c N    (!G "$0 #1QA# 1

3lCŠJ!3.J(+!3,XAC!3: 1Î ./.0V N u6 EJ:+! T ŠyN O‹"%6/!=6^A<"%I/,bN  !"(!G "$0&eN j:+!36^(*21!p¬">$'$«5%L†w6<EJ*0" l 1Î .0. : ÁYORQ/*0:VE‚sEJ*v(+*'576<ÄeN ÌN ]!36/x4"4(+:+">,h"%6/*">6 EÍOpN_ŠyNÌsQ/*0I/!3Q|N ŠSI/./.C5>:(*06/?K:+!=">$v&c(*0,-!(:V"4ˆ;1b5>6Í!(+Q/!3:+6/!3(=N 6K"$ RT "4    5L#% R

7 ^\&'31N& a^\&'

il . "%?7!=8Ã , Ã 9 Ã ,/= l -Î ./. $6 EBÌsQ ">5%& >Io¬5>I|Nfu 8I/:Z7!3@5>6q,iI/$'(*213">8H(:+5>IJ(+*'6 ?g"%6 Eq*v(V8~^578!{S(!=6 8*'576|­R./:57A/$0!3,h83ly"%$0?>57:*'(Q ,-8=l<">6 E . :5>(5J157$08=8N    N1CG %"$0 #1QA# 1

l ]5>$cN Î $CÁY¿5:@à */*0*/N ¬I/6/?>& f*'6/?qOs@7">6ªÌsQ<"%5%& 7ID¬5>I _*'6ª}P"%6 ?q"%6 E `"%5>& 5q*'6FÌsQ/!=6|N T 5^8p!{S(!=6 8*'576B(+5r1A/(=N    X7  "L# &1T % (!G "$0%

AQ>l 7I/$0@à *0*7ÃJN zN }P"%6/?;">6 E  NkÌs:5 T 1:+5%La(#N T 5^8:+5>IJ(+*'6/?-LM57:8I/./.C5>:(*06/?;:+!=85>I/:V1!p:+!=8!3:+Z4"4(*05>6«N    Z%"' #% -, %! *#%;X5"$#&(-,  %(   *# * I/$ zN/} Q/*'(!7Nj8HZS.o"%6<Eg*06^(!3?7:+"%(!#E8!3:+ZS*013!=8_*'6(+Q/!*'6^(+!3:+6/!(#­juÀ(+IJ(57:*2"%$cN      ( a *# * &el 5q"[@ 1Î .0. : N 6b5%L‹(Q !15>6^(+:57$'$0!=ES&‡$057">E;6/!( T 5>:+xh!3$0!3,-!36^(8!3:+ZS*013!>N  ).)0.%lyŠS!=.J(=N 1Î ./. : N !iN ]!3:+,-"X¬N CQ "%6 ?X"%6 E !XNSn/!=::V"%:+*)N 6 I ">:+">6^(!3!=*'6 ?EJ!3$2"[@ U*'(H(+!3:_A<57I/6 E/8s*06;. ">1Vx7!(`8 T *v(V1VQ/*06/?X6/!3( T 57:xJ8= N 6?"$RO

ZQ& F,."' *%('3 56  #1 f

  6 ("'4' #"$%

#%l . ">?>!#8 V ( 9 $ = l^u./:*0$ -Î ././Î N ¬XN yQ "%6/?:?7I "%:V"%6^(+!3!=E.C!3:LM5>:+,h"%6 13!8H!=:ZS*21!*06q. "71Vx>!(8 T *'(+1VQ/*06/?;6/!3( T 57:xJ8=N 6K"$ LO

ZQ&7-, 4   _l ]57$)N , (/Á Î *7Äl \f1e(57A6 E !XNyn/!=::V"%:+*cNs"%(!&w1576^(:+5>$«8H(+"%(*21e&‡./:*05>:+*'(U@g~^I/!3I/*06/?

ZQ& F,       121243 5.*%6 ;# ;"L# 1 )&1\6 Xpl . "%?7!=8Ã>Ã : 9 Ã V/= l 1Î .0./V N

8 =<



8 :;<







8 ,<











8 .<



8 Î1.< 8 Ã* < 8Ã Î < 8 Ã>Ã < 8 Ã V< 8 Ã$ < 8 Ã/( < 8 Ã =<













8Î Ã <

8 Î;:;< 8 Î1,<





8 Î>Î <

8Î ( < 8 Î1=<





8Î * <

8 Î1V< 8Î $ <



















































































V/.

Version 2 CSE, IIT Kharagpur



   "!$#%&('*),+.-/#021314&5+7682),+.94:3#8#<;=),9>:?)$9!$#@&.!,AB#02-/9C4B)D:E9FG;3H)DI24;13!,9J68#%:$:),K4#%:,#L;32)$/FM9B!E),K4#8+.!:,C46868#%:$:?FMC4&9B1J' #%!$2),+.9ONQP CR6DKS:T),9B!,+.3A!$#%UVC3+.!$#8-/#8V)$:L9J6868C3!/WK3#8SX689V),!$9&.&5+.3AY:TJ:T),#8-4#8#%;4:0)$9-/+5V)D2+.Z2ZC31J)$9 ;4H),#=:T)$H)$#"9F)$K3# 689V),!$9&.&5#<;:TJ:T),#8-=N[ FM#8W#8\J-/13&5#<:]9F:TC46DK^:,J:?)$#8-_:]+.468&5C4;3#"4# )?W`9!$a-_24A#%-b#%V)0:TJ:T),#8-=cd+54;3C4:?)$!,+72&`6 9BB)$!,9B& :,J:?)$#8-=c4;XYCJ),9B13+.&59)@:,J:?)$#8-=N_efK3#%3#8gB#8!]:T),9!$+.3A>4;X13!,9J68#%:$:T+.3A>&.!,AB#/-/9C3V)$:9Fh;32)$>+7:i!,#;4H)$k4:,# -_2R2A#%-/#8V)l:,J:?)$#8-m+7:lC4:T#<;jNonhK3#4#8#%;0FM9!p;3H)D2k4B:T#-_24A#8-/#%B)p:, :T),#%-qFM9!p:T),9!D2AB#G2R;013!$9J6 #<:,:,+54A92FR&.!,AB#Gg9B&5C4-b#<: 9Fl;32)$/24;r),K4#kR:,+.6+7:,:,C3#%:h+.>!,#%&.2),+.94&s;4H)$k4:,#-/42AB#8-/#8V):TJ:T),#%-/:@tvuEwx`XP3y`K4zg#k{#8#8=13!$92FMCR:T#%&5I;J+7:$6 C4:$:T#<;r+. :T)$4;32!D;b;3H)D2k4B:T#h&.+()$#8!DH),C4!,#:,C46DK_:E|5}2cB~3cH€R4;bW#EB:,:,C3-/#`),K42)p),K3#!,#<;J#%!l+7:&5!$#%B;J@F2-/+.&5+72!pW+5),K/)$K3#%:,#+7:,:,C3#%:%NonhK3# FM9J6 CR:92Fs)$K3+.:`6DK41J),#%!+.:G!,#<2&5'v)$+5-/#;4H)$k4:,#-_24A#%-b#%V)G:TJ:T),#8-_:tuonwxhP4yo),KRH)`!,#CR:T#<;/+5I;32)$@+.V),#%4:T+.g#!,#<2&5'v)$+5-/# 1313&.+.6%H),+.9R:8c3:,C46DK=:h3#8)?W9B!,a_-_2R2A#%-/#8V)E:TJ:T),#8-_:%cJ+5R;JC4:T),!$+.&O6 9V)$!,9B&s:,J:?)$#8-_:%c42CJ)$913+.&.92)E:TJ:T),#%-/:%cJ# )D62N [:p),!D;3+()$+59B42&{;3H)D2k4B:T#E:,J:?)$#8-_:;394cV!,#<2&5'v)$+5-/#E;32)$2kR:,#:TJ:T),#%-/:2&7:T9]:,#8!$g#:!$#81{9B:,+5),9!$+.#%:o92FO&72!$A#gB9&.C3-/#%:G92F‚;32)$ 4;Y13!,9Hg +7;J#/# ƒI6 +.#8V)0:T),9B!$A#cj!$# )$!,+.#8gH&vcl24;Y-_23+.13C3&7H)$+59B92F;3H)D3NI„E9HW`#8gB#8!!,#<2&5'v)$+5-/#i;3H)D2k4B:T#<:8N ‡Eˆ<‰Š‹Œ(hŽJŒ {‰.‰z‘8‰8’p“2‰8”v•‰%‰2h‹`‘8–3<—<‰%”$Œ –4z‹V˜™ŽV‹<”T‹V“z‹z’,‰G‹VzŽ‹.‰<‹V˜ šv”$Œ(Š‰GŽB‹<”T‹V“H‹z’T‰E˜ Œ ‰`Œ(”™ˆz‰p”?‰Š]›2– 7‹V˜ ‘2ˆz‹7‹H‘ š ”?‰MŒ ’T”$Œ ‘ ’G–œj”™ˆ<‰’?”?– 7‰%ŽLŽB‹<”T‹J”$Œ(ŠiŒ(zž0‘ –4<’T”™7‹Œ(<”?’`Œ(Š]›2–B’T‰%ŽL–3”™ˆ<‰ŽB‹<”T‹V“H‹z’T‰–3›2‰2Ÿ‹<”$Œ –3z’%V‹VHŽ]”™ˆz‰@›2‰2.œM– *Š‹Vz‘8‰ žB–B‹V˜ ’%  eY#h#8&72k{9!DH),#),K4#%:,#`+7:$:TC3#<:l+5L),K3+7:6DK41J),#%!%N¡¢)pW9BC3&.;Lk{#%6 9B-/#h68&5#<2!),K42)p),K3#<:T#h+7:,:,C3#<:-_a#h;J#%:,+5ABb4;b;J#8gB#8&.913-/#8V)o92F /:$H),+7:TF6™)$9!$/!,#<2&5'v)$+5-/#@;3H)D2k4B:T#i21413&5+7682),+.9"-0C46DK>-/9!$#i;3+(ƒI6 C4&()4;"689-/13&.+.6%H)$#%;>6 9-/14!,#<;_)$9L)$!$B;J+5),+.94&s;4H)$k4:,# 1313&.+.6%H),+.9‚N nhK3+7:06DKR21J)$#8!0KR:LkR#%#8^9B!,AV23+.£8#<;YB:]FM9B&5&.9HWE:%N¤eX#"¥4!D:?)0k4!,+.# ¦4#8\J-/+53#"¤FM#8W 1313&.+.6%H)$+59B4:]3#%#%;J+.3AY:TC3141R9B!T)b92FE !$#%&('*),+.-/#E;3H)D2k4B:T#BN§E#8\ )%cVW#!$#8g +.#8W¨:T9B-b#9Fs),K3#EkR:,+.6689468#81J)D:+./),!D;J+5),+.94&3;3H)D2k4B:T#h)$#%6DK34+.UVC3#)$K4H)`2!$#`!$#8&.#8gHB)p)$9 )$K3#];J+7:,68C4:,:,+.94:`+.r)$K3+.:©KR21J)$#8!+5>!$#%2&5'*),+.-b#@;32)$k4:,#%:%N « ¬®­"¯]°²±¤³ ´¶µ·±¤±¤³8¸8¹¯ºo¸8»L¼=½¾»0¿®À´E¯]³D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32)$2kR:,#G)$9]6DK3+.#8gB#h:,9-/#hK3+.AKJ'¢&.#8g#%& FMC346 ),+.9/92F{),K3#E1313&.+.6%H)$+59BONl[f;4H)$k4:,#`),!D24:$6 ),+.90),!D24:TFM9!$-_:p;4H)$k4:,# FM!$9- 9B3#]6 9B4:,+.:T),#%B)E:T)$2),#i),9_392)$K3#8!),K4#I;3H)D2k4B:T#/68X!$#8-_2!$aH2k3&.¤+.-b14!,9HgB#0)$K3#/),K3!$9C4AK313C3)@4; !$#%:,9C3!D6 #CJ),+.&.+5£<H),+.9>92F‚),K3#];32)$k4:,#NonhK3#8!$# FM9B!,#Bc 93#+5-/1{9!,)$B)E+5-+.r)$K3#@;J#%:,+.A>92F;32)$k4:,#:,J:?)$#8-_:`+.:`)$9L-_2\ +.-/+5£%# )$K3#iVC4-0k{#8!92F),!D24:$6 ),+.94:G),KRH)E68rk{#]6™)$+5gB#2)E])$+5-/#N[É14!T)$+.68C3&72!:T#59@4NM>&HOPQ>8N¤„E9HW`#8g#%!%c6 9R6 C3!$!,#%V)i#8\J#%6 C3),+.992Fh),!D2R:,B6™),+.9R:@682&.#%B;)$9:T9B-/#I;3H)D2k4B:T#I:$6DK3#%;3C3&5#<: ~

Version 2 CSE, IIT Kharagpur

)$K4H)0g +.9&7H)$#_+5V),#%A!$+()?X92Fh),K4#r;3H)D2k4B:T#BN>wC3#r),9=),K4#r1{9B:$:T+.k3+.&5+5)?9Fhg +.9&7H)$+59BY9F+5V),#%A!$+()?Bcl;4H)$k4:,#%:i49!$-/&5&.!$#%:T),!$+76™) 689468C3!,!$#8V)h# \J#%68CJ),+.9=9F‚),!D2R:,B6™),+.9R:G)$K3!$9C3ABKr)$K3#@C4:,#9F-4&687A4@OC;CF> 7 4 B54&687= CF6P CF6=J6 4&68P 9 ©9B46 C3!$!$#8468X6 9BV),!$9&G14!,9),9J6 9B&.:0-/+5V)D2+.d),K3#"+5V)$#8A!$+5)?X9F),K3#=;3H)Dk !,#B:[©¡?w 13!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2!$#6%2&.&5#<;I)$#8-/1R9B!$& ;32)$b9!1{#8!$+7:TK4k3&.#i;4H)$4NpÖp\32-/13&.#%:h9Fl:,C46DK¤;3H)DL+.468&5C4;3#i),K3#iFM9B&5&.9HW+54A4N ©94:,+7;J#8!0),K3#>1R#%!,+.9J;J+76r;32)$AB#83#%!$2),#<;kVd),#8-/1{#8!DH)$C3!,#>:T#%4:,9!:T#%4:,9!])$!$4:,-b+5)$:b:$2-/13&.#%; ),#%-b1{#8!DH)$C3!$#;3H)DX1{#8!$+.9 ;3+.6%2&.&5Q),9),K4#6 9BB)$!,9B&5&.#8!








































Version 2 CSE, IIT Kharagpur

©94:,+7;J#8!),K3#_689V),!$9&.&5#%!9Fr¦4V'*k V'*W+.!$#L2+.!D6 !DHFŸ)%NLnhK3#0¦RB'¢k V'*W+.!,#b2+.!$68!$2FŸ)+7:# \J1{#%6™)$#%;),9"),!Dzg#%&l&59B3A>"13!$#%;J#8' ),#%!,-/+.3#%;¤1RH),K‚NiÖGg#%!,rFM#8Wm-/+.&5&.+.:,#%6894;4:8c{),K4#b689V),!$9&.&5#%!E!$#%6 #%+5gB#%:E),K3#/6 C3!$!$#8V)&()$+()$C4;J#csgB#8&.9 68+()?Bcj24;B6868#8&.#8!DH),+.9 ;3H)DLFM!,9B-ÙgH2!$+.9C4::,#84:,9!D:h-/9C3V)$#%;>9>),K4#02+.!$68!$2FŸ)%NGª4!,9B- )$K3#]!$#%6 #%+5gB#%;>;3H)D_24;")$K3#]&7:T)6 9-/13C3),#%;=1{9B:,+5),+.9=92F ),K3#2+.!$68!$2FŸ)%c+5)689-/13CJ)$#%:p)$K3#68C3!,!$#8V)G1{9B:,+5),+.9/92Fj)$K3#2+.!D6 !DHFŸ)G2R;b),K3#;3#8g +.2),+.9_9F{)$K3#+5!D6 !DHFŸ)pFM!$9-Û),K3#13!,#<;J# )$#8!,' -/+53#<;=14H)$KON„#8!$#c4),K3#068C3!$!,#%B)1{9B:,+()$+59BOcR&()$+()$C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&.+.6%H)$+59B¤+.:-0C46DK¤-/9!$#]+.V),!$+.6%H),#i)$K42X;J#%:,+5AB¤92F;32)$2kR:,#%:hFM9B!39BJ'*!$#%&('*),+.-/#@21313&.+5' 6%H),+.9R:8N ‚# )C4:+. g#<:?)$+5AVH),#i)$K3#b!,#<:,94:k{#8K4+54;¤),K3+7:8N¡Ç!,!$#%:,1{#%6™)$+5gB#]92FWK4# ),K4#8!!$#%&('*),+.-/#09B!39)%cs;3H)D2k4B:T#@)$!$4:$6™)$+59B4: K4zgB#I# \ )$#84:,+5gB#";32)$¤!$#%UVC3+.!$#8-/#8V)$:%NXnhK4#8!$# FM9!$#co+.Z6%:,#I92FE!$#%&('*),+.-/#";32)$2kR:,#%:%cl+5F),K4#>;32)$+.:b:?)$9!$#%;+.ZX:T#<6 9R;32!$ :T),9B!$A#c2),K3#;J#8&7z0+.r6%6 #<:,:,+54A)$K3#;4H)$0682_-_a#Ei)$!$4:,B6™)$+59Bb-/+7:,:G+()D:;3#%;3&5+.3#No[E&7:,94cV+()`kR#<6 9-/#<:G2&.-/9B:T)+5-/1{9B:$:T+.k3&.# )$9>14!,#<;J+.6 )@),K3#_!$#%:,1{94:,#b),+.-b#/FM9B!i),!D24:$6 ),+.94:i;JC4#L)$9=),K3#_+.V),!$+.6%H)$#b14!,9),9J6 9B&.:i:,C46DKYB:@6 9B46 C3!$!$#84686 9V)$!,9B&l14!,9),9J6 9B&.:%c 689-/-/+()h13!$92),9J689&7:8c 24;I!,#<6 9Hg#%!,b13!$92)$9 689&7:C4:,#%;I),9L-/+5V)D2+.I),K4#6894:,+.:T),#%46 /9FO),K3#i;32)$2kR:,#NpP #%6894;J&.c !$9&.&RkR6DaJ:G6%2 K4zgB#6%:$68B;J+54AL#8†{#<6™)$:24;=68"+.V),!$9J;JC46 #iC3413!,#<;J+76™)$k3&.#]2-/9C3V)D:9Fo;3#8&7zN ¡Ç¤)$K3#]FB6 #]9Fp),K3#b2k{9Hg#]-/#%B)$+59B3#%;13!,9Bk3&.#8-_:8cR+()i-/+5ABKV)2131{#%!E)$K4H)C4:T#L92FG;32)$k4:,#%:+7:+5-/13!D6 ),+7682&+5K42!D;=!,#<2&5' )$+5-/#I21413&5+7682),+.94:%N/„E9HW`#8g#%!%cO:,#8gB#8!D2&o:T+.&.g#8!@&.+.3#%:i#8\ +7:T)%N_ªl+5!D:?)),K42)+.!$#%2&5'*),+.-b#L21313&.+768H)$+59B4:%c4)$K3#L:,# )92Fp),!D2R:,B6™),+.9R:E2!$#0:,+5-/13&.# 4;X!,#La 39HWXk{# FM9B!,#bK44;Zt#N A4NL1R#%!,+.9J;J+.6/:,#84:,9!C31s;3H)$#),+.-/#N`nhK3#8!$# FM9B!,#BcJ13&.4:`FM9!# †s#%6™)$+5gB#@!,#<:T9BC3!D6 #C4:,A#@68=kR#]-_B;J#),9I6DK4+5#%g# ;J#8),#%!,-/+.3+.:T),+76),!D2R:,B6™),+.9"# \J#%68CJ),+.9R:8N 6 287=:¯ 9p¯@¹`ºl´ 9¸ ½‚ºo¸ ¹½ »L¿ÊÂZ´° ±Y;» 9p¯]³QÄ ¯ºo¯ […)? 13+768&l!$#%&('*),+.-/#_:TJ:T),#8- 6 9R:T+7:?)D:92F`=689V),!$9&.&5#<;:,J:?)$#8- t#8 g +5!$93-/#%B)™y24;Y"689V),!$9&.&.+53A=:, :T),#%- t689-/13CJ)$#8!™y™N/¡Ç 9),K3#%!W9B!$;3:%c ),K4#]6 9V)$!,9B&5&.+54Ab:,J:?)$#8- -_+5V)$+5R:2>+5-_2AB#i92Fl),K3#@#%Vg +.!,9B3-/#8V)h),K3!$9C4AK>1R#%!,+.9J;J+.6i1{9&.&.+53A/9Fo:,#84:,9!E;4H)$4N < )$K3#r9),K3#%!LK44;jcl),K4#r#8 g +.!,9B3-/#8V)0+7:0;J 4-b+76I+.^42),C3!$#r4;a#%#814:L6DK423AB+54A+()D:0:T)$2),#rC4313!$#%;J+76™)D2k3&.NnhK4#";32)$ !$#813!$#%:,#8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  ?N¤nhK3#I!$#8&7H)$+5gB#I6 9B4:T+7:T),#8R6 9Fh),K3#r;4H)$+()$#8-_:]+.),K3#r!,#%&.2),+.g# 6894:,+.:T),#%46 ":T#8)6%2=k{#];J# )$#8!$-b+.3#<;rk rCR:T+.3A p:h#8\J13&.+54#%;"kR#%&59HW@N xh:,#%;r9>),K4#]2k{9Hg#i;J+.:$6 CR:,:,+59B4:%cVW`#]68"49HWÊ;J#8¥43#i),K4#]6 9R;J+()$+59B4:`FM9!Ek4:,9&.CJ),#@2R;r!$#8&7H)$+5gB#gH&5+7;J+5)?r:`FM9B&5&.9HWE: ÑLÍ{Ò M(Ó Í{Ò ¢ÍRÌ oÐ<ÍRÔ ‚Ó<Ï 3DÔ  M&Ó  [ ;3H)Db+()$#8-Ù;>+7:2k4:,9&.CJ)$#8&.IgH2&.+.;jc4+(†Zt Vy ÑLÍ{Ò M(Ó Í{Ò ¢Í4Ì rÏ DÔ JÓ  RϤÑ0Í{ÒlÐ vÐ8Ó<ÏVÒl8Î  `[Ê:,# )hu®9F‚;3H)D0+5),#%-/:+7:!$#8&7H)$+5gB#8&.b6894:,+7:?)$#8V)%c +5† 





















  

 5-, /.0!213,'.4



 "!$#%&' %#()*+-, /.0!213,'.4





&&' 

6-, /.0!213,'.4

789:!

<;

 7=

   >=







?A@B 

C?A@B 





D



E





GFIH<J"J:KL)



D C 8,\  .0!21N,'.4 _&UW? @B 

EXYZ#2X[8\[]^?`_  ,  .0!213,.4 Q

  oÔÏ OÕ +5gB#8I)$#8-/1R9B!$&R;32)$i+5),#%¡?:`)$K3#@A+.g#%>;32)$b+5),#8-¾2k4:,9&.CJ)$#8&.IgH2&.+.; aAb

c d e

fg;

Zk

NM3OPK0QR, /.S!T13,'.4 VUW&' 

t?} D~

8}

h# -=  $O iLKLj$#

%yj24;L)$K3#gH2&.C3#9Fj68C3!$!,#%B)p)$+5-/#B:G~

 $O iLKLj

HN

 -OPiLK"j

=

Version 2 CSE, IIT Kharagpur

‚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8&._gz&5+7;=:@t*~ >~ ?V~ By f~ ª49!!$#8&7H),+.g#i6 9B4:,+.:T),#%46 BcJW#iK4zgB#)$9_6DK3#%6DaIWK4# ),K4#8!h),K4#];J+(†s#8!$#8V);32)$b+5),#8-_:E!,#14+5!,'*W+7:,#i6894:,+7:?)$#8V)%No¡¢)68"k{#@#%B:T+.&. 6DK3#<6Da#<;@),KRH)p),K4#`AB+5gB#8/:T#8)p92F{;4H)$+7:o392)p!$#8&7H)$+5gB#8&.]6 9R:T+7:?)$#8V)%cB:T+.46 #`FM9B!lgB#8&.9J6 +5)?024;b6%6 #%&5#%!$2),+.9 t*~ />~ ?V~ y Ê} 4N aAb

6c





8=



"; "= & 'F =



"; 





"; 

"; 

aAb

gc

$O#$i"$:#



&



F

=



8=

 'F

=

=



"; "=



IQ





:; "= 

"; "=

e







A;  $i M NM")P; =:OR# -=-OPiLK"j:# -OPiLK"j 6K:j'M  ; -=:O iLK"j:# $O iLK"j *FIH JLJ:KL) NMGOPKE;  $O iLK"j 'k 

"; 

 'F

k





=

7?I@B 



8







k



&









-O-i# -== -OPiLK"j:#

+? @B  ; $O iLK"j -OPiLKLj ! jj K" KLJ"( NM")P;
=   &%   IQ -==  &%     IQ -= '%  



-=-= Q

=

)% (





p´¼=¹ 2…»L¼/º9p»L³S¸8¼ À´¯]³$Á{Âø8° ´ Äůºl¯]Æ=¯@½l´E½ Ö6DK;32)$k4:,#])$!$4:,B6™)$+59BC4:,C42&.&5¤+. g9B&5gB#%:6868#%:$:T#<:E)$9>:,#8gB#8!D2&l;3H)Dr+5),#%-/:%cOC4:,+.3A"WK4+.6DKX+()]68!,!$+.#%:9CJ)),K3#/3#<6 #<:,:$2!$ 13!$9J6 #<:,:,+54A4N=ÖG6DKdB686 #<:,:@),9;32)$¤+5),#%-/:])$a#%:06 9R:T+7;J#8!D2k4&5#/)$+5-/#co#<:T1{#%68+.&5&.X+5FE;J+7:Ta6%6 #%:$:,#%:]!,#_+. g9&.g#<;jN=nhK3+.:L6 9BJ' )$!,+.k3CJ)$#%:p)$9@-_2a +54A]n‚!D24:$6 ),+.94:)$9]kR#92Fs&59B3A#%!;JC3!DH),+.9b)$K42I)? 13+768&J)$B:TaL# \J#%68CJ),+.9/+.Ii39J'Ç;32)$2kR:,#h1313&.+.6%H)$+59BON ª49!+.-/13!,9HgB#%;L),K4!,9BC3AK314CJ)%cB+()G+7:GiAB9 9 ;/+7;J#<),90:T)$!T)p)$K3#E# \J#<6 CJ)$+59B_92FO),!D24:$6 ),+.9/::T9 9_B:o),K3#E),!D24:$6 ),+.9bkR#<6 9-/#<: !$#%B;J¤tŸ),KRH)h+.:%cJ6 9R6 C3!$!,#%V),&.b&59B3A]W+5),K>92),K4#8!),!D24:$6 ),+.94:2&.!,#<;JbC34;J#%!#8\J#%6 C3),+.9Ry cJ!$2),K3#%!),KR2r#8\J#%6 C3),+.3A])$K3#8-9B3# 2FŸ),#8!E),K3#]9),K3#%!%Nh©9468C3!,!$#8V)h),!D2R:,B6™),+.9R:H)2 _)$+5-/#0!,#)$K39B:,#@WK3+76DK2!$#iB6™)$+5gB#/t+vN #Nh:T)$2!,),#<;>k3CJ)E39)#8)6 9-/13&.# )$#B6™),+.g#>H)b),K3#¤:$2-/# )$+5-/#Np¡¢)`+.:g#%!,bC33&.+.a#8&.L),9]¥R4;r]689-/-/#8!D6 +72&{;3H)D2k4B:T#)$K4H)h;J9 #%:392)`# \J#%68CJ),#+()D:)$!$4:$6™)$+59B4:689468C3!,!$#8V)$&5BNl„9HW#%g#8!689468C3!,!$#8V)L),!D24:$6 ),+.94:L2!$#r13!$91{#8!$&5d689V),!$9&.&5#<;jco),K4#8d-_z13!,9J;JCR6 #>+54689!$!,#<6™)b!,#<:TC3&5)$:Lk dg +59B&.2),+.3AX:,9-/# [©¡?w…13!$91{#8!,),+.#%:%cs#N A4Ni!,#<:TC4&()i!,#<6 9B!$;J#<;¤k =93#L),!D24:$6 ),+.9¤+7:+5-/-/#%;J+7H)$#8&.¤9Hg#%!,W!$+(),),#%¤kV392)$K3#8!kR#%K3+5R; 4&67 4 OC;CN> 7 4 B 4&67"=DCF68PR+7:),9=#%4:TC4!,#b393'*+.V),#8!,FM#8!$#8R6 #=tM+7:T9B&.2),+.9X4; 2),9-/+76 +5)?3y-/93A_;J+5†{#%!,#%V)`)$!$4:$6™)$+59B4:%N ©9B46 C3!$!$#84686 9BB)$!,9B&2:,6DK4#8-/#%:j49!$-/&5&.#%4:,C3!,#p49J'¢+5V)$#8!,FM#8!$#8468#o-/93Ah)$!$4:,B6™)$+59B4:sk !$#%:T),!$+.6 ),+.3AE6 9B46 C3!$!$#8V)s),!D24:T' B6™),+.9R:),9rkR5# 9 >@C;: EP : EIK P > Ni[Ú689468C3!,!$#8V)E#8\ #<6 CJ)$+59B92FI:,# )92Fo),!D2R:,B6™),+.9R:+.::$2+7;>),9Ik{#L:,#8!$+.&5+.£%k3&.#c3+5†X)$K3#L;4H)$k4:,# 9B1R#%!$2),+.94:6%2!$!,+.#%;"9CJ)Ek r),K3#%- +7:#%UVC3+.gH2&.#8V)),9I:,9-/#]:,#8!$+.&j# \J#%68CJ),+.9=92Fl),K4#%:,#i),!D24:$6 ),+.94:%Np¡Ç¤92)$K3#8!W`9!D;3:%c36 9R6 C3!,' !$#846806 9BV),!$9&V13!,9),9J6 9B&.:o&5&.9HWQ:,#8g#%!$&V),!D24:$6 ),+.94:‚),9@6%6 #<:,:oi;3H)D2k4B:T#h6 9B46 C4!,!$#8V),&.cHk4CJ)&5#<zg#),K3#E;4H)$k4:,#h6 9R:T+7:?)$#8V) k I#%JFM9!D6 +.3A_:T#%!,+72&.+.£%2k4+5&.+()?BN ©9B46 C3!$!$#8468r6 9BB)$!,9B&j13!$92),9J689&7:hC4:TCR2&.&5=;J9B1J)2 "92Fl),K3#@FM9B&5&.9HW+.3A/)?W9/)? 1{#%:92Fp21313!$9BB6DK3#%:%N`©9B46 C3!$!$#8468r6 9BB)$!,9B& 6%2=kR#L6DK3+.#8gB#%;"#8+5),K3#%!Ek ";J+7:,&5&.9HW+.3A_6 #8!,)$+5>)? 1{#%:E9F)$!$4:$6™)$+59B4:`FM!$9- 14!,9BA!$#%:$:T+.3A4c 9B!kV=2&.&.9HW+53A_&5&j)$!$4:$6™)$+59B4: *

2…»L¼=¹

,+

99

-

C

/.



Version 2 CSE, IIT Kharagpur

=

)$9Q13!$9AB!,#<:,:_W+5),K49CJ)=2 ¨!,#<:?)$!,+76™)$+59B4:_+.-b1{9B:,#%;®9f)$K3#8-=c4;¨)$K3#8Ê13!,C43+54AQ:T9B-/#92F@)$K3#)$!$4:$6™)$+59B4:%NÚnhK3#%:,#)?W`9 )? 1{#%:h92Fl6 9R6 C3!$!,#%46 I689V),!$9&{13!$92)$9 689&7:689!$!,#<:T1{9R;/),9/1{#%:$:T+.-/+.:T),+76i24;"91J)$+5-/+7:?)$+.613!$92)$9J6 9&7:%N¡Ç=01{#%:$:,+5-/+7:?)$+.613!$92)$9 689&*c 1{#8!$-/+.:$:T+.9/-LC4:?)kR#E9BkJ)$+54#%;bk Li)$!$4:,B6™)$+59BOc2k{# FM9!$#+5)G1R#%!TFM9B!,-_: 091{#8!DH)$+59BL9BI@;3H)D2k4B:T#h9Bk =?#%6 )%N o#8!$-/+.:$:T+.9R:‚)$9 )$!$4:,B6™)$+59B4:p)$9bB686 #<:,:;3H)D]+5),#%-/:`+7:`!,#<:?)$!,+76™)$#%;_39B!,-_&5&.0)$K3!$9C3ABK_),K3#C4:,#9F‚:T9B-/#&.9 6Da +.3AL:$6DK3#%-b#BN < 1J),+.-/+.:T),+76:$6DK3#%-b#<: 3#%A&.#%6 )h:,C46DKr1{#8!$-/+.:$:,+59B"6 9BV),!$9&7:4;r&5&.9HWf),K4#)$!$4:,B6™)$+59B4:)$9bFM!,#%#8&.I6868#%:$: /;4H)$L+5),#8- ),K3#%I!,#6 9BB)$!,9B&‚13!$92)$9J6 9&7: ;J#<:T+.A4#%;rFM9!!$#%2&5'*),+.-b#@1313&.+.6%H),+.9R:8N 

;+' (- 2  !" 



+.- ' 5

h* 0-&'

+.-3*+.

eY#/¥4!D:?)0;J+7:$6 C4:$:0~8#cO>1{913C3&72!01R#<:,:,+5-/+7:?)$+.6_689468C3!$!,#%46 689V),!$9&o13!$92)$9J6 9&4;X),K3#%# \32-/+.3#_K39HWm)$K3+7:]13!$92)$9 689&pK4B: k{#8#%>#8\ ),#8R;J#%;"FM9!!$#%&('*),+.-/#@21313&.+768H)$+59B4:%N 4Ë  J¡¢)G+7:Gi1{#%:$:,+5-/+7:?)$+.6h13!$92)$9J6 9&3),K42)!,#<:?)$!,+76™)D:o),K3#;J#8AB!,#%#`9Fs689468C3!$!,#%46 ]+.I@;32)$2kR:,#N‚¡Ç/)$K3+7:G:$6DK3#8-/#c),K3##8\J#%6 C3),+.9 9F¤),!D24:$6 ),+.9d6 9B4:T+7:T)$:]9Fh)?W914K4:,#%: bA!$9HW+53A=13KR:,#r24;d:TK3!$+.3a +53A13K4:,#N=¡Çd)$K3#rAB!,9HW+.3A=13K4B:T#Bco&59J6DaJ:]2!$# B68UVC3+.!,#<;dk ^)$!$4:,B6™)$+59B^9Q),K3#¤;J#<:T+.!,#<;^;32)$X+()$#8-_:8N O9J6DaJ:b!,#"!,#%&5#<:,#%;d+.^)$K3#¤:TK4!,+.3a +54A13K4B:T#BN < 468#>X&59J6Da+7: !$#8&.#%B:T#<;Ik "L),!D2R:,B6™),+.9‚cV+5)$::TK3!$+.3a +53A/13KR:,#i:T)$!T)D:8c34;"39bFMC3!T)$K3#8!&59J6DaJ:68"k{#]6%UBC4+5!$#%;rkVr),K3#i)$!$4:$6™)$+59BON [¾:?)$!,+76™)rL~ ®+7:L),K3#=-/9B:T)_6 9-/-/9Z13!$92),9J689&h+5-/13&.#8-/#%B)$#%;Z+5S6 9B-b-/#%!$68+.&h;4H)$k4:,#%:%N^nhK3+7:b13!,9),9J6 9B&+.-/1R9V:T#<:/2 B;3;J+5),+.94&R!$#%:T),!$+.6 ),+.9I9B>L~ +."),K42)h]),!D24:$6 ),+.9r6%2r492)h!,#%&5#<:,#2 _&.9 6Da/C3V)$+5&jHFŸ)$#8!h+5)`)$#8!$-/+542),#<:t+vN #N689-/-/+()D:9B! kR9B!T)D:$y NnhK42)+.:%c4&5&‚B68UVC3+.!,#<;>&59J6DaJ:E2!$#i!,#8),C3!$3#<;"k =b),!D24:$6 ),+.9>93&."2FŸ),#%!),K3#]),!D24:$6 ),+.9"),#8!$-/+5RH),#<:9!6 9-/-/+5)$:%N nhK39BC3AK‚c4)$K3+.::,+5-/13&.+(¥R#%:+5-/13&.#8-/#8V)DH),+.9X92Fp)$K3#013!$92)$9J6 9&*cR":?)$!,+76™)@8~ #d+.:),9 9 $:?)$!,+76™&) !I2R;¤13!$#8g#%V)$:689468C3!$!,#%B)# \J#%68CJ' )$+59B4:iWK3+76DK689C3&7;XK4zg#/#%B:T+.&.¤kR#%#8d2&.&59HW`#%;W+()$K39C3)0682CR:T+.3A¤2 g +.9&7H),+.9X92F6 9B4:T+7:T),#8R6 ¤92F`),K4#I;3H)D2k4B:T#BNb[:T),!$+.6 ) L~ X),K3#%!,#8FM9!$#+.V),!$9J;JC46 #<:h# \ ),!D/;J#8&7zJ:8N nhK3#_689 g#%B)$+59B42&L~ S+.:]C34:$H),+7:TF6™)$9!$=FM9!@!$#%&('*),+.-/#/1313&.+.6%H)$+59B4:FM9!]:,#8gB#8!D2&o!,#<:,94: i1R9V:,:,+.k3+5&.+5)?92Fh13!$+59B!,+5)?¤+53' gB#8!D:T+.94:%c4&.94AIk3&.9 6Da +.3Ar;J#%&.zJ:%cR&76Da>92FG6894:,+7;J#8!DH)$+59B"FM9B!)$+5-/+.3Ar+.JFM9B!,-_H)$+59BOcs24;;3#%;3&59J6DasN[m14!,+.9!$+()?>+.VgB#8!D:T+.9¤6%2 9J6868C3!8~ C4:T+.3Ab2I#8\J-/13&5#BNp©9B4:,+.;J#%!)$K3#FM9B&5&.9HW+.3A0:,#%UVC3#8R6 # 9FoB6™),+.9R:k r)?W9L),!D24:$6 ),+.94 :  2R ;  WK3+76DK"4#8#%;=B686 #<:,:)$9/)?W9_;32)$b+()$#8-_:E;j}@4;";R~JN 







$



 !#"$%!#"$  $ & !#"$%!#"$

[:,:,C3-/#),K42')  K4B:hK3+5ABK3#8!h13!$+.9!$+()?/)$K42(  N  :?)D2!,)$:`!,C433+.3Ab¥4!$:T)E24;r&59J6DaJ:;32)$L+()$#8-Ù;R~JNp[FŸ)$#8!:,9-/#),+.-b#Bc)

&.9J6Da :;j}]24;>)$K3#8=)$!,+.#%:),9I&.9J6Da";4~bWK3+76DK¤+7:kR#%+54AIK3#8&7;=k   Nh[:_6 9B4:T#kV   N§E9HW@c )$K3#i),!D24:$6 ),+.94 :  2R;  2!$#kR9),K¤;J#%B;J&.9 6DaB#%;jN 4Ë  +* Ë o8~ #j'¢1e mtMWh2+5)13!$9-/9),#+5=14:,#8C4;39/689J;J#iFM9!$- :`FM9B&5&.9HWE: $

$

$



>

$



$



,-/.0&13254&6 78!:9)7; .0&1  0 1 9<=$>?9 0)@ !&; @ 9 1 A ! 4#-:, 1 > 2B.0&13254C 6ADAE0&1254$F&6$6 :9 G7A! ,)-H4F G":;I9$G7"$ 0 7$JAK7;9)7:/L< 4 CM-:, 4C=N)@#1 9 ;PO 4FQ1 !G7 0&1 9 ; .0&1  0&1 9 4$C O 7");A7 

Version 2 CSE, IIT Kharagpur

4C=N)@#1 9 ;PO

7A!) 1 >

¡¢)r6%2SkR#¤9Bk4:T#%!,gB#%;QFM!,9B-),K4#14:,#8C4;J9d689 ;3#=),K42)IWK3#8f;3H)D+()$#8- !,#+.3K3#8!$+5)$2R6 #L:$6DK3#%-b#BN„9HW#%g#%!%cR+5X~LO'*e1fC43&5+.a#bI13C4!,#L13!,+.9!$+5)? +.3K3#%!,+5)$46 #0:$6DK3#%-b#BcR+5FG_K3+.AK4#8!E13!$+.9!$+()?"),!D24:$6 ),+.9=+7:2k{9!,),#<;=WK3+.&5#L+()+.:kR#%+53Ark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9V)$!,9B&‚;J9 #%:392)-_a#@C4:,#]92FV>13!$+59B!,+5)?I+.3K3#%!,+5)$46 #BN nhK3#0-/+5689468#81J)E+. g9B&5gB#%;>+5=)$K3+7:E13!$92)$9 689&O+7:)$K3#]#<:?)D2k3&.+.:,K3-/#8V)9Fo_),92)D2&O14!,+.9!$+()?"9!D;J#8!$+.3A_2-/93AI&5&‚),!D24:$6 ),+.94:%N nhK3+7:13!$92)$9J6 9&jB:,:,9J6 +7H),#<:),K3#iFM9B&5&.9HW+54A0)$K3!,#%#@gH2&.C3#%:hW+5),K=#8gB#8!$I;3H)D/9k =?#<6™)]),!D24:$6 ),+.9IW!$+()$#%:G),9/L;4H)$09k =?#<6™)‹H‘%‘ ‰8’,’”?–¤‹IŽV‹<”T‹I–4“ ¢‰%‘ ”iŒ ’iž3Ÿ‹V%”?‰<Ž>”™ˆ<‰b’,‹VŠ‰VŒ œ`‹VHŽ=–3V˜ >Œ œG”™ˆz‰>›2Œ – MŒ ” _–2œG”™ˆz‰ ”™Ÿ‹V<’$‹H‘™”$Œ –4_.‰ z‰8’T”$Œ(<žb”™ˆz‰iŽV‹<”T‹L–3“ *‰%‘ ”Œ ’ˆŒ ž3ˆz‰2j”™ˆH‹V@”™ˆ<‰/7‰%‹HŽšv•MŒ ”?‰@‘8‰zŒ(˜ Œ(zžL–œo‹V˜ ˜ ŽB‹<”T‹0–3“ *‰%‘ ”?’%  





h







h7







Version 2 CSE, IIT Kharagpur

¡¢)E68rk{#@:TK39HWr),K42/) `© Z+.:;J#<;J&.9J6Da/FM!,#%#4;>:T+.3A&.#k3&59J6Da +.3A4Npu#<6 9&.&.#%6™)`),KRH):,+53AB&5#k3&.9J6DaV+.3Ab-/#%2R:G)$K4H)9B46 #i )$!$4:,B6™)$+59B":T)$2!,)$:h#8\J#%6 C3),+.3A_HFŸ),#%!Ek{#8+.3A/k3&59J6DaB#%;jcJ+5)E-_zI392)Ek4&59J6DarAB2+.ON ‚# )C4:h24&5 £%#0FM#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#8V)$: _),!D24:$6 ),+.9"WK3+.6DK>3#%#%;3:h)$9/!,#<;>;rFM!$9-Ù6868#%:$:T+.3A/;jN aAb

c



















% *! '   +.- ' 5

h* 0-&'

+3-.*+3*++

')+.(!

< 1J)$+5-/+7:?)$+.6]©9B46 C3!$!$#8468_©9BB)$!,9B< < ©©hy !$92),9J689&RB:),K3#42-/#i:TC4AA#<:?)D:;39V#<:`392)+."2 _Whz/13!,#%g#%B)h2 b),!D24:$6 ),+.9 FM!$9-·B6868#%:$:T+.3A" ;3H)Dr+5),#%-_:i+()]!$#%UVC3+.!,#<:8Nb„E9HW`#8gB#8!14:$:rgH2&.+.;32),+.9¤)$#%:T)%N@nhK3#bgH2&.+.;32),+.9¤)$#%:T)i6DK4#%6DaJ:EWK3#8),K3#%!)$K3#8!$#b+.:2 ¤6 9BJ¦4+76™)k{# )?W`#8#%)$K3#0gH2&.+5' ;32),+.3A@)$!$4:,B6™)$+59BI24;/9),K3#%!G)$!$4:,B6™)$+59B4:o),KRH)KRzg#E6 9B-/-b+5)T)$#%;":T+.46 #E),K3#gz&5+7;32),+.3A])$!$4:,B6™)$+59B/:T)$!T)$#%;/#8\ #<6 CJ)$+54A4Np[ )$!$4:,B6™)$+59B0+7:p2k{9!,),#%;OcH+(Fs+();J9 #<:o392)p14B:,:),K4#`gH&5+7;3H)$+59B0)$#%:T)%NonhK3+7:oAC4!$B)$#8#<:O)$K3#H),9B-/+.68+()?04;0;3C3!$k3+.&5+5)?]13!$91{#8!,),+.#%:%N P +.468#W!,+5),#<:o9 6%6 C3!p9B3&.0H)6 9B-/-b+5)p),+.-/#c),K3#E:,#8!$+.&5+.£%2),+.9]9B!$;3#8!p+. < ©©d+.:o)$K3#9!D;J#%!l+./WK3+76DK0)$K3#h),!D24:$6 ),+.94:o689-/-/+()689J¦R+.6 )$:2!$#0;J# )$#%6 ),#%;OcR)$K3#8),K3#0),!D24:$6 ),+.9 6%2!$!, +.3AL9BCJ)h),K3#]6DK4#%6DaI+.-/-b#<;J+7H),#%&5>2k{9!,)$:`+5)$:,#8&5Fo4;>!,#<:?)D2!,)$:%N §92),#G),K42))$K3#8!$#`+.:394#8#%;]FM9!o689-/-/+(),),+.3A)$!$4:$6™)$+59B@),96DK3#%6DaFM9B!l689J¦4+76™)D:‚W+5),Kb2&.!,#<;Ji6 9B-/-b+5)T)$#%;0),!D24:$6 ),+.94:%c k{#%6%2C4:,#@+(Fp+5)W`#8!$#+.6 9BJ¦4+76™)W+5),K¤V"92Fo),K4#]6 9-/-/+5)T),#<;>),!D24:$6 ),+.94:%c3+5)EW9BC3&7;"KRzg#]2&.!$#%;3IkR#%#8kR9B!T)$#%;jNGnhK C4:%c4+. < ©©G'ÇxE©Z9468#0),!D24:$6 ),+.9I!$#%B6DK3#%:G+()D:hgH2&.+.;32),+.3A014K4:,#c +5)h+7:`AC4!$V),#8#<;I6 9B-/-b+5),-/#%B)92FL 4&67 : 4@= 9 >@=*N…[Å6 9BJ¦4+76™)¤:T#8)"+7:I)$K3#Y:,# )=92F068C3!$!,#%B)$&5¨!$C333+.3AQ),!D24:$6 ),+.94:I),K42)>6 9BJ¦4+76™)=W+()$K®)$K3#     

,+

6

  "!#  $

&%(')'



:

*





h

.-



/



Version 2 CSE, IIT Kharagpur

gH2&.+7;3H)$+53Ah)$!$4:$6™)$+59BON‚[Y)$!$4:,B6™)$+59B9B46 #p!$#%B6DK3#%:{+5)$:‚gz&5+7;32),+.9@:?)D2AB#c%6DK4#%6DaJ:sFM9!6 93¦4+.6 )$:jW+5),Ki)$K3#G68C3!,!$#8V)$&5E#8\J#%6 C3),+.3A )$!$4:,B6™)$+59B4:8Nl¡¢F689J¦4+76™)D:h2!$#;J# )$#%6 ),#%;>2R;_93#9!`-/9!$#9FO),K3#),!D2R:,B6™),+.9R:+.I),K4#689J¦4+76™):,# )hK4:K3+.AK3#%!13!$+.9!$+()?b),KR2 )$K3#/gz&5+7;32),+.3AI)$!$4:,B6™)$+59BOc{),K3#%)$K3#/gz&5+7;32),+.3AI)$!$4:,B6™)$+59B+.:ikR9B!T)$#%;4;!$#%:T)$!T)$#%;jN < )$K3#8!$W+7:T#Bcs&5&l)$!$4:,B6™)$+59B4:+. )$K3#L689J¦4+76™)i:T#8)!,#0kR9B!T)$#%;4;¤!$#%:T)$!T)$#%;jNE„9HW#%g#8!
%: 0' 5 ( *.



+3



+.- ' 5

h* 0-&'

+.-3*+.

P 1{#%68C3&7H),+.g#E©9R6 C3!$!,#%46 ]©9V)$!,9B&RtvPR©©hy‚14!,9),9J6 9B&2),!$+.#%:‚),99Hg#8!D6 9B-/#-_=?9B!‚W`#%aV4#%:$:O92F4),K3# < ©©X13!$92),9J689&7:8N‚uE#%6 9B&5&.#%6 ) )$K4H) < ©©È13!,9),9J6 9B&.:+5AB39!$#@)$K3#L9J6%6 C3!$!,#%46 #092FG6 9BJ¦4+76™)kR#8)?W#%#8)?W`9_)$!$4:,B6™)$+59B4:EC3V)$+5&l),K4#0gH2&.+.;4H),+.913K4:,#09F93#L92F )$K3#8-=Np[`)),K4+.:o)$+5-/#BcB+5)G-_z02&.!$#%;3]K4zg#k{#%689-/#h),9 9@&7H)$#h),9]6 9B!,!$#%6 )o),K3#E14!,9Bk3&5#%-Úk 0!$#%:T)$!T)$+54A9B3#92F{),K4#),!D24:$6 ),+.94:%c #<:T1{#%68+.&5&._+(Fl),K4#)$!$4:$6™)$+59B4:`K4zg#),+.AKV)E;J#%B;J&.+53#<:8Nn9b9Hg#8!D6 9B-/#E),K4+.:h13!$9k4&5#%->cJ+.¤P4©©c36 9BJ¦4+76™)$:!,#i6DK3#<6Da#%;"H)h#8gB#8!$ !$#%B;Y4;W!$+()$#I91{#8!DH)$+59B4:8N"efK3#84#8g#%!0689J¦4+76™)L+.:L;J# )$#%6™)$#%;jcp=3#%WÃg#8!D:,+59B¨tv68&5&.#%;X),K4#":,K4;J9HWÛg#%!$:,+59BRy92F#<6DK92F )$K3#I6 9BJ¦4+76™),+.3A>),!D2R:,B6™),+.9R:+7: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#8!$# FM9B!,#@2!$#392)Eg +7:T+.k3&.#C4B)$+5&O),K3#i)$!$4:,B6™)$+59B>689-/-/+()D:8N %&  (!"+.-

+   +.- ' 5

h* 0-&'

+.-3*+.   *++

')+.(!

`x # FM9B!,#=W`#¤;J+.:$6 CR:,:/)$K3#¤!$#8&7H),+.g#=1{#8!,FM9!$-_2468#>9F)$K3#;J+5†{#%!,#%V)r68H)$#8AB9!$+5#<:09F13!$92)$9J6 9&7:%cGW`#¤K3+5ABK3&.+5ABKB)I:,9-/#:,1{#%6™)D:/92F 689468C3!,!$#8R6 =6 9V)$!,9B&13!$92)$9J6 9&7:),K42)K4zgB#L:,+5AB3+5¥R68B)kR#<2!$+54AB:9)$K3#8+.!i1R#%!TFM9B!,-_46 #BNinhK4+.:W`9C3&7;K3#%&51XC4:C34;J#%!$:T)$4; )$K3#_!,#<:TC4&()D:i9kJ)D2+.3#%;FM!,9B-·#8\ 1{#8!$+.-b#%V)$:i+.Y14!,9B1R#%!1{#8!D:,1R#<6™),+.g#BN O9J6Da +54A2'¢k4:,#%;&5AB9!$+()$K3-_:),#%4;X),9=!,#<;JC468#L)$K3#I;J#%A!$#8# 9Fp689468C3!$!,#%B)E#8\J#%6 C3),+.9¤92Fp)$!$4:$6™)$+59B4:%c4:h)$K3#8¤6894:T),!$C46™):T#%!,+72&.+5£<2k3&.#@:,6DK4#%;JC3&.#%:%N < =),K4#092)$K3#8!K424;OcR9B1J),+.-/+.:T),+7601J' 13!$9BB6DK3#%:GH)T)$#8-/1J)),9]+.46 !$#%B:T#1R2!D2&.&5#%&5+7:T-Ú),9L+()D:-_H\J+.-0C3-=cVk3CJ)G)$K3#8/13!$C33#:T9B-b#92Fj),K4#),!D24:$6 ),+.94:+5I9B!$;3#8!p)$90:,2),+7:?FM :,#8!$+.&5+.£%k3+.&5+5)?N¡Ç8~ O'¢„ oc3/),!D2R:,B6™),+.9=6 9BC3&7;=kR#]!$#%:T)$!T)$#%;>k cR9!Wh2+5)EFM9!392)$K3#8!E),!D24:$6 ),+.9"),K42)W+.&5&kR#0kR9B!T)$#%; &7H)$#8!+.>ªl+.A4N N.}Np[: 6%2Ik{#+.V),C3+5),+.g#%&5/# \J1{#%6 ),#%;Oc 2)£%#8!$906 9BB)$#8V),+.9‚cV&5&R),K3#),K3!$#8#)? 1R#<:G9FO13!,9),9J6 9B&.:G!,#<:TC4&()G+.r+7;J#%B)$+.6%2&{1R#%!TFM9B!,-_46 #BNlª4!,9Bªl+.A4N JN5}i+5)68"k{#0:,#8#8>)$K4H)2)E&59HWÉ6 93¦4+.6 )$: < ©©®9C3),1{#8!,FM9!$-/:h1{#%:$:,+5-/+7:?)$+.6i13!$92)$9J6 9&7:%N„E9HW`#8g#%!%c 1{#%:$:T+.-/+.:T),+76@13!$92)$9J6 9&7: 1{#8!,FM9!$-×k{# )T)$#8!b:),K4#_&59V;St2R;)$K3#8!$# FM9B!,#b)$K3#I6 9BJ¦4+76™)$:Dyk{#%6 9B-/#_K3+5ABK3#8!


V







Version 2 CSE, IIT Kharagpur

Low Load

High Load

Throughput Pessimistic

Optimistic SCC

ª +.AC4!,#/} o#%!TFM9B!,-_46 #92Flw+5†{#%!,#%B)©`2),#%A9!$+.#%:`92FG©9468C3!$!,#%46 "©9BB)$!,9B& !$92),9J689&7: u#<2&5'v)$+5-/#b;3H)D2k4B:T#<:),K4#8!$# FM9!$#])$#84;),9"kR#/;J#%:,+.A3#<;:+53'*-/#8-/9B!,¤;32)$2kR:,#0:TJ:T),#%-/:%N¡ÇJ'*-/#%-b9B!,¤;32)$k4:,#%:;J9"zWhz W+5),K>;J+.:,a/¡ < #%B)$+5!$#8&.cJ4;/),K4#8+.!h:,+.-b14&5+5¥4#%;";J#%:,+.Atv6 9-/14!,#<;/),9b6 9BVgB#8V),+.9R2&R;4H)$k4:,#%:Dyo-/+.3+5-/+.£8#<:-/#<:,:$2AB#E14:$:,+53ARN P +.-/+5&72!)$9>49J'¢!,#<2&5'v)$+5-/#b;J+.:,aV'*kR:,#%;;32)$k4:,#%:%cj+53'*-/#8-/9B!,¤;32)$2kR:,#%:13!,9Hg +7;J#/;3H)D2k4B:T#L+5V),#%A!$+()?=)$K3!$9C3ABK),K4#bCR:T#b92F 689 g#%B)$+59B42&R;J+.:,aJ:pFM9B!&.9ABA+.3A]24;/1{#8!$+.9 ;3+.66DK3#%6Da 1{9+.B)D:8Non9]-/#8# )),K3#K3+.AKIzgH2+.&72k3+.&5+5)?/;J#8-_2R;3:9F‚21313&.+768H)$+59B4:%cV:,9-/# +.J'¢-b#%-/9!$r;3H)D2k4B:T#<:`92†s#8!E;32)$b!,#%13&.+.6%H),+.9‚N [#8\32-/13&.#p92F36 9B-b-/#%!$68+.&H!,#<2&5'v)$+5-/#p;3H)D2k4B:T#o+7:‚6 < k =?#%6 )%Ø :j# ),!$#8-/#%wxQtKV)T),1 zWWW@N -/689k =?#<6™);32)$4NnhK42)+7:%c )$K3#>;4H)$k4:,#r+7:b-_2131{#%;Z;J+5!$#%6 ),&.d+5V)$9)$K3#>1313&.+.6%H)$+59BOØ :b;4;J!,#<:,:b:,1468#c#%&5+.-/+542),+.3AY# \J1R#%4:,+5gB#rk3CJ†s#8!/-_2R2A#%-/#8V)$:%N nhK3## ),!$#8-/#%wx¨!$C3V),+.-b#@689-/1R9B3#8V)`+.:h;J+.!,#<6™)$&5_&.+54a#%;I),9L),K3#@1313&.+.6%H),+.9‚cB#%&5+.-/+542),+.3AL),K3#i3#%#%;_FM9B!h!,#%-b9),#13!,9J68#%;JC3!$# 6%2&.&.:FM!$9- # \J#%68CJ),+.9142),KONrn9=13!$9HgV+7;J#/1{#8!,FM9!$-/46 #_4;14!,#<;J+.6 )$k3+5&.+5)?c‚# E)$!,#%-b#<wxÛC4:,#%:i+5)$:@9HW-/#8-/9B!,-_42AB#8! FM9B!b&5&.9J68H)$+59B4:b24;^;3#%2&.&.9 6%H)$+59B4:0-_B;J#rk ),K4#>;32)$k4:,#r!$C3V),+.-/#Nd§E9)b!$#8&. +53AX9Q),K3#>91{#8!DH)$+53AY:TJ:T),#%->Ø :L-b#%-/9!$ -_2R2A#%-/#8V)]2&7:T9=#8R2k3&.#%:i# E),!$#8-/#<wxm),9¤!$#8-/9Hg#L),K3#_k{92),),&.#83#<6Da9F14A+.3A¤;3H)D"+.^2R;9BCJ)0;JC3!$+54A>¡ < 9B1R#%!$2),+.94:%N ª49!i:TC3141R9B!T)$+53Ar),!D24:$6 ),+.9;J#<;J&.+.3#L-_42AB#8-/#8V)%c{# ),!$#8-/#%wx :,C3131{9!,)$:¥4g#b13!$+59B!,+5)?"&.#8gB#8&7:E)$K4H)@68k{#bB:,:,+5AB3#%;>)$9 )$!$4:,B6™)$+59B4:8N µ×À [),!D2R:,B6™),+.9i+7:‚C43+()92FJ# \J#%68CJ),+.9@+.0;32)$k4:,#21314&5+7682),+.9Ocz24;i+7:‚6 9R6 #813):T+.-/+5&72!O),9h)D:,a+.]39BJ'Ç;3H)D2k4B:T# 21314&5+7682),+.9ON  =?9B!G;J+5†{#%!,#%46 #<:Gk{# )?W`#8#%r@)D:,ab4;I]),!D24:$6 ),+.9_+.46 &.C4;J#K3+5ABKr;32)$]CR:,A#Ek b),!D24:$6 ),+.94:%Nª4C3!,),K3#%!%c +5)+7:GgB#8!$ ;J+5ƒ_68C3&5)L)$913!$#%;J+76™)L),!D24:$6 ),+.9d!$#%:,1R9B4:,#_),+.-/#%:b;JC3#"),9+7:$:TC3#<:0:,C46DKQB:0¡ < :$6DK3#<;JC3&.+53ASt;J+7:,aB6868#%:$:$y clk4CJ†{#%!,+.3ARc 6 9B46 C3!$!$#8468r6 9BB)$!,9B&vc{6 9B-b-/+5)2R;=!,#<6 9Hg#%!,r13!,9),9J6 9B&.:EC4:T#<;jc4#8)$6NE[:I6 9B4:T#:?)D24;3!$;dL~  13!$92),9J689&VWK3#8bC4:,#%;L+5b!,#<2&5'v)$+5-/#h;3H)D2k4B:T#<:‚!$#%:,C3&5)$:l+.L-_2 @13!$9k4&5#%-/: ‚&.94A4;]C3413!,#<;J+76™)$k3&.#h;3#8&7z :%cHC3 k{9C34;3#%; 13!$+59B!,+5)?_+5 gB#8!D:T+.94:%cJ24;>;J#<;J&.9J6Da :%N ª39B!"!$#%&('*),+.-/#X21413&5+7682),+.94:%c®+5-/13!$9Hg#%-/#8V)"9Fb8~ #m+7:>L~ j'¢1e oc`k3CJ)=+()=kR#%K4zg#<:"B:rkR;J&.fWK3#8Ê C3-0k{#8!>92F ),!D24:$6 ),+.94:i4;Y!,#<:T9BC3!$68#b:,K4!,+.3A¤2!$#/&.!,AB#Nr8~ #j'DŽ Ê9Hg#%!$689-/#%::T9B-/#_92F`),K3#_13!$9k4&5#%-/:]92FE8~ O'*1e ocsk3C3)0-_z !,#<:TC4&()+.>Wh:T)$A#92Fl&.!,AB#-b9BC3V)$:h9Fo689-/13&.# ),#<;rW`9!$asN < 1J),+.-/+.:T),+766 9R6 C3!$!,#%46 /6 9BV),!$9&t < ©©hy14!,9),9J6 9B&.:`2&.&59HW¨C34!,#<:?)$!,+76™)$#%;r;4H)$0C4:$2A#kV/)$!$4:$6™)$+59B4:%Nl„9HW#%g#8!6 9B-/-b+5)T)$+54A=),!D24:$6 ),+.9¤)$9=>gH2&.+7;3H)$+59B)$#%:T)@2)i),K3#b),+.-/#_92Fh6 9-/-/+5),-/#8V)%N_nhK3#<:T#b13!$92)$9 689&7:W9B!,a=)$K3# kR#<:?)EC44;J#8!&.9HWÈ!$#%:,9C4!$68#6894:T),!D2+.V)$:h24;"&.9HWÈ&.9B;>:,+()$C4H)$+59B4:8N }} 0

Contention







 





















 











Version 2 CSE, IIT Kharagpur

¬ ¬ÊÀ 2 ¬ }BNPV)$2),#IWK4# ),K4#8!b9Cd6894:,+.;3#8!])$K3#_FM9B&5&.9HW+54A:?)DH)$#8-/#8V)$:]),9k{#  Ù9!   0NCR:?)$+(FM9BC3!04:TW`#8!0+5^#<6DK 68B:T#BN tVyrª49!p)$#8-/1R9B!$&4;32)$C4:,#%;/+./i!$#%&('*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i6 9R6 C3!$!,#%46 d689V),!$9&h13!$92)$9 689&7:L),K42)_6%2SkR#¤CR:T#<;Q+.Z!$#%&('*),+.-/#¤;3H)D2k4B:T#<:8NS[E&7:T9RcG# \J13&72+.SWK3+.6DK¨682),#%A9!$92F 13!$92),9J689&s+.:hk{#%:T):,C3+()$#%;>C34;3#8!EWK42)E6 +.!$68C3-_:?)D2468#%:%N JNefK r+7:Eb),!D;J+5),+.9R2&‚~b13K4B:T#@&.9J6Da +53At*8~ #yk4:,#%;=689468C3!,!$#8R6 r689V),!$9&j13!$92)$9J6 9&j-_z"392)Ek{#0:,C3+()D2k3&.#iFM9!C4:T#@+. !,#<2&5'v)$+5-/#@;32)$2kR:,#%: ¤Öp\J13&72+."K49HW®),K4#@),!D;J+5),+.9R2&‚8~ #Y13!,9),9J6 9B&O68"k{#]# \ )$#84;J#<;"),9_-_2aB#+5):,C3+5)$2k4&5#FM9!C4:T#@+. !,#<2&5'v)$+5-/#i;3H)D2k4B:T#@1313&.+.6%H),+.9R:8N  NEª39B!_!,#<2&5'v)$+5-/#=21313&.+768H)$+59B4:%cG!D23aZL~ GcGP4©©cG2R; < ©©13!,9),9J6 9B&.:b+.S),#8!$-_:/92F),K3#¤1{#8!D6 #%V)$2AB#"9F)$!$4:$6™)$+59B4: -/#8# )$+54A)$K3#8+.!_;J#%B;J&5+.3#<:8NZ©9B4:T+7;J#%!L&.9HW 24;QK3+.AKZ;3#8A!$#8#<:09F6 9BJ¦4+76™)D:b-/93A),!D24:$6 ),+.94:%c24;^),+.AKV)_24;Q&.2\ ),!D24:$6 ),+.9>;J#%B;J&5+.3#<:8N +.g#]bk3!$+5#8F!$#%:,94+53Abk{#8K3+.4;=9BC3!24:,W`#8!


  ^a

*



7a

k



k e

=



A; 







?I@% >; =



:O iLK"j



:











"k

Bk



k

e

Version 2 CSE, IIT Kharagpur

À´E¿´ 9p´¼=¹´E½ |5} €]wH),#L©N RN E=JELK&E9 > :G7 > = M N < Ø u#8+.&.c4~ 3N | ~z€]uE-/a !,+7:TK442>uE2ABKVC‚N E=JELK&E9 >E7 E> > 7"="B9;=?> 9DNp6 !$zWh'DŽE+.&.&vc4~ B~3N | H€][Ek4!$K42-ÙPJ+5&.kR#%!$:,K42),£ c i9B!T)$KOc32R;=PJC4;32!D:,K42ON E=JELK&E9@> "B9;=J> 687A4&> =D9DN6 !DzWh'¢„+5&.&*cJ~ JN | ?2€0P 9B3A 0N{24; ‚+5C¤e N PsNE+5V)D2+.3+54A/),#8-/1{9!D2&l6 9R:T+7:?)$#8468 #o#%:$:,+5-/+7:?)$+.6igJ:%N391J)$+5-/+7:?)$+.6L6 9B46 C3!$!$#8468r6 9BB)$!,9B&vN  CFE79 EI4 = : 679 67 7 6 PQ>&H> E7AH E=JE  7L:G7A>&>@C;:G7c 3t y   c < 6™),9BkR#%!@} JN 

 =





Le





e

8=



[

=









=

}%

Version 2 CSE, IIT Kharagpur


Related Documents


More Documents from "SRINIVASA RAO GANTA"

More 2,3,4 Tree Notes
July 2020 19
Software Ebook List
July 2020 14
Real Time (3)
July 2020 19
Security Model
July 2020 5