Aard}  @`P P  ` P`0 P HH $ @d HHHHff@  d Footnote TableFootnote**.\t.\t/ - :;,.!? cx56cxTOCHeading1Heading2   YEquationVariables? ;`<<=7=P=i=;B;D;F;H <$lastpagenum><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear>J<$hour>:<$minute00> <$ampm> on <$dayname>, <$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear> <$fullfilename> <$filename> <$paratext[Title]> <$paratext[Heading1]> <$curpagenum> <$marker1> <$marker2> (Continued)+ (Sheet <$tblsheetnum> of <$tblsheetcount>)Heading & Page <$paratext> on page<$pagenum>Pagepage<$pagenum>See Heading & Page%See <$paratext> on page<$pagenum>. Table All7Table<$paranumonly>, <$paratext>, on page<$pagenum>Table Number & Page'Table<$paranumonly> on page<$pagenum>Heading <$paratext>EHTML Headings++A335579A<<>>@@A`;b;d;f;h;j;l;n;p;r;t;v;x;z;|;~;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<<<<<< < <<<<<<<<<<< <"<$<&<(<*<,<.<0<2<4<6<8<:<<<>x>y!=R=T=V;#=X=Z=\;/;2;5>z!;E;I;J=^=`=b=d=f=h=k=m=o=q=s=u=w=y={=|===>{!=>|!===!=!=!=!=!=!=!=!=!===!=!=!=!=!=!>}!>~!=!=!=!>!=>!>!>!>!>!>!>>!>!>!>!>!>!>!>!=>! ===!=!=!=!=!=!=!=!=! >>>!>!>!>!>!>!> !> !> !> > >>>!>!>!>!>!>!>!>!>!>! >>>!> !>!!>"!>#!>$!>%!>&!>'!>(!9dq5+d>, d;]d;L HmR;MHmRHRHRFootnote Hr@;NHr@HzHz Single LineH靕;O Footnote ;P  HD;Q HDHH Double LineH;R Double Line;S ;T H֝;U  Single Line;V HZ֝;W  TableFootnoted5p77 EGxR;XEGxREPwEPw TableFootnoted;^dE靕l d;_d1QRUX[^adgjmpsvy| %).1W/܁܁Bm }蝝d ;a蝝d WaHTML Mapping Table }H蝝d ;cH蝝d Wa }H蝝d ;eH蝝d Wa }H蝝d ;gH蝝d Wa }H蝝d ;iH蝝d Wa }H;kH! FrameMaker PA Source Item }H ;mH Wa HTML Item }H ;oH Wa }H;qH W aInclude Auto# } H;s H W a Comments }H;uH W a }HH;w HH W aElement }H;y#H W a New Topic? }H;{H Wa } H;} H Wa }H ; $H Wa P:Date Line }HH ;#%HH WaP }H ;$&H WaN }H ;%'H WaN } H ;&( H Wa }EH ;')EH Wa P:Reading }HEH ;(*HEH WaP }EH ;)+EH WaN }EH ;*,EH WaN } EH ;+- EH Wa }QH ;,.QH WaP:Title }HQH ;-/HQH WaH* }QH ;.0QH WaN }QH ;/1QH WaN } QH ;02 QH Wa }]H ;13]H WaP:Body }H]H ;24H]H W aP }]H ;35]H W!aN }]H ;46]H W"aN } ]H ;57 ]H W#a }iH(;68iH( W$a P:Numbered1 }HiH(;79HiH((%aLI &a Parent = OL Q'a Depth = 0 }iH(;8:iH( W(aN }iH(;9;iH( W)aY } iH(;:< iH( W*a }띝H ;;=띝H  W+a P:Heading1 }H띝H ;<>H띝H  W,aH* }띝H ;=?띝H  W-aN }띝H ;>@띝H  W.aN } 띝H ;?A 띝H  W/a }H(;@BH(  W0a P:Numbered }HH(;ACHH(( 1aP 2a Parent = OL Q3a Depth = 0 }H(;BDH(  W4aN }H(;CEH(  W5aY } H(;DF H(  W6a }H ;EGH  W7a P:CellBody }HH ;FHHH  W8aP }H ;GIH  W9aN }H ;HJH  W:aN } H ;IK H  W;a }H ;JLH  W<aP:CellHeading }HH ;KMHH  W=aP }H ;LNH  W>aN }H ;MOH  W?aN } H ;NP H  W@a }H ;OQH  WAa P:Footnote }HH ;PRHH  WBaP }H ;QSH  WCaN }H ;RTH  WDaN } H ;SU H  WEa }ȝH(;TVȝH( WFa P:Bulleted }HȝH(;UWHȝH((GaLI Ha Parent = UL QIa Depth = 0 }ȝH(;VXȝH( WJaN }ȝH(;WYȝH( WKaN } ȝH(;XZ ȝH( WLa }H ;Y[H WMa P:Heading2 }HH ;Z\HH WNaH* }H ;[]H WOaN }H ;\^H WPaN } H ;]_ H WQa }H;^`HR! P:HeadingRuPAnIn }HH;_aHH WSaP }H<`bH WTaN }H<acH WUaN } H<bd H WVa }7H <ce7H WWa P:Indented }H7H < dfH7H WXaP }7H < eg7H WYaN }7H < fh7H WZaN } 7H <gi 7H W[a }CH<hjCH\! P:TableFootPAnote }HCH<ikHCH W]aP }CH<jlCH W^aN }CH<kmCH W_aN } CH<ln CH W`a }]H(<mo]H( Waa P:TableTitle }H]H(<npH]H((baLI ca Parent = OL Qda Depth = 0 }]H( 蝝H "W4a }H <=?H #W5a }HH <>@HH #W6a }H <?AH #W7a }H <@BH #W8a } H <AC H #W9a }d <BFd $W:aHTML Options Table }Dd <Dd $W;a }Dd <Dd $W<a }D <CGD %W=a }DH <FHDH %W>a }H <GIH %W?a }םD <HJםD &W@a Image Format }DםH <IKDםH &WAaIMAGGIF }םH <JLםH &WBa }D <KMD 'WCaBanners }DH <LNDH 'WDaN }H <MOH 'WEa }ԝD<NPԝD(F! Banner ReferPA ence Frame }DԝH<OQDԝH (WGa }ԝH<PԝH (WHa }D(<DSD((F)I! Copy Files  Imported by PA Rerefernce }DH(<DRTDH( F)WJa }H(<DSUH( F)WKa }DD <DTVDD F*WLa }DDH <DUWDDH F*WMa }DH <DVXDH F*WNa }Vd <DW[Vd F+WOaSystem Macros }?Vd <D?Vd F+WPa }?Vd <D?Vd F+WQa }f? <DX\f? F,WRa Macro Name }?fH <D[]?fH F,WSa Replace With }fH <D\^fH F,WTa Comments }r? =D]_r? F-WUa StartOfDoc }?rH =D^`?rH F-WVa }rH =D_arH F-WWa }~? =D`b~? F.WXa EndOfDoc }?~H = Dac?~H F.WYa }~H = Dbd~H F.WZa }?= Dce?F/[! StartOfSubPADoc }?H=Ddf?H F/W\a }H=DegH F/W]a }?=Dfh?F0^! EndOfSubPADoc }?H=Dgi?H F0W_a }H=DhjH F0W`a }?=Dik?F1a! StartOfFirstPASubDoc }?H=Djl?H F1Wba }H=DkmH F1Wca }?=Dln?F2d! EndOfFirstPASubDoc }?H=!Dmo?H F2Wea }H=#DnpH F2Wfa }?=%Doq?F3g! StartOfLastPASubDoc }?H='Dpr?H F3Wha }H=)DqsH F3Wia } ?=+Drt ?F4j! EndOfLastPASubDoc }? H=-Dsu? H F4Wka } H=/Dtv H F4Wla }&? =1Duw&? F5Wma }?&H =3Dvx?&H F5Wna }&H =5Dwy&H F5Woa }8d =8Dx|8d F6WpaCross-Reference Macros }?8d =:D?8d F6Wqa }?8d =<D?8d F6Wra }H? =>Dy}H? F7Wsa Macro Name }?HH =@D|~?HH F7Wta Replace With }HH =BD}HH F7Wua Comments }T?=DD~T? F8Wva See Also }?TH=FD?THF8w! See Also: PA <$paratext> }TH=HDTH F8Wxa }n? =JDn? F9Wya }?nH =LD?nH F9Wza }nH =NDnH F9W{a }d =QD d F:WaGeneral Macros }?d =SD?d F:Wa }?d =UD?d F:Wa }?d =WD?d F:Wa }? =YD"? F;Wa Macro Name d= d= d 靕l d= do  W܁܁Bm }蝝d = 蝝d  <W|aHeadings Table }H蝝d = H蝝d  <W}a }H蝝d = H蝝d  <W~a }H= H =!Paragraph ForPAmat }HH= HH  =WaHeading Level }H= H  =Wa Comments }H= H >W aTitle }HH= HH  >Wa }H= H  >Wa }KH = KH  ?Wa Heading1 }HKH = HKH  ?Wa }KH = KH  ?Wa }WH = WH  @Wa Heading2 }HWH = HWH  @W a }WH = WH  @W a }cH = cH  AW a }HcH = HcH  AW a }cH = cH  AW a HH>-HHw00 _d2Not-Recently-Used or Not Used Recently (NRU, NUR) V܁$tThis policy selects for replacement a random page from the following classes (in the order given): not used or modi0vfied, not used but modified, used and not modified, used and modified. In the following, assume references 2, 4, and De7 are writes. The two numbers written after each page are the use and modified bits, respectively.) Wdtime012345678910 X dw ca*db*eba*bcd Yd/HH79 靕ld>099 }?H =[D #?H F;Wa Replace With }H =]D"$H F;W aHead }H =_D#%H F;W!a Comments }? =aD$&? FCW"a }?H =cD%'?H FCW#a }H =eD&(H FCW$a }H =gD')H FCW%a }d =jD(.d FDW&aCharacter Macros HH;"HH❝+G܁e HH;$3HH**靕l}?d =lD?d FDW'a }?d =nD?d FDW(a }? =pD)/? FEW)a Macro Name }?H =rD.0?H FEW*a Replace With }H =tD/1H FEW+a Comments }? =vD0B? FFW,a HUV ;.HUV ❝3G܁e HUV ;05+HUV 22靕l H$ ;1H$ 5G܁e H$ ;33H$ 44靕l HH;4HH~--7 `Page Replacement Algorithms 0,` Introduction 1܁ sThis handout shows how the various page replacement algorithms work. We shall call the pages of the program a, b, I@5c, to distinguish them from the time (1, 2, 3, ). 2b`Fixed Number of Frames 4܁t |We shall demonstrate these algorithms by running them on the reference string  w  = cadbebabcd and assume that, ini0ātialy, pages a, b, c, and d occupy frames 0, 1, 2, and 3 respectively. When appropriate, the little arrow    indicates the @\location of the pointer which indicates where the search for the next victim will begin. 6`First In/First Out (FIFO) 7܁`>This policy replaces pages in the order of arrival in memory. 8`time012345678910 9 `w cadbebabcd :``frame 0  a  a  a  a  aeeee  ed ;`?frame 1bbbbb  b  baaa  a <`)frame 2ccccccc  cbbb =`)frame 3dddddddd  dcc >`page fault12345 ?`page(s) loadedeabcd @` page(s) removedabcde A:`Optimal (OPT, MIN) B܁J`mThis policy selects for replacement the page that will not be referenced for the longest tile in the future. CV`time012345678910 D `w cadbebabcd E`frame 0aaaaaaaaaad F`frame 1bbbbbbbbbbb G`frame 2ccccccccccc H`frame 3dddddeeeeee K`page fault12 L`page(s) loadeded M`page(s) removedda O`Least Recently Used (LRU) ܁`dThis policy selects for replacement the page that has not been used for the longest period of time. ΁`time012345678910  `w cadbebabcd 3`frame 0aaaaaaaaaaa 5`frame 1bbbbbbbbbbb I`frame 2ccccceeeeed J`frame 3dddddddddcc N`page fault123 P`page(s) loadedecd Q`page(s) removedcde R`!stack (top)cadbebabcd S`cadbebabc T`caddeeab AU`$stack (bottom)caaddea HH;6HH 66 靕l HH>1!HH{9`Working Set (WS) ܁ vThis policy tries to keep all pages in a process' working set in memory. This table shows the pages consitiuting the 0wworking set at each reference. Here, we take the working set to be that set of pages which has been referenced during @qthe last  t  = 4 units. We also assume that a was referenced at time 0, d at time -1, and e at time -2. `time012345678910  `w ccdbcecead  `Page aaaaaaa  `Page bbbbb  `Page ccccccccccc  `Page ddddddddd `Page eeeeeeee `page fault12345 `page(s) loadedcbead `page(s) removedead `Page Fault Frequency (PFF) ܁ rThis approximation to the working set policy tries to keep page faulting to some prespecified range. If the time 0Ёybetween the current and the previous page fault exceeds some critical value t, then all pages not referenced during that uinterval are removed. This table shows the pages resident at each reference. Here, we take t = 2 units and assume @*that initially, a, d, and e are resident. `time012345678910  `w ccdbcecead `Page aaaaaaa `Page bbbbbb `Page ccccccccccc `Page ddddddddddd `Page eeeeeeeeee `page fault12345 `page(s) loadedcbead `!page(s) removed?a,eb,d A` HH>3!HH 88 靕l d;;<@H$ ;<;>H$ == 靕l H$ ;=;H$ <W܁܁h4May 18, 1999ECS 150 Spring 1999Page 3  HUV ;>;<@HUV ?? 靕l HUV ;?;HUV ❝>W܁܁h=Last modified at  10:54 pm on Monday, May 17, 1999  HH;@;>HHAA 靕l HH;A;HH❝@W܁܁` }?H =xD1C?H FFW-a }H =zDBH FFW.a d=~EEd=DdFF 靕l d=DdRCERUX[^adgjmpsvy| %).1 dLeftd;Rightd ReferenceddHTMLdDHTMLd Headingsd d!Ŀ@@ ZMapping Table Title. Ŀ@@ ZBody.  f@PZTitleBody. f@T ZHeading1Body. Ŀ@@ ZFooter. f@T Z TableTitleT:Table : . f@T ZHeading2Body. f@ ZBody. Ŀ@@ ZHeader Double Line. f@ Z CellFooting. f@ Z CellHeading. f@ Z CellBody. Ŀ@@ ZMapping Table Cell. Ŀ@@3Mapping Table Cell. Ŀ@@ 3Mapping Table Cell. Ŀ@@ ZMapping Table Cell. f@ ZBody. f@ Z Z .~ . . . . .2 .V .z . . .Body. f@ Z BodySpaced. f@ Z Bulleted\t. f@ Z...Date. mf@ Zl. DateProject. Ŀ@@ ZHeader Double Line. f@T ZHeading1Body. f@ Z Numbered.\t. f@E Z Numbered1.\tNumbered. f@ Z NumberedSpaced.\t. f@ Z.Reading.  f@PZTitleBody. f@$Z.Line Single Line. f@ ZCellBody. f@ Z CellHeading. f@ Z Footnote. f@T ZHeading2Body. f@T Z HeadingRunInBody. f@ Z Indented. f@ Z TableFootnote. f@T Z TableTitleT:Table : . Z ZZ Z蜜 3 Z ZZ蜜Emphasis V  ZZ蜜EquationVariables Z 3 蜜 BoldItalic ۸ZItalic ZBold Z3 ZZZThinMediumDoubleThick@ Very Thin HHHHHFormat AH Mapping Table HHHHHFormat BH Mapping Tableh*|#HHHHHf$*DHH+5?HH&69?HH :C?HHH DF?HH*6 ? @ h( A B C D E h  F G H I J h  K L M N O 𝝡h  P Q R S T ȝh( UVWXYh Z[\]^h_`abc7h defghChijklm]h(nopqr֝h stuvw띝h xyz{|h(}~h h    𝝡h  h h h)h  !"#$5h%&'()Oh  *+,-.[h!/ 0 1 2 3 uh "4!5!6!7!8!蝝h!#9":";"<"="h ">#?#@#A#B# %C$D$E$ $&F%G%H%ם %'I&J&K& &(L'M'N'ԝ')O(P(Q(((*FR)S)T)D )FU*V*W*V ,FX+Y+Z+f +-F[,\,],r ,.F^-_-`-~ -/Fa.b.c..0Fd/e/f//1Fg0h0i002Fj1k1l113Fm2n2o224Fp3q3r3 35Fs4t4u4& 4Fv5w5x58 7Fy6z6{6H 68F|7}7~7T79F888n 8F999 ;F:::: :CF ;";#;$;蝝 =  <<<<> ====? >>>K >@ ???W ?A @@@c @ AAA ;F%C&C'C(C EF)D,D-D DFF.E/E0E EF1FBFCFComment ;C ;Gd BlackT!WhiteddARedddŝGreendd BluedCyandMagentad YellowHeader/Footer $1Header/Footer $1Header/Footer $2Header/Footer $2IndexIndexCommentCommentSubjectSubjectAuthorAuthorGlossaryGlossaryEquationEquation Hypertext Hypertext  Cross-Ref Cross-Ref Conditional TextConditional TextPositionFMPrivatePositionFMPrivateRangeEndFMPrivateRangeEndFMPrivate HTML Macro HTML Macro M.Times.P Times-Roman FrameRoman M.Times.B Times-Bold FrameRoman M.Helvetica.BHelvetica-Bold FrameRoman M.Symbol.PSymbol FrameRoman M.Times.I Times-Italic FrameRomanM.Helvetica.BIHelvetica-BoldOblique FrameRomanh2 HelveticaUSymbolYTimes"Regular$Roman MediumBoldRegular ObliqueItalicn#b< ;fqk~R\^NZ8!~/m`|;Zy[~QRf@a|wc]d7 زv[sa/Pk?E8^XaRAظ2q# ֗kڤ\2.3\ o