Operating System
Operating System
1 — Gf Re papsity of aR: Prunes are matching, Time i Gl Proly Pep AT 8 : + 1 4 Yo 4 Soak a i % a 4 ‘ 6 A 3: 2s “ Hy © tis fo “ wy © & 2 4. ” Pe | Pe | Pr | %B 7 2 hay tp SD ely I: ah x. & Py hae P,Date 7 Page Sr @)_ Preemptive tov: dy linge ~ + Con-teria = Pelority No- Mode Pam fs tivef Ql -proniy P\D AT RT thw # 4 \ \ KK Sea “a @) Xo + 3 2 % 0 wy %_* _3__¥ @o Ss 3 ho 6 é 4 £0 Pro Px & PEE P2 < PSE PY ry = = 5 (le Vee] Pe | Pet re | Ps : \ “45 B14 14 & Bi ca Rog - MRE Et, %< le bers [oe PP s See. FSS Sears Gee pare pees S11 — B23 6 Se—— a eee eee Dee th be & 5 va Lyie= Wertiey Are Peter aefee ts . (yee Wye AY Do ely Ve Py & ye Pre Bs . iOS- Lab Dae TT jAisian BE ES TM Pwoses — pub — Arrery fst ft Tapas Grnath chav ch Ls Computation p Se sty AT— Scheduling oon >) JL = x a oo => Stee —ren| 0 i : Tome Remowt . Sapuy “atgeier _ Sele = At — GBT amoumt ofH mR | b Add + BT Pal HEA or ¢ fers i —} wt t THE include < los-htam> Using mamssbace Std > tat marn_) ¢ iat__ATis ot ae ®@ £7 Inclide (Stdjoh> xt fnelude < Gti lie h> att define mex 30° tard. smou'n L) dint Ci, My bt Cmax], atCmax) , wt{ maa jatieaad semb Gry] + Float ougtat = =O, Avgwh=07 Palnt$ (Enter 4h no- of Prouye” ) * Sconf ("7d eon) 5 banig [ Liat, aye Sem for (reo) Cen) 044) 7 Seams (turd 7, & bt0il)} Beet 0” Cosen tae axvival chim: vf prow”) ¢ fac (foo, Vens v4) Scame (“ra , Ea); sempLol = 0 banat ("procs Ub Bash melt Amal dime Ub wating Wma VE Turn around time Vm) dor(vz0% Lams cay) fmt ils oy sot Ci =o | dompfi+t] = tempfig +se Cis weds semp ld -at lids tabi] etic) + bee po Quah = Wye + VEL = angdat = AVS tat CODs Pring ("hd “Ad eA ed MEAL fd VELL hd & ‘) itp, bere UP MELE be a= ar ean: Pa aug tak = agRt [m7 to . -— -_— Bp geilalale|se &e mm ay tae ss de be ee Le esCees 7 Pan a (" art woaley “7 hi Et eo = | % Set)te Ia) e Sggnt ah mowkates p) Sat BY \ . In 1s I$ 90 \ \ daw Ny NN | Reda s Nove do NOL (omg wy I i. ‘ Qh AYN ( ® S 4 = ‘ ‘ e a q « 7 : 4 QR) Pr Ar RT CT TAT 4 : 3 gs NS 4 ' ’ % 4 _ 0 A £ 3 iS 13 Lo -* 4 2 20 Lb Wide 4 3 & a 4 oO a 2 + 6 4- Bi ae _. “E576. derek * Lee Les_| ts ® |e, | a) ‘ 2 & { iDate 77Date MOINe bs WN a + le oa oe Lo 7 ee T RSS. » |; tL diet | IL St ha a || 2 Hoe er Soe 5 8] 1 s LbAy 3 RR of Ps = Sate = g fg R Ro, = "Rod Pp = 142/223serfs ceert ze 14 /03[ 29 oe i | | Page BANKA’ \ sor egt Date ‘ ova wt \ a Page : aaa ; Soe ee i: ) Pwr 2 Pat 33 Pi, B5, Pa Pa? 4— is SRIF |-—>) » Ps >i Slater = ; > 3 =) Pers jj——>\ P42 a : toe | eva ——> SB ; Pas 1 Ne ap een eee ! Ao-5 | Pay Pe , — rah es j : , 4 Pio , usp pee i i i L ) 3) Startntton of Lowert priority Guetg, | Satterine Gren Sena ben SL Tampere, not allowed.b Date J i | me | All (pasiden 9 white! U_bownd 4 math BTV of 45 Sec-, Re Multivele Pepdae Wane. Schedulivy. Blo. ty Wed and Fmt Quamfime K 2sec, And ie each Lene] i ty inex nam ted by S $t¢ 2 —Heun ~~ wmany -himas Prous twill be sngenssa pte» and in whch Wns Re Prous wll Complete Mt eect ‘on » 3 38 - —— a 3, fs St { 5 = f ig ( _4t Ary yon Co a pahapay uM l ) as : = 6 ya = : Sth Quen e, 3 —— i 4 ————— | AL SS a i a _mT td mee fie * Noone of Scheulig Hpo-| __Starwarlion | Fors No =e Sif ae ye @ sare v spose (@i_aea xe No @)|_ Rrtovity Non = Prombtivg Nes ©) Prioxity PoeembHw y~ Ks @) est 5 Ney 8)| LRT y Zo Gl HRRN y No GOL Mule) Ue. Seh: Ago | yes, CDI tote done Alga No \ \ feaclten of Re prowar4Date / Be Page TRAN Slip- pistes _Snqlst Stora sae tno + elthn O/ 2 a b> 16) Stonig Many $ttp foe —— Register. Tomy Pedisten —» RAP (ied Pebnise toad. Qs stone \ * A SS aes — ARE Regist (teas aefo} liam We HA TT | PE fel Pf | IL | —a_fofrfefe tte hp ak Deon CTF, ED, OF) x, YB YN 2 Peer it ToS AR Pc 7 Microiinghuc tou : TS ta — MARI “Pe < Pet]; ws Bz bit f E ) ek gut enna adhas-pasy 20614Date Jf 4 4 Page mana} Coun} = Coun +1) 4 bead p>, MEtounl | ( 4 Ro = Rpt | J Maney, 4 Mien Sloot MC toumt ] , Rp ; SetwUA OF Wi cacasreuofi oF ee* Papers SyachsoniZation Cooperating Pemeever ; > These Procoves Hat Com int n=O | out=o0% _tit Buster (N) , int Coun} =o) 2 ——|-vold Peoduun ) 3 4_tnt_temp 5, temp = Peosyco C) 7 \ Putte Pin] = Hemp y L ine Wnasy mod Nt z Count = Cown| +14 g gS Sakai =] vold Consusmon. Q) whe (1) vd Unt Heme 5, Ce Le deme 2 Bute Lou _—— ou} = (out ti) mod yy no Counts Cound = 17 tae te % ‘Conpomne-C pam me Can” breqlt ~PDato ff Page RANKA, => Micro bnsbuctts a mic CTadsvisit > = one S x To ee 1M [eount'] | toad Re) Mpwoums ‘Ree Rp + Wet RO} Re R Ts Sto: tount 1, Re. of Ake Mshuctong is O- eytion Of Wie inghucs vi ©. Exton hiDate 7 7 Page RANA | Gniveng) Chiumbloa— Ce chronisa hon Probuan / Mion cnshuction« Molo >» Consictmey | poly orl | Hyer tondjtrony poets’ i fy, recto achteus Sgothsonitgbiom = Mutual Sclig fon GY tena watts Progen CP) de d “(Gey Seckton | [Giteal Section | [Ett Secon | (Remarndur Section) 4 ewhie (fue) | ie * * 'o >|] Aay ond collical % te moc nbortand neet | hie Si itica] section to Peogocm text - whing He hart Is a Hi we Nom. Bb coum at)Date? Page anna “The decision laf who wit inky Uns foe—cotpical Section. Should be-Hleon. by ore Prowris, who aoe «prcyun ta huts cespeckva Bay —Sechite Gel that aecisbo. Should At be Pot-poned Mm defrn ely» Not. imlensstecl poowrse, Should nol block te Prowises who _ave.initustled fo ented nside He crbtteal Sechion. Bounded waiting oo al SoS || Tetee mut Bxja4_q_bownd On Re no» _o-f-—ines + lta} othr _prowmis Qrt allowed Enter inside Rare et -d-Fla_tea_q_p902%5_nod_made_o__ to Sindy inside —fs_erlttcal secfiog ovnel — before its Gedyest Is Granted. ‘1, BE 1 pst i tele U es a) whit CY wie Lt) —fwhiu Clams =J) 7 _4_whiu (tna: 21) 5° 3 g eS arn = 0, Po VFeaindy HoneintersiedXe About givun = ih peg this alg dridhan 1 Ienotun o Slaton: AHeuna}ion — Alyosit Sages saci whteCt o- a why 1 fy Gid- 2, foun it gg CTs Sroe ony (Tafa) ==4tuays € GE SE haa) yg es ed [ee = pf]: file + ¢ 100 Lge tie fin ; at ae 4 : ‘ Cn ‘ ore j a a4 = > [a|r 4 iz Bwiz ev Ly Bead loci) ‘ (’ at y ae ) a . a tel frag (21 > , EL Pe tet ORS Pe : white _( + wR TT) 2 ¢ Stil = $199 Ci] = hue) ha hy darn = i We ; shiv { Fin Ci] = shee fob arneaj)y Lg 7 a white | fisy Cr] sue 6 or, pee foxes) ; fing CO] 2 felic Fes + : ) Lig Co Te fer’ , iJ v d zi 7 4 i MES vw [at na 7 i pe Visa daca 7p 21[P\ i Bw + a ( G he We i > L L >This algorithm ig [enous ox “Pe. ‘ sith ’” 2 I[pedens.ne's Loree \ == some)» ae Date / / \ ae rs Ca A. ay Pa. oat whit Buzz. § whi (Si L282) 4 “atts Sees a ST=$T Sze. St” (S252) S Se s Te oe ie So Sy Bs. T_T PP far 7p FT +B Fe 76 eewe Page RANKA ‘|| Sema pho —— User = definad Dalalype) sen = define 2 [Semqhhox 14am inkgen_vamabit Bot _¢ abort from _ | inturalizaaction +" aceused Hixou attomic | operations fe» watt amd_siginal C)- Atomic -_indivisiblu.- Pacembtion not Pesible . 5 Woat (J >” Signal C9 tf uy down () ————> ub (9 et RE) er rv fe ibe aE “f : » wate (S)> - 4 hy = S > _semaphorf one {Ss soy7 h Sat} B >| Sigeal 3) Yost Try 3 >| if Re value of Seanaphort i's Les ton vv Chal to zo, TRL Pow which is Performing watt ©) opagtien wt watt omfil +e value Of “Semaphore get changed grea rer thoy TNO. > Valug vottl be Chomped by oT, Signgl opera tion 13 Performid” on A Sanne Pe a icy DARA POEs scion pope Basse, OF | FRR Wit 3a ronged 4O postive valus3 bier vif Yme aDats 77 Lutny mstamer of orm phoxusttl hau = park; ome deg Va tee, amd Pe _= Polaten + pe cl Vor _valut, oil _tonfatn Re values and _| Rovoen Past “ttl be. Potactiny t0_4_ Suspended [14 + _sapedep Siuel 4emashor. a Aus pended int value) (par. Ce) _____Shuct_proeys #L [Lee eee % ae Fon Aap PON || Guus gemqpbore has =tRere Bus ported Nad | Counting Sema phox’ > Watt (Semaphox S) Gevalug = o- tqlue <1 Y it fiwlutco) °) Sashend C)_ ie Pres amd place ts fee tm 42 “suspended 1 i34e\alue = Se valug +1 ff (s-vqlee © 0) L 2 Procts cud tm faSpemded [yy ,=D ® Date 11 : SA) > + Big Seman Gi) ee vid unt {_Semaphoye S. Ses es t (Svaluc = = 1 2 Sivealuy =o 4 cn Su C) te + Dead ged alee Gah fe ioe Sashemd ligt + root 3 vortd Sign0] {Semaphore s) . TS (Suspended lst fg en pty _) : S value = 1% Ise. EL wqeupO ene of tre Prous fom the Susbend 16 4 A Nok != {€=o) use Com! pacdict how many Pancake axt_Sa spend Lor not ¢_Ds hase to Sen he ‘pants Ant Gushendta}Date J | RANKA VG$) => Sz 2D Suspended (st 1's aot ernbty walte ab L) get ' Page ___l 9=0 t Cis) > ($= 0) >» Susbended . ay ss} Pes) Dd (S20) 9 Ges_out ef program j ei s=) | Nis) > (S21) 2 Suspended bist. empty { be ts) j SEO +t Yes) 2 (S21) > suspended [ite empty , tS fy S ep ‘ Vtg) 2) +S20 =) Suspended “bb+ fs mod Ernpty wale up ld é @=d) ‘ 2 Sea t t ( ‘ 4 pDate 1 Pago RANKA QI) Pr, eta ‘Gruter_J— Benany 7 matey = | repeat, _ ans [ sts) 4 Crittes} fection} V tmutex ) foewn. Ryo = identical > Nemutex) = 1A plac P mute) largest mo- ob Prout ins 4 OS. e Py Ww ® ~ @ e Po (a Rio whielt) whitey) white whiety) —— whiel) {Lp lmute) 4 plu) — 4 _pemerts) Lorwrejte) 4 venasee) EH @® €) fax] Genuitec) _ = (rng) __Vemartex) ae “iH 4 } 5 3 % aux = 0 Cs ede] 4] | & [pe ests [od ex Jed | 1a TRIPP rrr es UPUPOUnTe@wea@e : Sapa CLL hha Pod pf | List ~ 77 Pi & Pio = achive => o Max mii, Procupys aot Gnu Hert +$o@T Joly) whie wy 4 betel") Print 1" ant'y! 7 Petnl 'V5 x ws| Beinf_of tr > Lalla. Counding Sinaphore ied ott Fax cack of 42a — __|mo- of filed slo. casyde Re batty. ony por'y} Ofte. Somapt wove PUL Vold Protawe 4 tat Memb) Henn s Prodarcer () tol Crafty) J wed Craatend 2 Bagger Cond = Hemp’, Melina) ined Ny Sigal Crnater) 5 Stynat (raw ds Een bty_ i464 Loon! bf ba Nor of Genk Mates ts at bingo | Sexraphooe eRe Gaia Lived bye the Produc, Comsumar “JO crccew tRe. Buffer tog Mafaglly Gcclusime snanner « tate ft al aye Prockea Conga. Problevey ttt Ie Wel p of Sem phone = MCR CU Lon dul : SUE Yoke Semmphor Maer 1 Semaphore Cinply =e WY maa! Mold Consumnen(_) ft del Homes wot CPU) wotl (Muley Homes Basfer foul] 7 owl © (oa) 1) mod NY Syna | Cmatex) + ayeio| Comply + “eOMSAME CaHernc). "+ Serenfphort =\Go “ett ieep fae, i Slols + Cnstde ctfte Buffer _a-f omyY ww Sel Syachronssatien w y . q Y eigog- eof 4 é1n ot | me : b Jeineous i] & feoga Lomymy & Ze a ‘ ote 3 3] od ‘ a 4 Q 4 Ss £ l 4 | 6 eu 4 | rf, ‘ € Mudey = 10 of net souks very 7) Qmiply > g Eonbrtly = 28 SAO} ‘ a= © ne ful= ¢ e Semg hort _1._q_Synchrwisation {oo . ‘ uthat dit fneappeny ph use fader et wntifents) & wart (ruler) in Prodeteen’s code ems Of Re Heme Produnted by Re Broducon ult! be lose i ZH stp Problem tht Code ttl] usoves fir, 3y will A I lk mux = ¥ G0 ‘ embry = FB Roe -3, 7 Aue eT 5 Ql what yin vit at Ar a as feo: (pal) Produesn’s Code eee ‘cot : Smpty = St Paz galtPage 2as Psy = S-1 | te SSO Aan walt 1 disy?= = S44 ] f% $$ 0 Fen waleub 4 pou. fe Va = wale end stjnal — Binary Loe Ye Binasy — Ps Noy : | Ps) Ch, Lee) Yes. Ar bay I = $-le Segal) 7 it anf ) rf ($Lo)+ ACuy Ce) 5 YeLY } [ Pe TYE) 9 Ng (X4. j t \ oa | Gs; Ab=¥ o1 This postion 1s macomany , beaut Ye taht IF IS nod tM TS POS Lbs GUNS ee wa eed ago : ie BAL Ho ett —o pouption tr Yesy S: Bi: 71 O- Ctr. Com —tuajee sulp id [i No fue Stymet Prous Cam Peiform Watt and signa] Sinultansously -eb 4 4 . tot Readout = 0) Void Wain) void 2 wost( wot) *, 4 ‘, i as é igen] [wet ref (Pad Gumt==1) wot] : oI a) Cs: at (mutex)? Readéount - ~ 7 , Atoum| == igpa) pg' L =—& AZ 2 we ! t LHe) TEN ‘ ee | j i fe = nll 4 C4 ; Awe? ‘ Ze [ ‘ y 4 ia S-foels ( ining _bhilesbhin : S—pilLesh pin D> Pb 4 -feals- a€Sour 4 a tat -ridht fol, ) +p Dead loe| é ond - a \ 2 é 4 [+ P(tef4) $= int pfs] — MV -semaphog 2 cD) 4 be sj T T s aa oe wap My 4 4 Ni) 4 4 € ¢| Con Cunaemt eogeqvaming Sy2t a= bacy 4 ASreid: ef, el Sa aig 2 4/d as hegre ; weritesed 2 4 ard, Qeh t Segdset = ap br Cr dy ey yr ara! | use Com exeerde Si and Si Slakmenls Parallely ox Concurrtn|ly tp. Od only ME follortna’ 8 Conde” gre re Sahistred Gtmny] famsoasly » © RGA ws) = $ Ww Rg) Awtsr) = > WD ws) Aw Us) = gb Cet) {ated tes qv a 22 S3 NV € St Par kegin bein.) Sy fee Say A Sa, | as S3'r Sa, } Parond end at SOs Sahn 71) Hp? | Sy 6 4 } | LTE LS) ZZ j om Ga! 1 1 3h. ; begin \ ! tobe i B 4 Pasbegin ( 2k i bein ( i is Se ‘ ot $34 F Hh 4é end i it ab begin | S4'r ‘ 35) end’ Sb; St; “Pavend end,tH (oumt = 07 yoid ‘dolly ( ) {ome y foc(teo7 (6S; pet) 2 count = foumd +) > * 7 tat main CD < par begin dolly); — dolly (); — Porend * ~tharn 0 Qpunt = wound +1 Th execu fed ag: Owe Ry [wont RERtlS © Shox MPtouns,R; 3 a what Could te th minimum and marimym wilue af CounP af te eecytion of FRe about Conurriat Program = @ 3,10 2) Io © 3-10 @ 4,10 ©_s, 10 Pi Pe @M_£=0preempy 8 @ tf: ot 3 R Hong 8 1 abl: @ a . < : @ Shve= OG) —a Z ) 7 OLY FOLZSA ES bo 4 2 7 7 [Count \ —377 ax ++ om 0) > yy eae fy 2 i a imal J ae Fos) Sysdem.cal| efor 02.6 4. Sygdem call, witht Ivlp of which, 9 ee a MN acluens., Positive Inkegen p30 Wu Porch Pap? 5) ocluins..0 40 Se child Poon - on ean MH relams Ye indegen (fy chitd » ration iz Ungucers eqs? Fore im. plarnserdation = ABE fo4 mot) Se tad pid Z a | + pid foe), chi cation if (Pid > 0D A pans § (or om patend Pros” ea (pid = = 0) _ 438 i a A poinf Clchild cotation is ¢ isa ccsfiyl") 4 PoP ans \ ‘Glory 0} net STara_farint_Prouunt -rl am child ARe_Paron| _wat_have dytferund physica) Ray unt hove Same vidual Gddyeneer Meu child.gd-1s 4 -child ‘ Page TRANKA i fob main UD ( 2 efosls CY) ® 4 print (“Hato | 7 = ( fone 1) 7 —$- 8 HO 4 binbt (’' Hello”) 7 BOB { sor () ; i ‘ punts (” Hell 0”); F7hih blu 07 + 7 Peep 5 5 Swed 7] @® Gicllo) ; te Att ded 4aad 7 a] fio ‘i nT se oe © Ss 4a eK (Co) 1) S 4 Séa 6a ‘ © ©) © G) OG) G x x x x x x x if— fock Gall ts tn Serial Order — 4 “TStaA_no+ of chitd pours = 2%-] : N= nd: OF Bele Cally ‘ & Total nor of Pmues - 24 4 1 23: € Pousy —Tedaletn 6D past-$ Cuaio”) + foie t) 11 sk) 2 = eg. 4 eee _peia$ (” wetto") + beret See ; ee i ( e() KG foi) ) = 5 ans ( 1 eno”) 7 : ' | 2A ‘ points (” Helo”); a S F is a bentt (7 en0”) > [ yearn 07 ' 1 q ' > ' | a i \ 7 i E ©) = j = ! AA as x Cy G2 2 4 ~child t a =a BS = (Hazes I EX So Pears j 2 @ == PP oivick. Au Bs fvie ax 4ucemfal] ve —w ) scmnnef reef seep rl eon nalMonctot - Monitos is 4 pangramning lag aye Higt Comblln Subba Ho 4 tchines Synchro ahion + Sis Colketion of varights » Condsth liom _Varighly Seg re eee saat lemouun onitos sll Th most ‘posoa]- Pre parts of Re Moattoc 5 Hat { poly 9) tnside “e2 Monitor of ait Poi] of limes , toonttos ramble. ‘ ¢ ‘ word Vaxiabus +, ‘ Condition Variqhly ', ‘ Papeadure "Py ‘ 4 ‘ al é é Pmeedure Pa ¢ {. ‘ =e 4 4 2 . ef wait () umd Signal L) Condon Kon Der waht) ory watt OU) ys wort) cued (y | j , 1 Hr Signal) Sipe O