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

Assignment and Notes of RM Aos CC and PPL Subject

Previous year solve questions papers answers

Uploaded by

Harshal Bawa
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)
25 views17 pages

Assignment and Notes of RM Aos CC and PPL Subject

Previous year solve questions papers answers

Uploaded by

Harshal Bawa
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
Assignment No 2 (jrmcrm Netz: () uJ oo >| ap is used! for examine or change the signa) mask for _thyen: S| comment "" dn Wnux the elles arr Usually acces: ad wa Ftjenames: >| sp: refers to phe fact that sn Unux Cond unik-Iike operah 9 system ) Alles ore idlenered and tnhova ted with primar'l; taecough thery frienome- wc\| iad is sm bolic Link > zr rs_also Known as soft tink: zt fs a pile that points to Another pile 0 dfrecpory th a fille enn ob| Explasn sticky pit Aeoity | when the etick » bit on: dtrecfory it restrict the dele ron. __|_or renaming of Flies _inspole that dive ctory « : specialty only pre Owner of frit, directOTy or rooh user can deleje or rename Files within that di vec rt | whats on 2 | orphan ert na Boy 1S assign Oxpha fo the it Oct Y Ne: elem H i oe, ces 9: ce, fe shill has an entry jin Process fahje- £)| Random access i/o is pot poss/hie for pipe piles” yushpy: >| pipes axe inter proce. com mup/cation. in os» ‘0 _a/jaw fo he passed petudeen fu00 proce. ‘no enidirectona) i i ish th pi den: setimp 0 ¢I s rom Ja content in a mp. bur shud 3 7 yed by On ear hier Cals Phot point in the code A + () tin _ 8 ) Date, ih auow 10 return fo phe Jocarion OF setsimp and ey, e i seri pt j re, but th M iS_Whak Js 0) Rlock special File- by a pypeof pile Aroudng i/o access so fI'xt0! Sze Units to such as disk drives: AN 4 & character _specia/ fie - > p pype of file providing uphutfered i/o. CLS In vy sfze units “0 devy'ce- E v4 5 ‘e- cS soctset fi : PEROUTR: 5 Pype_or file used for “communicalhton AetWeep proceso A-socket 13 Used fox pon nehoark Coromun cat'on det” pi, on o Single hasf:' ‘ ‘ ‘ Y Q3- : . oS! i) Explain woot () - blocks fhe colley until a-child process rermingte waiterd (I= rays punchon doesn't warp for chyld_ that porminak trest:_it has_no. of opton phat confros whych process 15 fb" caast3 ancl asst C) 4 —— | eHows a Keres fo rehirn resources used by _rorm/mbd— rocess Summary al! Ms Chi'lod Process: oy Qe .. O hs| pxpla’n’ fhe behaviour of. fomowiog: ¢ program. i | # include TUsNFY " Fo linux Ailes ave usually Access Via MIE Names: becaust oF the FIIe names av Ysed fo Uniquely iaennfy Ries in Alle Ssystem- 9 gTusHfy the Following “ @ process never execute In usey Mode before handling Outstanding sAnals a [OUSHIFY the Following “The inode lock, when set Prevent The other proses From accessing mre inode - lst the FuncHON used for memory allocgh'on. 1 dynamic memory alloeqtion- in + - — Moalloc, caloe ,vealloc, Pree O [2 System Cows Ckerne) Space) mmop 0, Munmapc), brYKO and sbrKO- | i= hak @re Zombie prow Zombie process no longer exist and but tr leaves 4 second for iP PrOCes fo collect | The block morked pied contain nu Eee Suitabre Non Hoge Imben OF arge “that contain real data. p> Tre block marked “single indirect | BRN to 9 block 4, hat contain Wst of dfrect block Number la) me block morked Double indirect meres tp o | blogg that contain list OF Single indivect number: 4) The block marked Tripl? indirect contain t's OF do indirect number J at znode Talo bieck. direct | divech : | divect 2 I | airect 9 [arrest om dive! > direct 6 reed e [ = direc TL = [ (Eres 7 na 7 [Breate 7nd vet : AL] double indixced Yriple indirect jevetae following: rey and return to point © Jay Seirtins O)- Fach process kas ‘TesoUrce limi}: ule Jerry Imire 8) sera limit _O- Gome resources. mid ean be queried and enange od osha is ‘al'snmenent 9 what dovou mean, by paral aligned: a _[alisnment reress fo the crrangement oF data rn mem ord ard how 70 access that data a3 proper unit oF information [J The dake are identined by Meir addresy in memory - 1D & single datum also has a aie \4) natural alfan refet fo slee OF variable not the gree a [processor ‘regia and /09 data path 5) A Natural alrenment 16 & bytes - a 0) writ @ c PYOgTaM rhat copies its srandend cutpat input _ fo standard output - B includ? int main (9 f int chs while CC ch: aere Cerdin )) |= eor) ¢ pute (ch, 6rdouk)3 “explain tn detail demand paging 7A Memory Management __bemand eagng- as the haredwore of foachine support! folowing oa! memes based on pages Jay table INGIruction white exeuihing Parr oF an Faulk occur then GU foush nandie. feu i Nin 8) Capability of going back to tne iMstucton seatning £3 cay insruchin- a i a m memory management bY demang weiael_errer 4s swapped beroven an [ Paging Shere tumber OF pages i f MeMOTY and swap device. nl 5) FF Processes qcees memory Page whieh 1's nod parr OF iis 4 Povking set Phen the syakm fosue a page Ralf —s S Puring hand ting page past he Kerne! Update wor, Shand read the gage prom Swap device Ir Aeccessary- = a © | explain hoa tinux handles @ System Cai. f son Inux tondies system cal en Various ways. EO A) Sotkoate Ikevrupk trang ter controy to Kernel code, whch then derevnines ip TRE calling PYOgvam Should b egranted HOUSE Service. 7 2 SSH “easy Aumbers - —— YD WR isters. Specitie system Cal) beng InvoKed is Shred in gay west Qnd its Or9 UM ED by ae herd te Other Process “reg igre 4) S\SItem cay Scheduler- Manages how Syshemy) couf exec tr —. hased on the process PMO and ae Zz UYTCAK System cay) &Plalo disadvan ages 2F mmap cfaadvantages ee a 2 Performance end SPECIES Tysueg. ee a Sverhtad= Sarg ang Main “what 13 inode 9 write and eaplatn any Four Mode operation: the internal Fepresentanion oF Pile i given by an inode. - “Fr contain the infrmanon necessary For a protess to access Ale ~ 3) The term inode is confrachion or tem frdex node - 4) Frery He haS one Inode- inode apevah'on [0 File owner Indenniprer~ owneaship fs divided berween an jndtvidual | owner a "group" of awney and derined the Ser OP UIurI WhO [have qecess hls fo File- |) ele type rites may be ar Fipe veguiay, dfxecrory ,charrachkir or | dtoce speci) ow pifo- pipe) « [aw mre acces Hime- giving the time the Ale was lash modipred when ft Mas fast accessed And when the mode was Jasr mod! pied: . 4) Number Of Itnles fo Ale. TePresent fhe Number OF Names the File has tn diveerory herarchy: 6) Erplatn working of ready and wvirey Funchon- 3 tread v- this punction used to read olata From Aile desoriplor Into mulHplt bUPFer: TraNOD ‘read claka into multiple non conHg¥OUS Memory JOcahon fn a single Call syntax. sofze.t ‘read (ink rd, consh struck tovec * tov, ine fovenhy | h ©) wrk a cprogvam snustrat use of vfoveU funehion. Lo tnetude “apace sh* ——ae — : — ‘oF dlobvar -a; Print (> berOTe Veorte \n RCC pid > vRorK U) < o) | t Orr- 343 C" NFOTK enror~) 3 “4 | 29€ TR CRIA 20) y Glob var +45 North s uit), Pore Prday Zild WOb=% War = 7d \n 4 Con ItkPid , 9 lobvar war); a 3 excitea) + — a clerint context switching 9 write shi Orr Nore on contex sree 2 context out tening ~ 13 @ process in an OPerahing sys km — Tat _alows multiple proces fe have aingle epu- Contex OF process -1) when executing a pvoces is Sald tbe executing context oF Yo process tne syskr process. 99 Component Shared me mort Fonowing component. Won Oe SP CAES adders oF next inswucti‘on contain Current qddve: 39 of Int ow sysiem [evel content ~ process rable aerines me ste OF “process. _— a vara- contain process control infoo mation tosh need or assessed only io context _OF process. Kernel arack - contain the shack Frame oF Keane Procedure [as a process execute in Keane! mode : “Te Savit o context oF proces3~ rhis happen @hen System rece iwes an jnterupk when a procesg exe @ System cou! 07 when the Kero’) does aq sonkent swith: b> | eortte short note on sianal ser 3 Every signal has name a) These Name an begin with ther Charachmish'c SFar- 8) STGABRE 1's the abott signal that genvwated when a PrOCeSS Call the ‘abort Funehion « 4) mese Names ave at depined by Posinive integen consant | m header < sranal -hy 5) No Sfanad has-a signa number a:'a kill Funchon uses the signal number 0 for special Pur pose- ©) Numerous condition Can aenarar a stanal- D the terminal Ineratd signal OcLuT when Users presess Pres9 Cerpajn Herminal Koys: &) ome _ Rernel generate appropriate wera) Fo7 process Phak was running ak Hme condihion eccured: De | what fs Shew sword te any hoo “responsibih oF Shell | shen is user inferface tha u to Mnferacr __| with jhe operahing ss dt Provides q command line _Intarface or araphi al asea Interface 10 execute. Command ‘nol run applicerbion ° "ESPON! nities oF ohell _ I command “Inlerpeeration Shel inter ped user command An ns lotr them In Jo achiong tne opararing system cin wecuk Sych Ay TUNNINY PYEYYaM Or ares sing rites rocers ContO} + thE She Manages the execunion op Process Ielualfnd Sravring pausing wesuming and permiy him - > Brat _Pxplain -6 § ‘Selenarto for aliocahion oF buster wink ah Scenano 5 #4 achally f» quiet com pircaica ag ‘vores Several processed complex ‘eelanonshin- I 9) Me POUNDING exampte: efi! EAP lain the Scengrjo mere ire 3 Procesges - process A 1B, C- 3) suppose process A Searches burper by GEFBIK GY algoriin hence Kernel a's now Working for process A. ) Consider the Kernel ach For process.A SeaTehes fOredin block “Ft allocate 9 buFFE® and Goes fo sleep “berore Pree PYOtess A Searches bufReT found (F on hash queue a MHiUaes iF a5 per need bere weleasing t Some tO fs Going on henet 90es fm seep Keeping buffer “louw 5)-tohen F/O coMmpiere PrOocers A Wakeup Atleqses The bUFFA and Wak? uP alr other processes veajting Fox th's DUFF | free 30 process B Wake uP+ © Process & must asain 0 go loop HP, Sta Dearching Rrom — begtning “SUPPOSe 7H TF bIKno OD Mody [= BIKNO T MHOdt, bIKNO® mody bIKNO 9 modYy i ni | net In derail + memory layout ¢ orc progam: | 1) pext Segment - Stowe Fhe compile code oF the program This seament i ofc Shared so only one Cory Needs fo bein memory For Pregram that arr rrequenny “execu Kea ley data segment store 9lobal and stake varvabie~ Tg) ass Seyment- store unihalized globe And static variable. neap -storr dunaMmfcalty allocated Memo: 4) Stack- Stowes 10cal van'abie and FuncHon Call iNFoTMalHon @Mnmand Vine arguMMt and envivoment variabie -a Mal section OF memory ig ‘reserved to atore the command fing argument and enviroment variables with neat diagram explain cheering and hand ling signa) fn process state diadram.-

You might also like