{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

exam2004a - 2m 117111-12 zoom-13mm R ‘ rum-mom 2115.04...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2m: 117111-12 zoom-13mm R ‘ rum-mom 2115.04 maman mun om 1mm mm :ns-mn ow 311’? 721‘! 1101 11mm 11131210 :3 1mm 202-1-3031 arm: 'on 13$ :‘TWD '21 z'DD ‘T”UW3'I :TDVJ 3113’?) 3 :mvnzm W23 “NON :13“)? “mm .m‘nm 100 mm: ,mbrwn b: mm mm mm 25) .mnman 1171113111313 11m 13m mwmn nmnn‘: mam: 11mm; "p mnvsn on now .24 momma mums m: on .71 moms v-rnwv 13}: mm): moan" won» 13: , Anton; -mmn 13319:! NW 1:: (1mm) 111115911 m mm: .21 m on .vmvob 101:» Tn ommn we mum: numnm .n‘mn N55! womb m‘mv 1n ,mznnb 1113”:va “Int: 13): mmzm ED531133?! THE "1139111115971 RN 3113919 111’) D’D’MUH 339121 :i'T'i Tl 1333116521 0,119,301 Integer INDIE) emu: WDDWTI'D V)" 13 V33 31:15: 0113mm); rqug4.;._5g[utm Int count[2]; ' semaphore mutex = 1, busy = 1; semaphore waiting[2] = {1,1}; void arrivefint direction){ void leave(int direction){ down(&waiting[direction]); down(&mutex); down(&mytex); . . 1:0Untl'cieiregtigr!]-= 1; count[dlrectlon] += 1; if(count[direction} == if(count[direction] == 1) {up(&mutex); , up(&bU5V); 0W1) up(&mutex); ,‘iOWn(&busv)} else up(&mutex); up(&waiting[direction]); .1 (er 10) 111339 nmnomomn 31me mph poo mm: “m wmmn 11m .11 mom. 1 mm anvopsun 19mm 'J‘T‘IJN! 13'; tn'mw Bounded-Bum with Monitots - monitor ProducerConsumor condition fit/l, empty; integer count: procedure enten' begin if count = N then wait(ful0; enterjtem,’ count := count + 1,- if count = 1 then signal(en1pty); end 7 VHPEQEEFIEE‘E remove; begin if count = 0 then waiflempty); i remove_item; ll count := count - 1; if count = N - 1 then signalflull); end count .'= 0; - end monitoi' n‘npon 13% 1103311371 1m; mom wm Tbrm pron momma :mpm Mon: womb now mm) mfism ono‘: 11mm Slgnal (Pp: 15) £13an 31mm poo): ,omm"nhmzwnmnb-ammonia .N .(rmw 5 1y) “flock £01133 13533:: 1137313 ‘TD 27 WSN 1351i “RD fib’m 13MB NFS 1111121123 13531119 ID‘WDJ m 1 i .‘ ’ ' .{IiT'i'N} 5 W) Via’n‘w) NFS pom: m1 mm“) 7‘7: 3:1 ”mum 11?va mm sign .3 .(Write, read, lookup 511131731971 .(nmw 3 1y) mum) mmo: in? 3mm Tom .1 1mm woman Unix .1 ":1; wow” ”gm u e3.g,_$..w-._-_.i_;&m;x iaui'L—‘agnw ‘" ' .2 ' m 20) waiver} in wp 1m) .2 new: mum bum-b nennm n nbuw .{D’JWJVI be: new ommn- nwi‘aw 1mm 5mm unw‘m .N .( round robin, longest queue, application specified) scheduler ~71 13 Application specified Till}? memn 0313111724. TIN F1131): 3/1261 .nwnnwn qnznwn nu mxp: vpnn mmzm 111':th by m: N'J/TDJ vmv .3 mam 5112 15% men Mailer-n but 12mm mm 'rm UN (1 :13): 1311va 5151! ,men 13m nv‘np‘npn W 12411:"! ?Deadlock -'D\’J mm) mm: n‘nwn': 311331111 1311*) omn (mm Libs rmm (2 WW: ‘JVJ :11an ‘331 ,vbsn 5v; rmmn ‘1an m “We “mi: .61st mmn nnbwb awn: "emu" ‘nrrnp wv my 5:: 13:1 mmn nn'bw be main» 13 7mm» mwm 3:) nu: .3 “1mm? 1mm nbwn Tip‘npn ,nw‘u mama D’T‘I‘P‘T‘ITJ mm): W by 119wa nv‘nnnw 73‘: Mailer-n bw mead-m mm m fizigbgnmn ?Deadlock 1311va bib» tam J'DV) 1mm .13 UN mam .Mailer-Tm 111mm? 1‘13) 119m: 5» mm: nbiw ‘p‘znzn b: :n‘wn ("Pl 25) ‘mnwn mun -(Reference—st—fing) mmn 1D 0391 mum? 31170 mm.) CPD") 1,2,3,4,2,1,5,6,2,1,2,3,7,6,3,2 ms win: ,LRU 13591 339an tmn‘ubiu nvwnnwn on .N 111123 men .1131an m‘run ‘11:)! Distance string -n 41:1 W39 1113’? trm 11:13! 1311’ Page-faults m: Distance string ~71 in mm: twins-b men 11139171 3m bmnb 3N1: mm ,tnsn Shift Registers mvxmu LRU -n nnnmn nu mum’s 9: run .3 mm New 4 be 1217331111122 1524 1391100531 .050»: 4 be (aging) .8 ‘13: 1 tmmn mam-n3 N": 11:13! Driven-m :13): nu nmn mun 2m mpm ,pwwm LRU whim m nnmi’m mm 1mm: (T199321 J'IDN b3) execvp-i fork nmrnsfi—bw wmmazmw .a perm by “1%!st nm 1:: 01pm “punt! nvmn ,Unix .(Paging file it) .4 (mm nm Amp '32) Owner -“1 m: mm: nbw Unix -:1 CHOWN h‘r'ipsn mwxnmw mm: mm .wnmn '93 my vszmn‘a nbm 11 711179?) .amm 1131923 33:17: 71mm 5133 bur: wnnwn Innbxn: ...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern