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)
20 views
Unit 2 Operating System Notes
Uploaded by
Ex Maheshwari
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Unit 2 Operating system notes For Later
Download
Save
Save Unit 2 Operating system notes For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
20 views
Unit 2 Operating System Notes
Uploaded by
Ex Maheshwari
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Unit 2 Operating system notes For Later
Carousel Previous
Carousel Next
Save
Save Unit 2 Operating system notes For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 16
Search
Fullscreen
| UNTT-2 - Conenvvenk Process. Full exprainadion \ Agenda | objecttve- \g a [objec e E \ 1.] Process and Process moder. a 23 Diffeyence biw Process & Progrown Bury a walt and blocking watt 3 5 3.1 Principle of Condurvency - Paes ig 4] Producer Comumery Prokiem- 5.J - Mutual Erolusion , 4S condeiony and tequivements. a aa Citifcak Section Problem. fe fe f Dekket'S salution ; | a Bwy waiting © 9-1 Petekson Soletion, difference bio Ae [ Coneuvrent % Parallel execution, : to] Semaphore and it's tmprementadion Scheme. At Sosution of Producev Comumey Problem wing Semaphares . 12] ~Finfte budfey_ producey comumey Problem. 13) Reader (writer problem & RS solukon £43 Chossicok Coneurvvaney problem. 15.) InterpYoes Commurtication. 16]. Message Posting Systern. 7A jaye Cet begin. =~1] Process_/ Process Model ~ 2 Process isan operation which taker tubes” tions _and execute accoiding hy. y This_is a_sequentlas_progvarn in exocukon. q Te contains “Pur sectors - Text - cortains progam (code. Ls Data information” e LoHeap- dumamicatty allocated meynory LSteick- ongaliy empoiety dodee na ok A Heap Dake Text a 3J_PYocess US Pyaqyayn es ell Procers Progyam, > taka frtiuctions & | Tt tsa setof (mtiu- perferyn action. clon. 3 Depend) on pioqvamn.|-> Prog art are Indep on. ndent. > Separable x loadable [7 performs a task / module thot dum dak to an ca coneurvently, )4 [paee] Page: ees > Tks an active > Te is a passive enktty, | entity, Busy watt vg Biocking watt - Busy watt | Rlocking wart wy) J Ws fa Soop teat [8B TH fe a situation Yeads the states unite] where Infinite waiting busy dit_ become cheay._| Occurs. ee 7 Thoceurss when > TE oceuyg When pYocars Scheduling overhead és | Yerourees ave needed foY Sovger than expected another task. | watt time. SENSES Rome ah i > Tt ts schedule bared | — Schedule based ah q approach. approach _f ‘nappropsiar, i £e. Ea — | 8] Principle of Gneuwyenw - : UO > Tt is the concept of things to Papper at the game time im a system. Td Tt ig a technique that wakes proqvarn move usabge. 7 TL based on folowing piindple — 2 execution speed nat predictable * system fnkevrupts rot_predietahle. © gtheduli meu pais bekege ChangeExarpie. Loading “rutti ple is ina tab is eoneuttne ok gate Ene. = [43 Producey Consumer Probsem, iE Stott} ing, i ua —S | 2 Cor ss & | Producer —_batfet Consuim ef || Heve, Produce’ PYocess + Produce data item Consumer Procers Comume dasa item > buffer is wed blew _praducer 2 Crnsumey process. Rees S S Problem t wi > if Butfey ts fal then producer can not store data item in tt. + # Budfer is empty +hen consumey can not ACO une =) Solutons- | _Tf batfer is not fat, Producer Produce) stove data eue Stop and wait urttt buffer Tg empry tf buttes fs not empty 5 emumer —> Conyume /accers dateelse cies watt unttt buffer becomes gon. [85 Mutuat Exctuston - > _ Tt ts a plocers_ where, she Ls chal allie I k Teputeet wins of c = coae v 9 iv L DD = [ OT@D Ke it eoatting state - 7 a >_f ene: procag ig using gome shaved i q YOousce then that Yaoutce of Talahle i i wit be exctuded fiom ote’ procesgea, t Condittons — y No _Aeoo_proeerzes com be msde critical Section at a xime. : +_Cani deermine + processing speed mo. of CPU, ° @No pacees outside is orrticag + Section shawd block other ¥_pTaceiges. 4 « No prC@s chowd wart Sibiond Jong to enter [ts NS section. a}Date: [Page: Requirements 3 Wo deadJock state > Efficient wa (kind. | 3 1238 ten “ie. if >_ WS chances_of clash | 4 33 Crflicad Section Problem. @ Stution 49 Th isa code geament inside a procag where shaved resuiee ave accessed. > Bach process has crttfeat secton. AM processes Crecutes tn Critead Secon. |) Solukion- 2 Mutual Bxclwion eo Progvess £ tf evtecad. section to ompby. and proces ae exoeuding cudside vite ical Secton then those pYoees con cme iwide cvitcal section in a maintoined yanney. ; = Bounded warting J Each proceg Fos Bound oy Limit that a Row many dimes, Tecan _enteY to Ite evitial Section,pare | LI \- 7 Pakevy_ Adgottthyn « §3 i a i Teed in nudliple proce Sntubion. Fealver aitieal section ptalern for 1 fal ‘cesses. Process <> Token —9.——$§ Taken ra > Max cprevioustq gh ven TN) J Fis Aigotithyn od Potmed foY develo Aeenbuted Venvtvonment F Te antes procgges_frutde thet ar itical (Trees fed het ken wo foo] Ta drawback ie do mot sue that 400 processes can not fave Same token 10. 9) dekker's Sotubion - = fei two pacesses based on #0. * Seu Pee fy (Sarl ae = te loo cheek asta’, ° a blaakioatd t J Process Hist enters tn ae > hen after checking pYacers mia. on black tpald, te enters cvltleal Seetion, 2Date: Vv Page: f 1 i) Bi 3 woadttng - Tt occ, a Process-2 tYyfng t0 ontey fh evitfcall ceation. Process -4 alyeady tn Cyittead Recton but 10.} Peterson Salution — > Cassfeal Yw based olution af critoal gectfen problem. 3 Muduak exchusion 18 assuved. = Progress ts abso axsuted » >“ Bitinded watting & piaerved: + Th peterson's SaluHon + wwe have 400 it Shared variahtes - i Q) int tun? “The process whose tern us to enter the cvitfoal secon. Gi) bookean flag $ this ig used 4p wd tale ~ whetheY she praceg fs seady to enter the critteak sectfon or not: ovtthm $ do } fidog LU1= TRUE tune Fi Lohede ( £909 LF) 88 tuYn==7) 3 euttteal section flag (t= Folse; i remainder section i 5 white CRvE) 5 |41] Concurrent oxeukion US Parallel eceoution, faxed Execution __ Concurrent Execution >_when operatton ean 2_when operaxions ave |_oceur at the game etme. done at same me on diffesent procersorg. Tt fs. the property of sthe_proqvam. 4 U > Tt ts the property of machine. ca D> _Tt ts most wefet method for _stinctuyty 2 TH execution efffetency importa & programm that needs cthan_we prefey te veSpond te multiple tru. payavter execution, t 42-4 Semaphor 5 3 _ Te fs a variable ov abgtvact detarep © used 4 conto’ access + a Common Yegsurce. Fit provides a much mave oiganiged foach youl set ; eppvoach for cont alting Muskipke pYocesser > they axe foals which ave wed Io vealige “the mudi enelusfon. 2 {ek 1 Semaphove $ fe an inkeqey vartable ie can be accessed using too atomic TSoperadores , walt 2 Stgnot.- = watt (Ss) § twhiletS<=0) a T® do nothing* / J Se 8-15 4 8 iqnad Gs) Eat Ea = oa | Sz Sad t exampseé Po Process, S2Statement 1 ks) Py Sa me need & executes aftey S2 ontey : — then tue can be contyalted by semaphore. a || Disodvantaqes— + _ Simple aigettthm yequiye move than I one semaphore. x Te & compler to Implement: ___ [| * gemaphores ave too Sow Level.” & Yery senitive working blu wares od signals otherwise deadiceks wit oceuy.“Technique to overcome the daadoaroge of semaphore. > to oexeame at the disadvantages , we modify the _defintton of wait H8iqnol. + when @ process eretutes the walt operati- ON 8 finds thet the Semaphore value i$ not positive , the procele blocky itsext. ~> ‘The block opevation places the process inte sone ce nce sen a waiting state. Operations of Sernaphove : 7 wo operators ave done, waft 2 SGnal. > _ entry 46 critical Section & controled bu_Semdphoves. watt and signal operations aie _also cailed Pand Vv operation. Solution of mutual excuuion using gemnae Prove. we assume that the poo comets 0 THER, each eapahle of -hodsling one them. The mudex semaphove -pYovtdes muctuat j= exclusion for_accerses to the butter pod and ig tnftratiged te the value 4.hi = wart (fell) § wait Cmuter 5: [I Yemove an item fvam buffer to neste? Siqnak (met ex > Signartempty ) 5 [Lo@mume the item tn ev nertc S$ whive CTRUE ) 5 Prvaducey Comumey Problem Catution + EF the 1a] Finite buffer producer ensumer pyoblen Solictfon wing semaphoye. = Producer Consumer prohvem tS dfsens ged prevfousdy 2 _+hice semaphores ave wed - e bfnavy sernaphote_conkvak access © the butter reset. : 2 Counting gemaphave counts empty Hoes OF Kady emptsy Slots . = « Courting Semaphove auto Keeps tvack of slots (1 Vbutfer- k = Gubsetthe to — Smart Engineer Bab if i on Youtube. cochey i 44) Readey | wrttey problem. 2 > Tt tea Synchronization pYoblem- Te compares and cordtast cunchtoni- gosion_ mechanism. i 2 baste] a Soa | SOD \~— A - 2 write Read egnor rgnrpmerapem i enamceane Pr. ~~ Pq = Process - 8 Pr wants to perfevyn Write ofp operation « PaZ Pe wan tw perform vYead operation [then the: prohtem arises. Sodudion $ > _we ean overcame +nis problem wing aaa || Semaphoy es. we We, wit ¢ int Yeadeount : ~ molt = 15 Q_ initraligation veod countt= 0} 3Page, aa ~y wit 9 18 for both Yeoder & wwiter, 3 _veadeount variable keeps track of how) Many pTOCesIes AXE curently eading “he objects: ss “Test 8 Sot machine tnatvuctlon-g > wed for impseynenting mutual exctus ton. ; i ~ often called a sock’ byte oY semaphoie o =, i 4 42 srqnailabSe » edock- byte =~ i of Toor bbe 4 me A. Seti dock. bute = 4 =o 165 ehassical prYohiem of Coneunt¥eney = @ Produce Commumet Prabsem JF H)_Readevs (writetS proktem. Gai) Dining’ philos pheis probsem - > Cfasfc syNehvonigaton pyobhem. O+a\ i Se Se#! Se : i Xt = SKGubsor' be to Speit cer fe “Babu (osieens. Cv) Sheeping Barbay Probsem + 12.J Tnteipiocess Communi cakion - > ako known as Ipc > this is_a mechanism th¥ouwg h which PYocessey covmmunicater with eaeh other. Tt lows pyacese 49 be Synchronized ag 2 [pa $message 5 e2 =) _Tnterprocersor System f Communtcat on is best “provided by the two fundamentals. Gs Shaved memory Systeynt Tt [Pe] [es] CP2 { —— —— b. Meisage passing Systern +Date: Page: p, Tea THT Pinks] message queue 4 ae Read - message passing tr detakk wit SKOMNPRE
You might also like
Os Module 2 Theory
PDF
No ratings yet
Os Module 2 Theory
9 pages
Os Assignment - 01
PDF
No ratings yet
Os Assignment - 01
7 pages
OS unit 2,3
PDF
No ratings yet
OS unit 2,3
26 pages
Semaphores, Mutexes, Message Passing, Barriers-OS
PDF
No ratings yet
Semaphores, Mutexes, Message Passing, Barriers-OS
17 pages
OS2
PDF
No ratings yet
OS2
33 pages
Operating System Notes
PDF
No ratings yet
Operating System Notes
71 pages
4 Synchronizarion
PDF
No ratings yet
4 Synchronizarion
14 pages
OS Unit 2 Part 1
PDF
No ratings yet
OS Unit 2 Part 1
15 pages
Wa0001.
PDF
No ratings yet
Wa0001.
28 pages
IPC-week-4-5-RRR
PDF
No ratings yet
IPC-week-4-5-RRR
63 pages
UNIT-3 Full
PDF
No ratings yet
UNIT-3 Full
51 pages
OS MATERIAL-part-2
PDF
No ratings yet
OS MATERIAL-part-2
33 pages
Module 4
PDF
No ratings yet
Module 4
62 pages
Week 04 Lecture Chapter 4
PDF
No ratings yet
Week 04 Lecture Chapter 4
45 pages
DocScanner 10 Nov 2023 10-33 PM
PDF
No ratings yet
DocScanner 10 Nov 2023 10-33 PM
66 pages
OS Assignment
PDF
No ratings yet
OS Assignment
16 pages
Os Unit 2-1
PDF
No ratings yet
Os Unit 2-1
12 pages
OS Process Synchronization Unit 3
PDF
No ratings yet
OS Process Synchronization Unit 3
55 pages
OSY ASSIGNMENT 4 Micro Project
PDF
No ratings yet
OSY ASSIGNMENT 4 Micro Project
16 pages
OS Process Synchronization LECTURE
PDF
No ratings yet
OS Process Synchronization LECTURE
80 pages
Csi 3131 Mod 5 Synch
PDF
No ratings yet
Csi 3131 Mod 5 Synch
97 pages
Unit III
PDF
No ratings yet
Unit III
39 pages
Chapter 4 IPC New 2
PDF
No ratings yet
Chapter 4 IPC New 2
25 pages
Os Unit-Iinew
PDF
No ratings yet
Os Unit-Iinew
7 pages
Interprocess Communication (IPC)
PDF
No ratings yet
Interprocess Communication (IPC)
31 pages
Unit III Final
PDF
No ratings yet
Unit III Final
98 pages
OS Process Synchronization
PDF
No ratings yet
OS Process Synchronization
85 pages
Critical Sections With Lots of Threads
PDF
No ratings yet
Critical Sections With Lots of Threads
34 pages
Viden Io Operating System For 5th Semester Kiit University Process Synchronization PDF
PDF
No ratings yet
Viden Io Operating System For 5th Semester Kiit University Process Synchronization PDF
39 pages
concurrency- mutual exclusion and synchronisation OS
PDF
No ratings yet
concurrency- mutual exclusion and synchronisation OS
21 pages
OS Process Synchronization Unit 3
PDF
No ratings yet
OS Process Synchronization Unit 3
55 pages
SV Concurrent
PDF
No ratings yet
SV Concurrent
38 pages
National University of Science and Technology
PDF
No ratings yet
National University of Science and Technology
11 pages
CMPT 300: Operating Systems I CH 6: Process Synchronization
PDF
No ratings yet
CMPT 300: Operating Systems I CH 6: Process Synchronization
48 pages
OS Process Synchronization Unit 3
PDF
No ratings yet
OS Process Synchronization Unit 3
58 pages
Lecture 5 Annotated Notes synchronisation part 2
PDF
No ratings yet
Lecture 5 Annotated Notes synchronisation part 2
51 pages
Lecture 04
PDF
No ratings yet
Lecture 04
66 pages
Lab 3 Synchronization v2-1
PDF
No ratings yet
Lab 3 Synchronization v2-1
19 pages
Inter-Process Communication
PDF
No ratings yet
Inter-Process Communication
55 pages
Interprocess Communication and Synchronization
PDF
No ratings yet
Interprocess Communication and Synchronization
33 pages
Unit 3
PDF
No ratings yet
Unit 3
51 pages
OS (Notes) (ŠÆHĮŁ JÆÑGÎĐ)
PDF
No ratings yet
OS (Notes) (ŠÆHĮŁ JÆÑGÎĐ)
95 pages
Chapter - 2.2
PDF
No ratings yet
Chapter - 2.2
67 pages
10 Ipc
PDF
No ratings yet
10 Ipc
50 pages
Lecture 4 Synchronization v1
PDF
No ratings yet
Lecture 4 Synchronization v1
26 pages
Process_Management_and_Synchronization
PDF
No ratings yet
Process_Management_and_Synchronization
17 pages
CS4411 Intro. To Operating Systems Exam 1 Solutions Fall 2006
PDF
No ratings yet
CS4411 Intro. To Operating Systems Exam 1 Solutions Fall 2006
10 pages
Os Assignmnt 1
PDF
No ratings yet
Os Assignmnt 1
10 pages
Operating Systems 1
PDF
No ratings yet
Operating Systems 1
136 pages
Chapter 4-Process Management
PDF
No ratings yet
Chapter 4-Process Management
43 pages
Embedded Systems Architecture Programming and Design (Scanned Copy) by Raj Kamal (Z-Lib - Org) - 5
PDF
No ratings yet
Embedded Systems Architecture Programming and Design (Scanned Copy) by Raj Kamal (Z-Lib - Org) - 5
50 pages
Process-Synchronization 1
PDF
No ratings yet
Process-Synchronization 1
41 pages
os_unit 4
PDF
No ratings yet
os_unit 4
35 pages
Unit 2 (Process Synchronization) 1
PDF
No ratings yet
Unit 2 (Process Synchronization) 1
79 pages
Unit 3 Operating System
PDF
No ratings yet
Unit 3 Operating System
20 pages
Interprocess Communication
PDF
No ratings yet
Interprocess Communication
30 pages
OS CH 2
PDF
No ratings yet
OS CH 2
65 pages
Con Currency
PDF
No ratings yet
Con Currency
20 pages