0% found this document useful (0 votes)
8 views

OS_ASS_6 (1)

The document appears to be an assignment related to operating systems, specifically focusing on resource allocation and process management. It discusses various processes, their resource needs, and whether they can complete based on available resources. The document also includes calculations and examples to illustrate the concepts of resource allocation and safety in process execution.

Uploaded by

padhishruti28
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)
8 views

OS_ASS_6 (1)

The document appears to be an assignment related to operating systems, specifically focusing on resource allocation and process management. It discusses various processes, their resource needs, and whether they can complete based on available resources. The document also includes calculations and examples to illustrate the concepts of resource allocation and safety in process execution.

Uploaded by

padhishruti28
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/ 9
ESR Name : chetna SWNIGhankar Paola Roll No: ZUIOLB 2005 Subjec fo Operati 14g Syst Assignment 6 Qi Process May AALOCCLH OH ANICuilattlole A® cp A BC HP ABCD fe 6 Os Hoo]: Wai ei 24 $9 Li oo Pa ye aa eS (2 ot zi Ps . 2 | O63 _ 3—________ fy i. 6 Ce eae — 1) cobcuterte Har toto amouwt of resource: OF type A.B.) Toros veources = Allorision + available As (Utittltoroyts £9 ge Cita+6t+ 24+ 2 = ce Cotatiytrt =10 pe Crturst2yH= VW UiVeatemdate Hae ngood motinix Nec! = Max - AtLocaHOn | Niezoh | AB ¢ D Que eras Lae) ee S80 (eso ore la FOR EDUCATIONAL USE Neod a ANU lclolw resources 385 Ban Lavocexion of Lo * YO 0 \ Urdabecvatir of Available e+ 2 I y ih {Ned C09 Z ACU table aa 2, tom plerer (Need CPs) * Available Po wi! Complete. | wvouitatote R22 N22 Allocation P2 + \ 2 sy 1 = 7 Stu ty X Po fa hy Pe 7, y FOR EDUCATIONAL USE i Ha mult Vv a nN Wn j +) App a 5 Chon) i AEE 8 P, Clit) Has Had. Saticfiect 9 = Tequust Py (ttt) < Neoot & Requut p, (1,1) < Available Cr. 3 Dd Let us assume requrst Py is granrea Aoi! O 2 O * LS. P2 can’t comple Nerd (Pi) # > Artoitable— | ty witt be incompute Neoct (po) ® Available Neod CPs) > Avciilable ae Pz can'+ compte SS a cc Neate) “> avelitable te Py cane complete The m_is_in unsafe sree ee [| w vequult con's be _satistigot — — ___—— vy) proces _p2_ req Utedist resource CO, 10..\) Hain con ais regieh | be satisfied 4 Re p, Co,0,1) < Necol P . Requast P» CO,0 1) Availabe (1,31) let us cusume requust ist P> is _q’rcintedp Tuvalu of available ic ef 8 O_ ie | Neool (P,) > Aouad. can complete Need CP) < Avouitabl -". Pa completes ANtOU ello Le. fee Seo) ‘Allocution of P2 .t,. 8 1 1 Fp EEySATIPRAL USE ; a Noilebie Cai) —_ tfleal FOR EDUCATIONAL USE be ==} Regu Pe (11,2) < Nevol (Pod Requut fo (11,2) < available (43,4) Let Miaicume. tne Po tequidt lt qmantect __ | Frocoises| Mtlocation| Max | Availabe | Ned | | ale fe iAig ¢ Ale le fale lc Po [3 [2 lelg so 43 2 2164/31 i tri2ielalyis! | gsiol) Po olzio( 5 3 3 sii/3 Py ig io 1 4 2 3 Inlet L Seeger l ! Ll Netd (Po) > Aric table “Po with Not complete Nesct (P1) > Avaitalo te Pi will not complebe Need (2) Aviad tet le “. fo will Not Complete Negel Ps 2 Aviailolble Pa will be AxoMattia complete ap “ FOR EDUCATIONAL USE = ENCACUACS 82 2 AMlocition of P3 + 3 0) 6 2 3 Need (Po) $” Auailibl "Po can't complote Need CPi) > Auaileb& fk tan't complete A (Ps) < Avi toto le “. PB will be tompletcel A\tcula low 6 2 3 Allocation of po + 602 @ Ce 4 53 INesct Cfo) < Aviaita bu = Po will complete. Available BU $3 Allocation of Pe + 322 Re @ 1 6S INeect (Pi) < Available “. P, pill complete Available, EAE 965 NovaHon of Pe + 2A +t I22 a & 95 ga to Etm is_in tin cafe stare Afe Sequence SPs Po Pye Py > pe 2 Q FOR EDUCATIONAL USE This Process tan'+ pe Feottsteal this j invatioal Frequist - Avett ae lclaAlal ee - fit ea 373 ziito| 1 i fotile 2 2 2 hy oO] | Po. lalol| to 2 is lol], I es [ole lols 53 { ala fUdtie \ lo ee 7+ ; rote [ Too [[Newes CPo) > Avctitavle I fo can't complete Need (Ph) < Avaitable led “Pa wit Omprere FOR EDUCATIONAL Usp . Nero! (P2) > Available Ps can’ " 5 Ned (Ps) 2 Availetiie ~“Ps_cain 't_complete gol (Py) << Aviciilelb te AvIcab we w2 2 tit 2 63 y Le). i Neo S Axvaitabte ~'. Po will complete ———jAllocotion o&-fo + L120 Andilatle 5 1 Le | foo o |e |< + G Neeol Po) S Avtaitap “Pe will complete _ ANG ab Le. BUG locction of Ps + UO | ; i wo 4 3 | [Nescl (3) < availa 2 Pa will complete I ANU CD Le to 4 + : Inttocouion of fs + © 26 I oe 9 ae tf is inthe cate state, cate cedluencs f | FOR EDUCATIONAL USE:

You might also like