Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
76 views
01-Operating System Functions - Operating System Tutorial For Beginners in Hindi
Uploaded by
Lovekush Kumar
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save 01-Operating System Functions - Operating System T... For Later
Download
Save
Save 01-Operating System Functions - Operating System T... For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
76 views
01-Operating System Functions - Operating System Tutorial For Beginners in Hindi
Uploaded by
Lovekush Kumar
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save 01-Operating System Functions - Operating System T... For Later
Carousel Previous
Carousel Next
Save
Save 01-Operating System Functions - Operating System T... For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 56
Search
Fullscreen
Computer Science Lectures By ER. Deepak Garg Operating System Functions and Character shes Pr operasing System ey a (ese Ahat acts as an \ndewface behaeen Uses ana the. Cambiutes hasdwase and Cowtwols the exection OY OBS Keira ay Parepeins oriseSpacecom |Hordurare [CPO | [Ram fae SUPPLE CEADEINE Subscribe to our Fonetons of an opeeating Suse Yn Chane ™ agement of lemosy Mary — * Device Ma: . ; , moaemend Fe Management Seeusity * Conte’ oves System fesfosmonce “x \ : ‘ Ob Accounting Exror Detection Gids * Scesdination behoeen thes Sothame and ianoeaComputer Science Lectures By ER. Deepak Garg Memory Managunent = Tk veers +o Management of Pema Memen Main memory “Lt a toxge one % Words os barton Lorene each Uses oF bute has fut can cddeess Mask Memery Prrvides a fast, Stowige that Can be Qecessed dtivectly by the Ceo. for a Preapem to be exe cated ke must ‘th the mata memo: : © pesating Sysem Keeps tsack ef, Pray meme What pasé \n Une rte Of tt ave in Ure by Lahem, Usha Posd Cire nt: + Thy multip promming the OSs dedides Lohich get Memos Brer and has much. Ailocates the Memoxy when a Prccess weguests tt todo Ss. De-alls cater the eter, Loken aa Needs Gt os hasbeen teminated - process wil Press ho Process Honagement - Tn dts O8 deddes Usltich bo cees gets Ane, PFecessos Ushen end Fos hous much Aine: THis Rinaian, e Catled Procoas Schecklg » By Ohesati Sasen oes the Pati: cmon Seg ONE Fox processus > Keeps sacs SY ery A SUPLE LEARNSComputer Science Lectures By ER. Deepak Garg) ~ Device Management > An Cherabig System manages device Communication via tho, ‘respective, dence caves» OS does => Keep tracks a 099 Aouteos- We. Pregpam *esponsible Ger this tania known as the Lo Contyotler . => Aocates the Aarina th the most, CHhicent ag > De-aWlocales devices. File, Manegement - Agile Sem te noe Into diectisies fos oe ae navi an and Wace These disectorsiea may Conta fi ard dlhes din rowics “3 a ols does > Keep track Wforsmattcin , Location , res, Stotuy ete. We Canectve” facilities chien as knash as File System. => Decides sho gets te Resausces. > Allocates the wessusces- => De- Miocates the Resousces. g sty By Meni ri Passwosd And Smilax other techniques le prevents Onaustho: i P Hzed Aces to Precrems and Corbet oles System Refomance + Records Requas fos Sewice cmd Response from theJobe Recountigg:- keep stack Hine and vesources Ured Varin jobs and wrese * Boros Detathon Aidg'- of Exon Delehon Aids? Livcionied 43 » Races, omos Othes deb : S108 3 Aadgy oe ~ Coosdinatéon Other SaFhoaxe and Wrens and ass Coosdinatis, zi sh 4 Compilers, Antes pretess |g A SUNPLE CEARNUNG ‘Subscribe to our You(ZZE) channel Computer Science Lectures By ER. Deepak Garg4 TusoriaisSpececom Properties ov Cherecterinice SS ‘USUPLE LEARAINS OF Operating Sustem » ) Reficloitety te Rebabilityis Yat a Sueiem does ena What Gt by designed to do: i, Sefare Level O2muy be more. Retake on eterna, Views herp teak Contyed A the Ssh “fos then oon PUsposes by eating design © Im plemeartation h Sypenis for . y Tris the Pescwtoge A Ame that the & stem is Urabe Some Sidem Cac ches Freq he Unes's Looxk. Both Reliab sy g Praia it, Gre dedsabe, Pri abit 2a Offered by foo factons'- the Preguaney Of ofaitaun Coated the’ mean tine, +0 fase (Mme). Ond the time, Mt hoker to sestose a 838m to A dessting State, Opie Folture (for
Prseat-tine besa Hime. Constoaints , otesidse. the. System Ld.20-LoiN . iba Exampie.:- ScerdiGe expesiments 1 MmedicaS imaging ux WWdustsial Contr? Sa8ems , 6 d 8 es : i Weaben S431 7 Urolie Condo? Systan ete: Sems, Rebate , ou “These Geto Reali: Rad Real time, System SOPE Peal time & Computer Science Lectures By ER. Deepak Gargsa Hawd Real Time & Stern g'- ASUPPLELELLAING TE Quawantees the ‘ortime! Compietion % "eRiticac! tasks En Wis Sccondayy Stowage ig Divinked ress ord Ahe Doda fa stoxed in Bm. En thin 3, . Nivstucd Menno ay Us Almose Never ons. Soft Real Wwe Systeme A catiad Real ‘Time atk gets prosity oves othertasks and retains the porosity Unhd i oe TWrise Systems have _Linisted ae than hard Realtime, Systems. fox Zrample Mubimedia, Vistuad Reals 1 Rdlvanced Scientiez, Protects Ake OnderSa
= Reaves Sytem Rescmcen —> Exhen sive, 7 Loo Mubitasi > Complex Pgonithm ao Prpqeem ' — bas phority tank» > Bevice Danes and ihesrupt Signals t 3 = be Ae > Tread ae S45 SZ Subscribe to our w=: SUPPLE CEADAUNG You(Zit) Channel Computer Science Lectures By ER. Deepak GargTrtroduction aids Spececem Distmbuted Opevatn: stem 1SULELEARAINS Distabuted Systems wre MultiPie Centsal proce sore tp Sesve muttipie Real-vne, appications and Data es eG) Proce ssows Communicate usith on, Natous Communication tines ( Such Mul fle cores. joes ave dartatouted omarg the Pro cessor Ie Ana they +h xo On ts h-Sbeed biter ov telephone Qines). These ave AS loosely Caspred . OF dbastibued Sysems. q 3 Pressose th a Authbuled Spr m Vasa in Qe and dunction. hese Processors crre an Alter, nodes, Compuless and g6 on. The advantages Of olistmbuted Systeme Gre fotiowss og g U —> Resocnce Shang fac yg by Hua an user atone site may beable touse the reasunces Onallabie at anothes- Exchange © data biemaid Speedulsine exchange of data LOR one another vi edie > One faite Cther Woks, + . NE Si Mrese sem, the : oes Ges Can Pp ally Continue Opescching. ‘Subscribe to our — Retier Seavice +o the Cudto mere You si Channel = Reduction Of the oad On the host Comeuter = Reduction oF deh in dala precesss Computer Science tures By ER. Déepak GargFos a ony ena @ wer must have to Requoat fr Ct Sepvice Catt Lahich'is also knoan asthe eee > Poegoamming whesface to the Sesvices Powided by the Og 7 Mey are tupicats Corer of 4 System cig Lontien in a High- leveo lay Ono WT “Where Gwe tus modes in the Operation System hich) Uber mode or Sysen mode, 4 . “Th Uses Ymode —7 OM Uses Processes Gye Executes! Th Syssem mote > Ati pavileged Opexations Ore executed ace \s Ce bMS the T SUPPLE CEADENNS Computer Science Lectures By ER. Deepak GargBasi the Sx\sian Call is an inshuction that request the Os to sm he desised Obesatiion that needs harduan Access os other peniteged Opesatons. *® Sy¥en Cant Qenesates an ABree@td that Conson ihe 00 +o gatr Contsef of the Cpu -“the Os then finde Out the % sen Cael and the Cosrespondi Internkt Handier Rovitne Sa exeaded +o Pesos the esatticn: SUPPLE CEADINNG Sysen Calls are oa Used for Sccwsl Beason s Due tp the 4 Sgpiem Gs, Auer Prrpom is notable to enter into Os Ong Cthes's Ures's Reson, Siniitasry | To devices Ore also Safe Qpace: Computer Scienge. Lectures. By ARnReaRak GargComputer Science Lectures By ER. Deepak Garg From ONG Tvsure bby the Uses: Tues , thoough the Cre, 1 Calls, Kemet, othes Uses Programs, ind 310 Oevices are Se and Secans Prom malicious Wes Programs Making 0 System Call Now System Calls ase divecty Gvailake and ured toheah leued Porguaces ke OF Gr. South Catto in Preepems foxa Pp 10 SO mes: Sen Calls cre same as ¢ i Cs Function, 3 om > become eg a) 40 Ure Sysen "AF Prcechine ' The difesence loehseen Sysem Call and SNosmal-Ronction Call ‘8 that q System cast enters kena) but a Normal function cagp does ng. tas i Th Executing the stew
Sep System data © Bet Fle cd and 3s op, s oo. \Commuricadions System Calisi- These is a need for Communi Costin Goer te Processes in the SysiemGenera Qberations ave > Opening and Closing the Connechon > Send ei messages > Reacting 4 ating Messages. cind 30 on: Magsnd C) Acrcting, O Yregsase Msqren (> echt Sie a. “Thes a Syser cap mar be elated +o the Communi ceticn Ween processes
hese EH . . “TRANSFER OF CONTROL VIA . TINTEa vet M “TS accomodate interstupts | an intesrupt stooe ts added to the \nstouchon Gyete Ln Ahe Intessupe Stege., the Pwocessoss Checks to see ity any mtessugts hae Ocunred | (ndicated b the presence of An whesrupt Signal 4 Hf nointessupts ase pending the processor proceeds to the fetch Stoge and fetches tre next instwuetion 4 the Cusrent pra Computer Science Lectures By ER. Deepak GargFF an intessupt 1s pending. the pyocessos Suspends execution 4 the Cusvent Pream and execute s an’ intesrupt-handies! youtlne: HALT Trstyuction Cycte Lott Interrupts “This saute. determines tre nature ei the ivkeasups Is And Pesfosng Lohat eves actions axe needed ap ASUNPLECEARAING Subscribe to our You(Zi) Channel Computer Science Lectures By ER. Deepak GargAnte ssupt Process ante WD Ceessi Doce se Z AREER. PAO covssing Pwoce lure, in “> Tho deuce issues the Inter upts Tr 1ASUNPLE LEANING a We Processes dinishes the. execution 4 an inshsuction belove “ea to Ane intessupe. Hasd ware. Sok Se a =o “Tasves an Todessupt Save. Remasnces of : Process State infosmation aL Processos finiches Srecution ot Cussent i oy STSUCHON Process Intersupt Processos Signals Acknowedgment Of Iter Restowe Procecs State, Processos Rashes PSw “ntommadtion And RC Onto Conte? Stade Processos Roads news 0 Restose Old Paw Nolue based onIntessupt e Computer Science Lectures By ER. Deepak Garg=> The processos checks fos an \ncterwrupe » TP these es Ore, Uk then Sends an acknowledgement Signal +o he Elo Gevice that issued the. indewupt- The Signal aMass the device +o wermeve ats Interrupt Signed. > “TS seh to wan inteorupt handiex 1 WYfosmattion about the Cunsent pam is Stosed , so that AD Oxe cation Meebe Tesomed Later Indudi Progzam Status Word (Ps) and, Psppem Countes (Pc) O 0 lhe Processor loads the Aocation of the ink ical Gant 2s these one, O Set OF woUtines each Onetupe EF ink ,O¥ each one ieee 7 The iWesrupe handles m Sam Counter Usith the ent hardier. Continus +o Save that is Consdersed as post, 4 Press State, We Wandies Peofous the inbemupt processing > When handter P Finishes , the Saved Q : oe Values are stored inte the Registers that Ovig'rassy had, When inckesrupe, Nordes setums. Other infonmetticn > PsW and Pe Values Q the wessupted pres 1 Ose Westorsed , thu the regen oy Continue to execute Subscribe to our You(@ZB channel wo: Computer Science Lectures By ER. Deepak GargOperating System : Pro ses What is a process? A process tsa PeEAzam i execution ncdudi the Guwrent Vateros % the a Counters, renistess and = Wedifiic.s Gece, AProcese Preqrcm Ls the aw, Loe Lomte Our Computer prossams ina text File @nd Winen we execute the p 1 4k becomes a Process Lohich pesfesms all the tacks Mentioned in the, aa Ond a pregram is that the grep 4 (nsteudion hex as the Process. '\s the when a Prapem is loaded inte the me — Oirnd at etemes a Process) tt Canbe dinided T into Four Sections Stock, Heap, text ond data. [eno] Componcrt 4 Desanpnon Heap data suchas Method function , Cosameters Betsy addsess And \ocad Natalee. Text Heap + This ts dyranicality alle cated ee Memow to a process 7 +b Tone BS PTee s TR includes the Carsrent QGivit represented 'oy Ye Nabe % Psegysem Coonter 8 Content's Of the protessos's Registers YW | Data. TRis Secticn Conta the alt Bead ond Getic Vass aloten : T ASUPLELEARAINE Computer Science Lectures By ER. Deepak Garg’ iProcesses :- The Process Model. Conteprualt (ery Process haste ron Virtual CAubus in eae SPO Surtches back and sth but fo Undesskand the System, kis About a Covrectsn from Process to precess, Muth easier 40 Honk 4 Processes suns saan euco) Paranal -thay te tay to Keep Crack’ ef how the CPU Sus Program to a “This Tapd Sa Back Gnd Posth ‘is Called Muth ~ Boring, Pa Fisst Mode? = Muti psoapammni 3 eae: .One program Coontes “In His thes is fous Pasrems & Process Menon E —< We have Sansfe Shared processos 4 eB Oey Gel Th this “det = Pry sam Contes ig Invhalized to cea, the pad Petqzemn then USti6 the: hetp of i TestsSpcecom Prccess Sitch et trenster a iT ASUNPLE LEARN +o roe @ And exeute Some Faas, Of ros Alex that eae Subscrie to our Courtes fer progzem C is acne You Channel Ord execute Some past gf it and so onto pstasem po, then alll thie Step Contre jt vandomy Lob Ane help process Suditehestuctil ou p Gempiter-saleuce Lectures By ER. Deepak arg | Mais Memos, Meronand Mode? + Munti Pk cessing - Pir crsing There is Ly PrOcexsec, a gee 7 Each Lovth tts can Fleas q Contest? Cie its Own \egucat Pp ye Countes), And each One lute ‘independentty q the Othes ones. These\g Only One Physicad Pp mm Counder,~ Soushen €ach process suns fo loptcad P pram Cordes 3 loaded into the real program Coco Wine it. is Tivos Chex the time. ‘being, the phy sical PRIN Cooder fg Saved in the Pwcess Stored aot orn Countes ‘in es, 30 process Medel = One Prepon atone PE any gen instore ony Process wun And Other Pp weese SHler Some. fnew of te» \n Othes Pom A fale an process? ee lout Only. One Process eset Bune Ot Quen Instant Gf tine. Se TesoriasSpacecam TS A SUPPLE LEADING Subscribe to our You(Zit) Channel Computer Science Lectures By ER. Deepak GargProcesses »- Process States When Apwocess executes , it passes through diffesent States. “These Stages rey Alger in diferent Operating Systeme, “IS General, @ prxess Can have one of the Faowing “ey We Stoles ot atvne.- Tesmmafed| Stast Subscribe to our You(ZZE) Channel “Tris is the initias State When aprvcess is Fisst f SiReT Stosted | ¢seated - a. Ready 1 The press is goer] to be assigned fo a processor. Ready processes ave waits to have the [processor Qliccated fe ‘od, ths. oper r System So that Can mun Process may Come ‘into His State offer START Stale Or while vi At by but interrupted by the Scheduler +o assign CPU Yo Some Other process: 2. - After Re Stole , the process State je set to d the Processor exeates ft (nstsucten: yun nis compte oe Lectures By ER. Deepak GargWasting: Process moves into the Waiting Stole iPit needs to Usait for a ye sousce , Such “as caeing, fos Uses \nput , 08 waaiving Fox & File to become Qvailabie Once the process finishes te Execution, Os itis tesmnaied ba Ane Cpesating Qusiem Wis moved 40 the tesminated State Whese tt ats to be wemoved From Maik Memorps “Tesminated os Sxit Subscribe to our er You(ZEz3 Channel Ws Computer Science Lectures By ER. Deepak Gargae TesorialsSpoce com Process Htexasch ASUNPLE LEARNING Modesn genesal puspose O|S Pesmits Quser to Create Ond dest recesses: A) process i Create Sevexal neo + Processes 2 its te 4 exeashon™ the Creating process 18 Calied Poserd Process, While the new processes Ove Catied Child Processes These axe olifferent possibilities Cencearng Eneateg ne poo Sie Execahon 2 The pasext process Continues to execite Cononnent Lotte Ab Childsen proceeses O8 St rails Untit all of, Ate Childien processes have fesmimated C Kaguantial) Shawng + Etthes the powert Ond childxen Processes Shave al | wesoustes (likes Memeary OF Files) ox tre Childzen processes Shae only O Subset K Pavent's wesowrces OF the posent and Children process Shave no resources tA Common, A fasent: Ss Can tesrnate the texecution FY Aviclren fox o these beasons'- \) The cid process hae exceeded se a ie Reson: > res a been allocated. fox this Gmechowism must be Onaslable 45 alters the Pavent process to spect the Sox ge Cnidven process . 2) Tak Assigned to Child Process is Mo fonges reg iied- Computer Science Lectures By ER. Deepak GargLet urs discus tid itr dn exarmble “Th onix this is done boy the Cosk’ System cals vokich Creates a Child process and the ‘exut SyStem Cale , hiew Lessinates Curent Process — ASS 84C 7 a > pege “Tre woot of see Le @ © c ESS G& Special progecces cuectted b ena by He OS dung Statup. ©©®© ee A_process Can Choose te © Wat Jos childsen te tesminale Example © issued a Wait C> Systero ald Ut Would block \asdel @ riches Subscribe to our You(ZiE) Channel ap SUPPLE CEARAING Computer Science Lectures By ER. Deepak GargProcess ! Data Stuctore Used- Psocess Table £ Process Contre) Qiock (Pca Process Table We OS man. rae And Conteris the Be sousces ba Mine She - Takies ag \mportant Dato Structures to ener wocess and resources ——— “This is the veason the os Mauwtains | tabes, Tlo tables, and Process tables. “The Process tables Store the TO q every process Gnd Cosresponding +0 it , the powtes le its Pcp. Z- TesoriaisSpacecom ¢ : ap ASUNPLE LEARNS 4 | Running +_l ‘Subscribe to our You channel! 2“ *e Printess to Pa, Boaced 4 | Suspend a sy Process Cowtet Bok A process Contaet Block is a data Sruicdwe maintained by the OS for Sesy process, #¥* Sorve Ofesattin Shem Mautain On! fe \nthat PcBhas ee 3 A process Table Computer Science Lectures By ER. Deepak GargA PCB Kops alt the information needed tokeep track of & Procees~ \> Process Stale. Gorsend Stale of the process ie Ready, Rorenng os wating ek & Process panileges:: Allows | disallow Occess to System Resource 2 Pyocess TO. Oniqus identification des each Of the process in the Cpesare System u. Pontes : A Psindes to pasent process S. Pregsem Coonter + Prepen Coontes is a Pointer to the adthecs, a the next instsucion 40 be executed for the process- & CPL veqstese? VauLow Cho tasters Whee Press Need to be oss Dred for execuhon er a Te Ceo Sched Ang ae , Process 3D &B Memory Management i jakon : State. ‘ 4 p cee, a a feaas Pontes Sera sakes: Pronts & Accountme info i> EL \n der tne prom Counter Omount of CPu ued | —_CPo Resstes _| fos process execution , Aime. Limits , ie rhe. execution TO ete- + lo. Lo talus ‘nfosmation 2 TRe indude | G List of To devices aliocetted 40 the ete Procesc- “The PcB is maiktached for a process throughout Jite Bite vtime , Gnd 2s deleied once the prscess tesminates- Subscribe to our TrrorialsSpocecom You Channel Tr A SUNPLE LEANING Computer Science Lectures By ER. Deepak Garg“Tmptementation of woce sses Process Maded is impremented by the Process Table and Drecess Cantse? Bracks hich Keep track au tRformaction 4 process => & the Aime of Creation Of a News process, the os AMecotes G meron) Fos it loads a process Codein Xhe allo cated mene and setsap Pato. Space forit- — > The. sinse. process is Stoved as "New in is PCR Ond Laren this proess more to PR Bole sts slate 1s ale oe wm PcB: > Udhen a urn As Stole bs mages Fria Kid's plemented as li process needs to Wait for an Tlo device , yo Blcked’. The vawous queues Ured-fer nked Qists ar T c ASUEPLECEAREING —— Rumnicg, Ready Bloaced PC Registers Pai oniy pe Rea teas. Computer Science Lectures By ER. Deepak GargTesoriaisSpacecom These cuse mai Follousi as A SUEPLE CEREUS Read quoue? fos Storing the PBOLeSSES Lorth State R Blacked quaues Gs srosing the Processes that needs +o Wakt FS an To device os 0 Rescuree. Suopended quent + Fos Stowing the blocked Processes thats Nave bees bended . Pacem process quane + fos the infomation pace in rnemeny New PLB Canbe Created empty hese Ge Each PB has panter that pants-o nent Po& These is aheader dos each ‘ype Of quae The header Stoves the Infowmaon abast the Lek and last PBs in that quours: “Were ts one morse header nina the Information about the sunning orecess, \qformnation ; hopes these is RO Queus 4 = Prvcesses becouse Yhese \s on oe Process in the System, One move qusus > \owmadion aloud Procese Fires —> WWKich Gree Cer the teannation ae Process Latuchis see or Jelean the es oRer process tesminaticn: Gnd Ko memo: my Chea Con be Wied “Fos a news pes, Besides Changi the State Of Process | PLB caver ut poston or darthes wecSmption hese uct Le}t qf. Tivtiably , the precess Psvazam Counter, sam Chatus Loosd , segistess and other tierce axe Bowed Tn Ane Shack. “e es Stack Information 1s Stoxed in the Corresponding PCB tna, the ne 9 SY tre Process. Computer Science Lectures By ER. Deepak GargThs Sesinngy QA the Status Of the Brenna, Process ih its PCR +2 Catted “Context Saving’ Pdtes Saning the Context of 2 process, the appropmate event — harda furetion ie execaded Frovetamble Fes Wart State fos an Tlo denice ; then ates Sent to the queue A the blocked Processes ™ Ates this these is weqursement that anothes process be Obs Patched +> the Ce ar Cusvent Process has been whewrupted: Thesefose, Shedules ts Calted +o Schedule a process fom the ready jus - Piles Sctecting the process From Ready Queus. its PeB is loaded Gnd disPaitchdd to the CPO gos execution Tin ths Woy, the processes ave ‘\mpiemented by oo Context in Pcs and mating Stade Chage (Possible Subscribe to our You{ZE) channel Woe Computer Science Lectures By ER. Deepak Garga ‘SUPPLE LEARN Process + CONTEXT Switted! A Context Suiteh (abso Sometimes Seffertcl fo as O process Susiteh os a task Qurtch) is the SSrtching Of the CPL From one process oxto Qnothes: A Context Is the Contents of a CPo's Degistess and pager Countes at any Point in Aine « Context Surtch- Steps Process A Process Wh two Processes A and & aren seady oe Qs “t TE CRU 's executing PROCESS A Gnd proess @ in Wat State. I on \nhessupt Occurs fos process A, the O8 Suppends the execution 4 Ane. fisst process 1Ond Stoses he Stowe the Current info: © Press A inits Pee Gnd Context the to the Renting Setend process namely Tite Tale, E xecusing. Save Registes Reload Redictes Process @. In doi SO, Program Coontes From the Pee of Process B is loaded Ord thw execution Can Cortnue uitth the new process Re Suitching betuscen too Processes , Process A and pros Needs PCR to Save the Stote - Computer Science Lectures By ER. Deepak GargInter Process Communi Cation (ec ) Race Conditions: Qohot is Thtes Process Communication 2 TPC 's @ Capability Supposted by opsag System that ALteos One process to Corn uucacte usith Gnothes process The processes Can be Bunring onthe Same Gambuter oF on diferext Computers Connected ‘nese nehoook oS “The nates One pplication +o Core? Gnothes Application Ond fo Several @ppicaticns to Shave the Same data sith out Lith One Gnothes Subscribe to our You({Z3 channel Qe ntentering SHPRE-MEMoRy (Pc) Process 22 Get datac) Processt » Pur Dakar) We needa weal Stouctused coy to Ffac\itate Inkesprecess Communcation hich — Which Maidan aidesgaty othe pen Brees predictavie ebonnos Computer Science Lectures By ER. Deepak GargSubscribe to our RACE CONDITIONS :- You{ZZE) channel “The Situation Lhexe tao os mose Presses axe Yeading or Loring Some sShayed dotta 2 the final sesutts dlepends on who buns prcdsely cshen aye catied RACE CoNnOITIONS Spootes Lets take an example at pad: spasies = when 0 : sOCegs nts nt i = Process LWoantsto pant a file, 4 | abe ovt=4] \Centess the dile name in 5 | Ps03.0 © Special Spocies discctosy Ano th ois thes Process the . a Pamtes Oaemon, pescccatty Checks +0 £es it these axe . Oiny files 4o be printed ard - aK Anere oxse at pants them Cind semoves theisnames from the disecto ei ine that Ours Sposter ae has a aa ho: Of Sick, Numbered 0,12... €ach One Cobabie of helding a Fle name: Aso imagine. that these Gnehoo Qhaed Uahables, Out: Paints to Nert file+to be pointed, Wi Points to next see act Inthe chrectomy as: Siots O43 Fler Odrcady panted A SUNPLELEARAING Slots Ute G Files Names Latich haste be pated. Now The Main iSsoé Comes + Process @ reads in and Stoves the Valus “t,in a Local Vawabte Computer ScienceLectures By.ER.-Deepak.Gargthe Cho decides that process f cess Phas sun lor @ oe “4 encvgh | So IL Susitche Process. @B abso veads in and also gets At, Soit Stoves the © Name o tts » SickF cind updates into be cin §. Then it goes oH and does other ee g Event ; fisuns alk, Stating Prom the place ak Rott SB asttime, Txfocks Snert-Pste tet’, ands a F these 7 And LISS ibs Jilename Fin sk 4 et ie Name thot process B Jost Pet these Then it Computes net fire Sist 41 Lohich is 8, and Sets In tok he spostes chi is new ttesnalty Conastent , So tne Printer aeman us nc ance ingthng wag bot Prress Q Will nee Twecewe ay Out put- ‘Subscribe to our You) Channel ap SUPPLE LEASING Computer Science Lectures By ER. Deepak Garg‘Subscribe to our : Ss “ar. You@ channel “<9 Seton wo Mutual
PP
Coorntes vatus “ts Checked by Consomer hefove Conssaning te > TF Coontes's | os gpsecder Aan | then at Brats exe Cutng the Process Gnd updotes the Courter 7 We Produres ches the outer For the VaLus Qf Counter tov > Thre Countess 1s less than ‘its Maximom vates , Ht means that Aheve fe Same Space in the buffer TE Stats evecutiig for preckarg the dota item cind update steBi TeisSpcecn Countes by — ot ba one: ap A SUNPLELEALEING Lek maoc= Maximom S\2¢ of the bulfes. TH buffes is 400 then Coontes= max and Consomery is beng exe Cuding Others instsuchons oshas not been atloked Tits Hme. Bice yet: Ready to produce data but © pa Spare ai Consomer [ \% bie la setae x | | Coontes = max Produces Consumes puctian > Buttes tS. Tn tis (buffer \s fut ae predces haste Wait Wai) Consoner set Countes 2 decse mending its Valve bal (6naun ) Bury You Channel © Coo | Countes=o Ready to Consume ladhas to Webs fos the Producer “38 Ahly: Situations bufes is em — “a that's Countes =O, and the a aa Sa (Cthes instruction s or has nat been Computer Science Lectures By ER. Deepak GargQuo Hel Fts tine Siice Je Pt ths consomer \srreacky “Ho Gansume an \tem fron the bute. Consumes Wail UL Coonder=\ \lhen the Quéfes ‘= emibly oned produces boany & Fett Clatia items ‘in buffer in While Consomes r= +o Sure \Alhenthe Counter geesto | then System genesates WAKE OP Calls to make Consomes fo Woakeop § Stat — = Subscribe to our AS You{TE) channel Computer Science Lectures By ER. Deepak Garg_Semnpones Yaz Semarrores Semabrose isaversy poplar tool uiedfos process Sypch roraasion Semaphore is wred to prvtect any wesousces Such as Global shaved memory thed needs to be Peer updated by many processea Simublanecursy. Semaphore acts as a quasd | Lock onthe Resources J when eves process Needs to Awese the ve source , it Fisst needa to Cake pesmission from the semabnore - Semabrose Qe _Pesmssion to Access @ Besounce \F sescusce is R5Ee Ofhewusse. process haste wait ‘Subscribe to our ce wpewented ty vascues a, NOULED channel Coontes, a waiting ti C Cea. functions) st % Presses Andtwo methode Sarod 4 alt Loan inte ger Values tethod Signal — Semeaprores. | Counter | Method Wot Woiting List LAA “We Semaphore is Gicessed by Only too indivisible Chevasions Kmowanes "Walt’and ggnal’ Cpesations LShich is noted toy Pond:
Process Pesfosns' Lait’ opescdicn ushen tyieat> enter “eenico Sin Computer Science Lectures By ER. Deepak Gargaq A SUEPLE LEARNS > Seraphose atte Precess to entes Caitical Seafion is not be, Wed val ONY PYPCess O thes Loise deny it 4 = ee @ the Semanor. is decremented 1 a process QGccess CH+icd Sechon a Tratiolyy the Coord 4 Semaprose ist. ond ie HOS accessed ren Coot Aeczemented and become Zem.Co) —™ When a Process exits the CS (it peafomnsthe Signal Oesabon whichis an eit cate SION: tris Loay (the Solution 40.68 wang Semabhore Satisfied the dexgned protrcots. a “The Semabhose Whose vale either ot Wait Semaphose) © es\ is troen as Rina: hese. £ Thy rannaieer Wredin 8 Section Mutuod—exeluson s Signal ( semaprore ) = -— . RUA Ch \Alhen these is more Prccetsernca) % Subscribe to our \semt to Access Mowe Gvaslabie ee You channel then the Semebhore\etatan be guord Otltho thee meme Lecations Ue Valus 3 “Xt means that 2% Processes at the Same tune Can access the Semabhor. Cites gry the Access to B thied press tevatus G ont bewme O. TRG type of eatin sae thed takes ovale Qreoter than One 1S noon a2 Coontig Sem hore! . ] Computer Science Lectures By ER. Deepak GargMONIToR A monttor is a Cea Lorquage Constauct that Contasle Cccess to Shared data: OO Morttos is amodute that encabsulates * "Shaved Catia Stsucture ‘ - Peeced uses! that OPesate on the shased dota Staci. Qynchrors sation behoeen Concusrent Preceduse invocations A monitors is game as a Class type: like Objects OF a clase Cre Created , the Vaniahe 4 montos types Ore Befred Caicad Regions ase Lomtten as Carbs: Proceduses and enc, Tegetnes ‘in a Birgie Madule: — enkay quene Pawate Dato ap ASUPLELELEAINE e 4) 3 - aa Subscribe to our = i foe) | Youll channel ie = | 4 3 6 Computer Science Lectures By ER. Deepak Gargtype < monitostype?= mortitos s+ data déderation mMonitos ercey
Signals Condition Vanabie> “TS fosee & process to exit immediately aftes the Signal Opesaticn, Banal— and-exdkt moritos 1 red: Computer Science Lectures By ER. Deepak GargTEP a press Needs to be inade the monitor fume, Ofes Signalling , then fos Same Moye Loed. d Signal Gnd-Continie Manitos 1 TIE means that the Signating has been done by the procsc, lout UF Ott) matdains alock on the Semaphore “Jane p amrming Lar implements the Siqnal— Covrdinue veel 3 oe 7 * os Wu ASUPUEUEALNING Subscribe to our You(Zz) Channel Computer Science Lectures By ER. Deepak GargMessage fassin Message facsi Seles to means et Communica * diffesent thseads US\th\n Q process: * ditfesexd Processes “running on Same Node * diffesend processes wenning on chtfesent Node non bls “Th this ci Sendes ora Source Press Sends a message toa. Knan Secewes OF destination precess: Wessane hasa preceded Stsucduse and measage xs hdc Sypem cont % end and Receive. Send (name 24 destination Process, Meat ba pa song aseceive ( Name of Sauce process, message) Sendc > Process fp i Prccese @ 1 ide BDecewe) Gesaher “Th 4his cals, the Serdes and secerer processes dddseas each Othes hy names: Mode 4 Communication betiseen tao Process@s Cantoke place thwwyp 00 iS * Disect Addvessifi Subseribe to our + ardiven) Rabies You({ZQ) channel “Inti tyre , the two Processes Need Fo NGME each other to Cormmunicate + “Tha becames easy if Nave the Same Posent. sxanpor Computer Science Lbctures By ER: Deapak Garg A SUNPLE CERO“TF proess 4 Sends ao essen te Process B , then Send (@, message), wecewe (A, messane), by tnessage Passing aLink is estabished bha franda. Here the “secenes Knows the Idendity 4 Sender Me Ge desinaten “The tye Crccancpement indisect Communi cation is knoan ag Syrmmectaic adetsessing. Saag Wee A SUPPLELEATSING |sen(@ mess Psocees - | Psocess Q ———EE secene (A, Protines tyge 4 addressing knosn As Gsynmetsic addsess* Decewes does not knos the 1D a ne Sendl, Process in Gdvance- % Send (G.msq) Proess-t- |, | Prvcess. Pay chroncus Fecene( mas) Reymebric aikbeing ‘Subscribe to our hale Aaldaessing + You({L(3 Channel In this tres: sage Senol cind geceive From o mailbox. Arad boxe can be Abstract Nrewedl as an object intouskich messages Mayle placed and from the othes uihich messages maybeBemoved toy Processes. The Sendes cand weceives processes Could Share a maillbae +o Communicate “We Follousing types % Cammusicadtion Link are possible Yersugh moilbex —? One +o One Denk 1 One Sendes Lands sto Communicate Lavo one receiver. Then oo esrablished. > Mares to- one-Unki- Muttipie Sendese Loant 40 Communicate wh Si wecenes. ‘Wy CWedt-Sesier Stem \ these Gre many Chat? processes Andane Sewer Process The matt bax is herve Knoonas Port xd Ove to-wnang ink 1- One Sendes Wants to Communicate. Laity muttipie weceivess | that fs to broadcast a mes ~~ Manyp-to-mant Sink, i Multipie Senders art +0 Commuiiate Laity mulltibie wecévere Moaa\pose, Sendes Process Subscibe to our MATL@ox Z You({ZD channel w=
You might also like
Operation System Notes
PDF
No ratings yet
Operation System Notes
43 pages
Operating System - Technical Publication
PDF
100% (2)
Operating System - Technical Publication
141 pages
Os
PDF
No ratings yet
Os
23 pages
OS (Notes) (ŠÆHĮŁ JÆÑGÎĐ)
PDF
No ratings yet
OS (Notes) (ŠÆHĮŁ JÆÑGÎĐ)
95 pages
Handwritten Notes Module-01 (Admin by Hanumanthu)
PDF
No ratings yet
Handwritten Notes Module-01 (Admin by Hanumanthu)
76 pages
Operating System Notes (Priti) Btech Cs
PDF
No ratings yet
Operating System Notes (Priti) Btech Cs
64 pages
OS Book Basic To Advance
PDF
No ratings yet
OS Book Basic To Advance
141 pages
DocScanner 28 Jul 2024 7-50 PM
PDF
No ratings yet
DocScanner 28 Jul 2024 7-50 PM
16 pages
OS 1st UNIT 5th SEM
PDF
No ratings yet
OS 1st UNIT 5th SEM
31 pages
OS
PDF
No ratings yet
OS
32 pages
DocScanner 05-Feb-2025 9-51 am
PDF
No ratings yet
DocScanner 05-Feb-2025 9-51 am
12 pages
CSC 206 Note (ASM)
PDF
No ratings yet
CSC 206 Note (ASM)
30 pages
OS Notes-1
PDF
No ratings yet
OS Notes-1
75 pages
cos 304 by kenzman
PDF
No ratings yet
cos 304 by kenzman
12 pages
O S (Unit-1) ?
PDF
No ratings yet
O S (Unit-1) ?
51 pages
Operating System Chapter 1
PDF
No ratings yet
Operating System Chapter 1
24 pages
Unit 1 Operating System Notes
PDF
No ratings yet
Unit 1 Operating System Notes
20 pages
DocScanner Dec 1, 2022 19-15
PDF
No ratings yet
DocScanner Dec 1, 2022 19-15
130 pages
Operating System Notes
PDF
No ratings yet
Operating System Notes
11 pages
OS Unit-1
PDF
No ratings yet
OS Unit-1
17 pages
OS Qns
PDF
No ratings yet
OS Qns
6 pages
OSY MicoProject
PDF
No ratings yet
OSY MicoProject
17 pages
OSY 1ST UNIT
PDF
No ratings yet
OSY 1ST UNIT
47 pages
OS Unit 1 Part 2
PDF
No ratings yet
OS Unit 1 Part 2
12 pages
Bibek Sir Note PDF
PDF
No ratings yet
Bibek Sir Note PDF
62 pages
Img 4480
PDF
No ratings yet
Img 4480
31 pages
Os Unit1 Except 6
PDF
No ratings yet
Os Unit1 Except 6
16 pages
Operating Systems
PDF
100% (1)
Operating Systems
311 pages
OS Unit 1 Notes
PDF
No ratings yet
OS Unit 1 Notes
15 pages
OS UNIT-1
PDF
No ratings yet
OS UNIT-1
24 pages
Osy 1 Assignment
PDF
No ratings yet
Osy 1 Assignment
20 pages
Model Paper 1
PDF
No ratings yet
Model Paper 1
57 pages
Os
PDF
No ratings yet
Os
16 pages
Operating System Unit 1
PDF
No ratings yet
Operating System Unit 1
14 pages
OS Unit-1st
PDF
No ratings yet
OS Unit-1st
21 pages
OSY Unit-2 Notes
PDF
No ratings yet
OSY Unit-2 Notes
9 pages
OPERATING SYSTEM Manual PDF
PDF
No ratings yet
OPERATING SYSTEM Manual PDF
123 pages
Operating System Tutorial
PDF
100% (1)
Operating System Tutorial
97 pages
Notes 1
PDF
No ratings yet
Notes 1
16 pages
Adobe Scan Aug 20, 2023
PDF
No ratings yet
Adobe Scan Aug 20, 2023
10 pages
Os Paper
PDF
No ratings yet
Os Paper
24 pages
COA Unit 1 Notes
PDF
No ratings yet
COA Unit 1 Notes
86 pages
Osy 2nd Unit
PDF
No ratings yet
Osy 2nd Unit
24 pages
Gaurav Khairnar - Fyit - Div B
PDF
No ratings yet
Gaurav Khairnar - Fyit - Div B
13 pages
Unix Assignment 1
PDF
No ratings yet
Unix Assignment 1
20 pages
pgdca_101_OS
PDF
No ratings yet
pgdca_101_OS
63 pages
Operating System Unit-1
PDF
No ratings yet
Operating System Unit-1
28 pages
BCS 011
PDF
No ratings yet
BCS 011
14 pages
Operating System Solution 2023-24
PDF
No ratings yet
Operating System Solution 2023-24
20 pages
Operating System Concepts
PDF
No ratings yet
Operating System Concepts
102 pages
OS CDP II-II CSE
PDF
No ratings yet
OS CDP II-II CSE
13 pages
1 Introduction 325 Study On Operating Systems
PDF
No ratings yet
1 Introduction 325 Study On Operating Systems
32 pages
Trees
PDF
No ratings yet
Trees
111 pages
Top 50 Interview Questions
PDF
No ratings yet
Top 50 Interview Questions
2 pages
HTML Webpage To Introduce Yourself
PDF
No ratings yet
HTML Webpage To Introduce Yourself
1 page
Stacks and Queue
PDF
No ratings yet
Stacks and Queue
39 pages
Lab Assignment Design and Analysis of Algorithm
PDF
No ratings yet
Lab Assignment Design and Analysis of Algorithm
1 page
QUESTION Lab Work 11
PDF
No ratings yet
QUESTION Lab Work 11
6 pages
Company Internship PPT 3
PDF
No ratings yet
Company Internship PPT 3
20 pages
ALU Chip For Multibit Arithmetic Operation 2
PDF
No ratings yet
ALU Chip For Multibit Arithmetic Operation 2
34 pages
2nd Year 2nd Assignment in Python Programming
PDF
No ratings yet
2nd Year 2nd Assignment in Python Programming
3 pages
Ai Poster
PDF
0% (1)
Ai Poster
1 page
Library Management System SRS Report Lib
PDF
No ratings yet
Library Management System SRS Report Lib
13 pages
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
Operation System Notes
PDF
Operation System Notes
Operating System - Technical Publication
PDF
Operating System - Technical Publication
Os
PDF
Os
OS (Notes) (ŠÆHĮŁ JÆÑGÎĐ)
PDF
OS (Notes) (ŠÆHĮŁ JÆÑGÎĐ)
Handwritten Notes Module-01 (Admin by Hanumanthu)
PDF
Handwritten Notes Module-01 (Admin by Hanumanthu)
Operating System Notes (Priti) Btech Cs
PDF
Operating System Notes (Priti) Btech Cs
OS Book Basic To Advance
PDF
OS Book Basic To Advance
DocScanner 28 Jul 2024 7-50 PM
PDF
DocScanner 28 Jul 2024 7-50 PM
OS 1st UNIT 5th SEM
PDF
OS 1st UNIT 5th SEM
OS
PDF
OS
DocScanner 05-Feb-2025 9-51 am
PDF
DocScanner 05-Feb-2025 9-51 am
CSC 206 Note (ASM)
PDF
CSC 206 Note (ASM)
OS Notes-1
PDF
OS Notes-1
cos 304 by kenzman
PDF
cos 304 by kenzman
O S (Unit-1) ?
PDF
O S (Unit-1) ?
Operating System Chapter 1
PDF
Operating System Chapter 1
Unit 1 Operating System Notes
PDF
Unit 1 Operating System Notes
DocScanner Dec 1, 2022 19-15
PDF
DocScanner Dec 1, 2022 19-15
Operating System Notes
PDF
Operating System Notes
OS Unit-1
PDF
OS Unit-1
OS Qns
PDF
OS Qns
OSY MicoProject
PDF
OSY MicoProject
OSY 1ST UNIT
PDF
OSY 1ST UNIT
OS Unit 1 Part 2
PDF
OS Unit 1 Part 2
Bibek Sir Note PDF
PDF
Bibek Sir Note PDF
Img 4480
PDF
Img 4480
Os Unit1 Except 6
PDF
Os Unit1 Except 6
Operating Systems
PDF
Operating Systems
OS Unit 1 Notes
PDF
OS Unit 1 Notes
OS UNIT-1
PDF
OS UNIT-1
Osy 1 Assignment
PDF
Osy 1 Assignment
Model Paper 1
PDF
Model Paper 1
Os
PDF
Os
Operating System Unit 1
PDF
Operating System Unit 1
OS Unit-1st
PDF
OS Unit-1st
OSY Unit-2 Notes
PDF
OSY Unit-2 Notes
OPERATING SYSTEM Manual PDF
PDF
OPERATING SYSTEM Manual PDF
Operating System Tutorial
PDF
Operating System Tutorial
Notes 1
PDF
Notes 1
Adobe Scan Aug 20, 2023
PDF
Adobe Scan Aug 20, 2023
Os Paper
PDF
Os Paper
COA Unit 1 Notes
PDF
COA Unit 1 Notes
Osy 2nd Unit
PDF
Osy 2nd Unit
Gaurav Khairnar - Fyit - Div B
PDF
Gaurav Khairnar - Fyit - Div B
Unix Assignment 1
PDF
Unix Assignment 1
pgdca_101_OS
PDF
pgdca_101_OS
Operating System Unit-1
PDF
Operating System Unit-1
BCS 011
PDF
BCS 011
Operating System Solution 2023-24
PDF
Operating System Solution 2023-24
Operating System Concepts
PDF
Operating System Concepts
OS CDP II-II CSE
PDF
OS CDP II-II CSE
1 Introduction 325 Study On Operating Systems
PDF
1 Introduction 325 Study On Operating Systems
Trees
PDF
Trees
Top 50 Interview Questions
PDF
Top 50 Interview Questions
HTML Webpage To Introduce Yourself
PDF
HTML Webpage To Introduce Yourself
Stacks and Queue
PDF
Stacks and Queue
Lab Assignment Design and Analysis of Algorithm
PDF
Lab Assignment Design and Analysis of Algorithm
QUESTION Lab Work 11
PDF
QUESTION Lab Work 11
Company Internship PPT 3
PDF
Company Internship PPT 3
ALU Chip For Multibit Arithmetic Operation 2
PDF
ALU Chip For Multibit Arithmetic Operation 2
2nd Year 2nd Assignment in Python Programming
PDF
2nd Year 2nd Assignment in Python Programming
Ai Poster
PDF
Ai Poster
Library Management System SRS Report Lib
PDF
Library Management System SRS Report Lib