0% found this document useful (0 votes)
36 views17 pages

OS Unit 3 Part 1

Operating System Notes Unit 3 AKTU

Uploaded by

Shishir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
36 views17 pages

OS Unit 3 Part 1

Operating System Notes Unit 3 AKTU

Uploaded by

Shishir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 17
unit mm cry gcheduiin aL * Scheduling ts 4undamendol "ok 05. ; 4 a gpa w8 Veady » Task @} Bedeati proces WD men): d to cp enroute & aulbocading arem 10 pergpamed wu. Hehedbe. & cpu sthiduling desisions may take Poe when a prem 4. switches my ns “0 eed tote (on oe ee " ” to RO » (Preemptive) 8. : » waitin 4, Teumingtes » Ay > CNon- preemtive) (iP) Non- preemptive one a prouss ts Quocatd ay U, it doesnt ove UniOS- 4 4 has to wait tor 10 aquest wou terminates. | Preemptive ! Se can force CPEMPL) oF penttss from CPU aE ime, eg. 40 allecats ru to another Highs pretty," SCHEDULING CRITERIA, : x TRroughpat executor ace , utilizad™, keyp Ant EU ab busy as possible. 2 no, Mf frowsses “hat comblete per unit time , (mex) we Twrnancund fime (TAT) > ar. of ime } Portiontas procs (time fom submisgion to ferunind) Crintwize ) % wating Voge > ar of me a prays em wat » th © 2a queue t nnininéze ) | & Resbonse time > amt of time 4 takes rom when Atquest was submited until th! gost Arapones | ‘ & produrerd > Not oukpud. ( vivindce) | PROCESS > pooycam, und, wKdudlon, ] oa use PUDUSS Kuunu| prouss y w wy aun on vse mode. se fun on keene ModE ve preemption vq. a Automatic paumption. ge ee 4. protuss TP > wrque id 4b cusig ned do tht pr0@s. 2+ Program countey > stoves Aha add, ap thy Aast insta. tht proass om which uy prouss wab Suspended, The wu usts thes add, whan esdenstion @ xb pAocess ds Acsumed, 3, Process Stats > ay froeess from creation to tho compArtion, gots thru vasious —-dtooteg whieh orca AWD, ready , aun , wat & teuninat | ens . 4, OPR»& prouss fas ifs own Aq oy, aagisters which ase used to hold tht data which ‘us genwrated dusts the CALAN q thr precise, 5 List of open $C > duviing ecueation, ev prouss uses sore fuss whidy need foo be pyeserd fn the MM, OS alo maintoinms a Sst d open fue “In PCB. 6. Wt oh open devILs > Ust a ay ebeh deniers urhich osu used ca Td) Geil) ne ae Psouss State PR i 88) tat 9% open pewius Ke oimts 2 x Tread > single sequence senor within O prouss. % Baolte unit ev utiUzation > Tread, Ms Muttiple ti ln a browser, — KUT ® managed uses (evel \ ® man oS wb a a ae 4 @ TypIAy goad, (@ lover anon VL @ Faster. wwtert Sultehing (® slower § 4% me VET poy | @ gy one KLT bloukid 5 block! y then ents there « paul blocked No eytct en 0 comtert suitthing Tuo 1 paowss > KLT > ULT Frocess tate Model > tele the uusunt activity, i 4. Now > Ceveatrd) Yn secondary —tnen , 2% Ready > eed to AUN cane in MM) 3. Runtng 9 tatid CPU hy Blocked / wading » th fo actus sptived, . eorution complete 6 suspended <> suspended fea jw Z 4 cxg ekg . Taminate > i uniprog samnding envikon. qu: ‘ > No ‘ody syotr eoz 8 one prow 4 eereurted a Oo Ome "4 > mink no, of stots, 0 prowks tan go into > ® ™ MOK . : ” Muti xomming ewvivon. of CPU: Non~ Preemptive > Frosty, caue Le Pland Pp ae protesses, Pr > Pa Timeout ee; guppose ti tine % allocated to both fi > P —- PaDeesseb, PR 9e8s fo block Stat, Hen Oe us tr’s Firmen op P, eepives then, fob ae with —% who & In Wide, Non preemption MP ) Peeemption Me w when 6 prone ALLE > y Mi Tau (Brey etring) PL) aptet umpbtion. 6 a) Yo went raquixt ents, * paionty oe \" prouss peuUases CPU & | D OmMplaion ) 9) To Request acetes \ 8) Timeout . \ we Staswauon Olruscs * preemption jos PU - 0 pronty ‘& prewets ajo deview. _, Suspended wait Block; — » © prows we tangtc mak prouss 4 Sec. Hema an Suppose 4 Qype size ents, we: Use = suspended seady a4 one, wheneve stot Ovuphute hy : peas, WY Feeh 14" form "suspended veody abs PROCESS CONTROL BLOCK (PCB) gp Te 03 Ups OAL Info, that s+ nerds about a postioutan — paouss into a daa sue, Ya a PCB Process Contant Block), Tt simply suwes as tht i ee a fir Ingo. fe Prmcesses. when, 0 — prociss ws cxecued., tu OS creates 0 wees pondin pce ® when i} founfinates, ‘Hs PCR weleased to tu pool of free rem, locations fo which neo PCBs AE ADL, Process Po os Prous P, Tole i proags is egible to compete for Alb only when, tt has an active PCB arsoul with A Pee Ys ‘mplemented, ab Q ~ aeeoncl contodmi “nse, picers 4 inp . axsouard with a speek inetuoting : % paws star > sro ™ be new, Aeody, SUNNY woaikin: Oo +eumin' * PTS counter > the counter. dicate th add. of pert MAgHULe. to be executed fpr thd prOcihs. - x CPU CPU REBMOLS 9 include arcumuaton s an purpose | Aaglsteus , induc cutens etc, whunever & proanor gulttches over from Me POU oo werd into, about cupunt totus of AY old O ea. with dtu owed iy th “ute aon ‘s thar ny ovis be wife fo conbnur Joust * CPU cpu _stheduting inp. 5 tw inp Includes 0 proess, promty pe pointers fo scheauuling quis, & ary OFA scheduling prameers. 4 Memory tat > this fnfo. weude infp. ax the value thy base & Umit Aster, he tables oF segment tables , depenciog on thi mem, system used by tu «0S, w Accounting Snfo.> ahs Info. Indudes sho amt a4 G 2 veal time ubtdy dime Brits, account nas, . gob ee prow now. & Bo on, , PROCESS: exutution eo preg, thal perpoarns thy ations apedpied wy that progsam . Atte dyed as ah Une whOu a a aUng, The 0 helps create , schedule be Leumindes thy peouss chu, A pons created by athe maid prouss 4 Wa ehd phous, Prowse eb ean be tasity wnmsoued wlth the bulb Bf PcR. wee sence it as thy brain Oh thu (noes which me ay thy exeekal ofp: selatid +o pro- eosing KE PADLLSS ID, stocte, Ragistens ete. Process Moncks involves vartous tars ke wQuen, scheduling , ttminatien & deadlock, The 05 mul oulocids Ruowis that enable proces tp shane and exon ing. dt alan paoteets «thy AUOUELS — Af eath pros fom othus = AUow wynthnonlat” among Process Architesrwu * ce es : . stark >» Sores Papacy data Lier F pommr crane mee, Local voxianus “k rdw add), Pea Heap 2 altowdr trem. whid may be prow- | wed during WSs AU imme [ pa 5 comaing thr variate. yet > Woudes thy tse cuctivity ubich iy xe ponted by Uy value gp Prog. courte, | to | teh Us USed ? PROCESS CONTROL BLOCKS | Ee Hh @ data staue. that mabnyteined oe every PLOWS. Pe should be Fouraipied by ah ‘Hntegot — PAouss TD (PID). hups a a “qu Bu Ingo. veg. to Katp front of OU ANY Prous Giswurs — PAOLUS _Btollut PCR alan Ho Task, comMaoL Blok, Imp. _tomponents of PBS wy Prog, Wunder se psows — Atty teu Usted (GPR) Pu SthiduuKg Upp. ¥ x Awountivg % Busi, Ingo, » a oe Hye agp ie . Yo open yo “Sisus * lo Stotus _ Srppemostion_ > sh Snto. Sndude ty dist of “Uo devices allocated tp this pAouss, a Ltr cs open, files and 80 on, PROCESSOR pple Schesuling a fundamental 0S 4” ail OM"p- Auousers wu scheduled beove use, Since, CPU is one qh any piney “mg ALSOULS , Ub scheduling is untsal to 0S Sehedusi > Mepis to 0 Set poles RZ mechanums sapnted by og that controls thy ovder fin vhich_ the nae "4, be done & wmpiuded, A Schédults. 's an OS preg. (module) snot selects the next qob to be admitted 4ov execution, The mau obgeetive 4 soveduling ® to * cPU ubiUZos® & higher enroughput, Thou ut = 's the am oh Wonk, artonnplid hed wa nen time twtewal. eed rem is bas 6g which, supports fut prog 2 % mechonism improves — th mes il womp. via ty geting More work done %n suhe © Long teem seh Types sp sched wien Auden & Short ” ‘Aon Team Scthedutd | (also Ho Vob Sdredulet) > ns detexerfines ushith yoo. thay be admitted for immediata —paoetseing, The ase move proasses fou con be = erreuted by “tht CPU, 3 TRS pAOUASEL axe KEY in lange Atoha devies (Ske disk yor joker —_ pRowssing , LTSY Aeltebs — propeesses from this pool Lodds ~ them Snto memory. Th mo, WRSE —_ PROLLS Fe LTS extoutes las paquenty. coryols the Degree Hwsti _ Ong) — th fo, ADUSSES wd wenn v Pe + P : 5 The ETS) Showd sake 0 car selittion G} pED- comes Se. prounts thowd be a comb 4 cpu & Tfo bound types. Host PACULESES coh be pest Fnto ony of o eotegonies 3 CPU Reund or to Bound. av proumis ov To bound, shy yea oh MT as ponds ou at kee, ay prostS mu CPU bound yp wow _— * cng qos Tho of geod pettormone BOWE 9 mh? pound 2 tly — bourd SHORT TERM SCHEDULER ¢ LC —_———--. > abe Wo cru Scheduler. > wheneyer cu beeomes id, the 0S must selltt One tu protsses Gm thy yeody qyaue to be executed , Tu suuetio “is casudied out by $79, 2 adlprots — phoresses cach on qpeue fo chute ent dlats process eo fo mutindze PU itteat\ 4 4B gene qrequent. Mediury “Terry Scheduler. « Mest of hu panaiaes weg wore Ho oft. $9 thir oe my tome guspended tre 70 OP a med Q us benaidal to vremone there prowssed ( suspended) from main wer, to band disk tmoke voor «fev othwr— poesse, A sore = datex Ame, tue — pets can. be 'velnaded nto mer» > continued . hae MTS aso ~veduers atu 4. Husipoeg: sng) , when LTS a obser} or mirkwadl | conch Noes he Dispatches Ye the Module that gives schidh tht 8) to ty pAoUss sured by Ay Ts = fovolues | suctictug condert > SWCNUG fo the User Mode oe ump +o th open lo cost SH oth! new enn? ‘ Tre dispatches neds to be as fart at foseidle , as tHe wn oon cut wriert switch, Dispotch ah ee a, Bme veg. for ths athedua to Aop one rouse astose onottur | Fin perormed by Dispatches ~ oy conser seocsting & swithiug 4p ° Osth mode & mou'mg to tht “compet (oration. 3y thy ‘ landed gt ed PRoctss ponress , SPACE - 38 condists thy Gran add, vange presented tp each ) Prous, — Eath —paotwurs is gwen flat 32- oF 64 oi dd. spare, with the Size dupending on tu adi, > Bune 05 vide Seqonerded add. space. with add). existing not fn a ding: Unear % _ Nod Viatual mem, 05 hove o flat! mem, model » > Te ars @h atts a mem, add, Ol Sq valid. men, . Hemory asa have dssodi pesumtssions Buth as end, wade 2 endeute- Th 0 prouss acumes a meth, add, no in a valid memory ava, thy Kune Kile aby psouss with the dreaded" Segrnentay” Foust” mq. PROCESS | TDENTIFICATION _ANFORMATION 5, prous Tdentitis (PID ey procs ID) % 0 bo, used most OS keels (UNIX, Mae 0S; MS windows) ternporaslly uniquely identity oO proUN . > New pwuser ar Created ah fosdk() ays QU me pi) i& sewed fo tu pakent enabling “Fo sey to ty aiid ty fwoher ff GUE. The parent wat po child to Feaminah wth sho waitpid c) dosrninala thy = PROUSS = wth KL), ™ $s or

You might also like