Docsity

Operating Systems Handwritten Notes | Engineering Semester 5 | Complete Study Material, Study notes of Operating Systems

Toggle sidebar
bg1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b

Partial preview of the text

Download Operating Systems Handwritten Notes | Engineering Semester 5 | Complete Study Material and more Study notes Operating Systems in PDF only on Docsity!

P * Wien it siaur__the__prawss fron — the nesult of Shane wwen we stw)t tne process fvom Pz, __ the nesult: oF cloned (3 6. — * Bui both the amwos 6, and 4 Ane wihongs because pvo cesses Ane hot Syunwvonised + This is an eXawyle wt Race | Condition. | OD) cnltical-_seaton Problem - It_is tha pant pt tne” r Provan where —| Shaned Wesowscea ANE aiiexed } '») ____ paces ss C co-oyerqati ve proess] evessanin Condition fe ; ____|__Nesess 4 of cities) section — |W Press Qip Bound nn : SSS , Sy "7, sine, only oe Process Aw Aliess I zenit cal _s@utlion , | ile | RAM ples __|_ fon eh AN Kee | shaned |e —enitica\ yj site I code | Hene i¢ fi is using {ue__shaned cde om _ ‘weal section , thon Pr ShovitA Wot be allowed | a a ; pasta the éhaned code. Cenitical secr’o \ o Proqriess ME the cmitical section 15 free Awd A proces, Wishes to We the chittee| serhon but otnen process pinék TH@t process fro m using _Chitical section $0 “this ivi{|l_ not fead_ 40 ~noaress. Ll Fon cxmymple: © PE A Pn Shaned | 2. cnitial code secko uy. | Bounded waiting _ A \imit should be coy OW tne yumber ot Himes the provess is allowed {w_ tne. cmitia! | Section Fon CKAM SSE | [shaned @— Gill section ZA Code No ©F times Visited 6S N Pi ‘= eral 3 2 Q iene 4 poder —Preduses the — products ay wai and stoyes it nn ay ne b er : Me 1 cuymen —consumnes the products which * ig | eas bueey ne Produien _ | poate Buree =) Products “produced 3 —3 consumed by Producer. by consumer ¢ The producer need’ to chek Whethey Wer bugeen is full, If tie louteer is full | he cannot add more produits ito the | \weren. Tne Count DE product is _fiyaremented | ptnewise . i le The consumen weeda to check _Whetnen” tue. ___bufeen’ is empty, if the buffer js _emy ty |. ve cannot consume omy _-produds from tne |__bugeen. The count ¢ woduchs 1s decremented | ptverw/(se i * Pckupo cope % froduver wunt }= Buftersize Bufeer = Product count = Count + \ Consumer count | =o consmmed = Pveduct count > ¢ounr — | INSTRYCTIONL: frocluce7 Comsume7t Mii Ry = count ‘ Jq¢¢ Ro = count: Tr: Riz Birth Is: Re = Ro —) Ik‘ count = ) J, count = Re | Instruction EXecutiow: Assume count = 4 Acta Di Ri= count 2 R= 4 count = 4 In: fy = Rit) D> R=S producer product Tq. * Recount wih > re ae teu = 5 Tos fo Ro-} 9 Roza Consumet—t_pyoduct: Ki: coum = & 9[eomme3} comnts + | Ty ; Coyne = Ky 9 Count =G\ a _ Mhis fs Race COncindy , SS fa ee a tincop nev Proplem = ~~ v Hene thine a4 5 priilogaphens Sitting on Fg found table. They. pads ro ees pa ed AALALeAL +0 ert puilosofhes = F tue pliilasopher eftuen thinks 0m ento c The —pinivosopnen. veeds 2 Ghopdtivks +o | e from a_i of tte _kepy agt "tye conte of the table. ma Phijosoper ) HK 21 Paijosophetz — |} to of Rice. Te Chop suck. [Phijesppwert EF] [=] Philoso phe Lt Here ne chitial Section {fs the choy Sticks | and not bowl of “ice | © Psépo Cope for So\ntion wivy __Semapore. | g White Ctrve ) f_ wait C chops tick ci 1) wait Cchoystick Ci 1 med 5 ) 3 A Eat. si4 nal (chopstick CC) ) signal Cc chopstick LI] med 5); A Think 2 The__disadvaniaye. OF Above Sbiypon Is Dead lock May _otLar Many 10% 2, € 0 wire tne frie. Cwniters ) ———__—~ -+———Thene, ane ceniatu jules #0 be ———— +S imuita neo sly neading of flies ———— —_]S allowed 49 mang —neade $a ~~ —_____allowed to wnite on = Readedw ane. * wot allowed to Head —__ When _wuitena ane wititing oi Te ———__ file Solnton wing — semaphone ———_____————- Semaphor é bo met muher w= unt. = COVE ML For _Wniren wait CW) - 2 | Winite ; signal (Ww) _ _ f Fon feaden walt lm) _] md —ount ++ | ig (head —vount == 1) F ———— walt(w) 4 _Efnat reader signal ©); __/) Relense lock waitlm ) flead—(ounb — = lf Ot ae COUN = = 0.) Signal(w)i Mlasr teade) — Signal om); SS es = eaten eee — aii 6 ne accessed and changed —_| two atomic ee nay semyphone re fyowm __— «9 tO @ uting sma pho ne ! 11 MAGD ULE . —H! Proves s Spute Tyansitiay Diaga na (ealiocation ) yan a HS sh S Gonning) > ermine) = a ye Cexmingted New Jee Renate @unni al {lo evan \ te pera ¢ To event cCommpietioy ») waiting C )_ {its Guspend> © New State Anew proves s is created __ 4 © Rewady State - | ns | a» _pro.ess is Neady | ro Mun but it ps wai ny _foy Ck being MSSigned 40 [He 12) Running — Spates : —— a growss_is sald 1° be th Running state te (py is alloted fo tad frig ill —]@_wainng state ,___ oe The voles _ taw't_ inne thee exewpon 4 ‘tt As waiting fey. lo cvenh 40 \rappen —~ tyowtos \2 Able, 4p ri eae Sevens Wayrens - state, Wei a eree — [© enminated — [re proves —naa_completed te theunig —~ ao E ’ pe ev \ Bee See za) Scheduler. a — _— ed _— a __ "e Transinm of woiess state from New fe tly [eft is also _ciiled — Job Stheduler. > ; so. CA\\eA nd TT iyeed ig less than Shonda “chednier | als Ae arree of _Mulkipregans main : ° ot prese ‘wy time shanin4 | pA Teas —Sthed nor a | or [* No tramition state. a ‘ swapping - speed 1s between Short Tei _And [ene Rim Scheduler tr Nedra Reriee. OF Iultipyoop) oyun Meg * _presens iw __Tivne Shui | | | STS; Short Tena _Scheduntey | Trapaition fO10m Ready to Runniny At fe also calied 20 epv Stheduier Lo speed is yOly Pat Je (t hay a contye\ over _deamee _of mu bip YOO Ht (7 | Minimal in Time Shuiiny _s¥srem h, | dule mag pam XN Digceven e_herween MOOI aud M ivererne| a Monolithic ( fore £ | — - 3 1 Size \S_! Janae. teal | ‘ity 12 evolve | The design of 05 Allows effiaent Aevelopmonit | gnd testing — : | Ty also supponte flexfoility fon addition + new Sh Sem Funihiou , * Convennitnce | Lomprey System Mn be jonvententiy wed : with Sve help of as * Eftioent. ~___(omputey Smtem _comprijed of Many idee = Al) the Nownnes ane rized _e ffiierthy | with te help pp OS. | Function pf 0S : sph 1 Panes Managem tsi file Managonent 2+ Protech SEV Maroyemong 3’ fergorma basic task 7 user Inlettace 4s Memomy Manafement 8 Booting nee v “Fe = Dual Mode, Dpeyutian | oe te get System f fdicin Fim 2 e Couting C4 {I | L-systera (Zi ae cyshowy GAN (Moa 4 | Memory Manas diment AOL Contiguous Metmom Aliocution if [ey ¢ Pa | tb fs a wethod whee _singie romti nuova sec sign | memory Is allowtfch 10 a 9tiocess ot aa ¢ ° a“ | file need ing th : L—T These We 2 PUimeatiy Teal gies fo h court 4 wou a q . Fr | wemony Allocation + ~~ |) UG) Pixea Panntion a Eoth process Js allocutel a +ixed Size covhuunm ‘ ‘ —n block fn main memory . [t fs also catied Static £ _= THis_metwed may lead to iyrennat fraa mentats Oy jp tre Process doBS wot Fully vtize” the. Allocated block. WW Variable Panny ou Tei is afzo caned ap Dynomic Pantitow Fain process ic alincated saa defending on its _nequinements Witout detinesl fixed size: block. “This metnod may lead 40 extemal. fragmentation , \f these holes, (amnot be Allocated to Jayme PY ocess . Straten 1d for {o a eae Bee | Tye ne Tee ee She = 20 L = a a | RQQng | a ———} 0,2 192 if \0o0 ——Danamic Partition — S1rAUEA |e fo) —pettomention Memory alo cation 2 UY Fist Hit: Allocbe the finst hoe to proceSe W) Rer Fit! Miocate smaier hole to (Moers / Wi) ie{orud P-: Mircate (gest bole fo RYO Lens ree aa Page NJ Pag ing j Ik is 4 premony managenton Senge allows —_phystcal addtiess Spats Ofte Dem ony jo be oy conta won L faye N Frome No o | 3 o | Pye No 3 , iit ) | Page No ) 2 pee 2 o 4 3 |4 a | Pageno 4 L ——_ | Wageno 4 ¢ | 0 4 - ——|_Tegical Fo4qe S| PY Al 3 nny Table eienty ot ee | t [ ais I —=— \ SY eee ; icoongaren ih An lvdlon 5 Mj wh ata “Tue e ny tun bys: hav ng wig etl maly Mevrp 4 Pali ll. W@vau ube s pri poycwvid) eee ——— * is techniaue 0 ALS one _mremoy thas pug icy estat On jne syctem by using 4 any Afcse oc enrensiOn ag Main wre mori This is achieved loa mapping on _Addness wed py _proqnams jimbo fhyal at addres (py CoOMjuk y's Memory L* Beten CPU Un lization | * Simpy ver Sec ty *__Lm proved sy ce mn Stabbi ity | How jv Wonk: z. Vertu mern pi WAKA We of Boncept Demat I Paging . lalnen “prowpiam needy 20 alps a part tt Memoqy “hat Is wot copter “y RAM, the Dreratingy Sustty — wapye, Sie a me eel pags Raw to a S2iond ae Of _vitgtye : itil —twhidn may tend 40 portonmiyie, He tadled ou Thomahinge fe an tated tage. [sie te “Imtotrtame es paar sib whootcteh rennt—te—aveid over Ioading of ~ — L— [Demand Paging [leis the teunnique Wed 40 artimize “tHe We Of Mew nnn Hesources parti clan ly if SH Stent Which, empl ou Vit cLt, Ynewso¥s ty d The _4dethviqua -QMrAWIes tt ouly nevessany PALS ANC (panded oy Main wmewony at o° o Ld g Tun time * Mather tom loading enti te Cg pnocess nko remem ad Stoorb EAant ple [wae 0 am a | faye4. fore | \ | \ \ne a) aft | gt tage 3 2\ \ \roqet 4| 2 Page? Logica Memon y ‘faye : Table Pha sical remy ty | g | A dvanian es + lanye v ttn mena in + Barer CPU ud lizasl on Do Suppor degree of Mudd prompammyna, Ks _q dog YY V Dis adv ay ayes °° Cvrotmueh heqnire luge b : Pane { \ Mae tebe handing