Operating Systems (Ask)
Operating Systems (Ask)
Hence requet of (10,0) wll bean aeons ato |
‘b Process P, request (1, 0 0, this request is lees than need: Need
rcees Pi 23,0) Available rence at, and rust 100" oe rie ite
Request cAvalsle, (4, 0,0.<¢1 8,0) dine a
‘Afwr allocating, 0,0) o proce , the need becomes fl? co | cas ee
x iil | otal aa
irs
Pree Ned Stein sate tne Ts can bse blow
Sa ey etal (6,2, 0 which canbe allocated to Por,
Walaa [ecac|) 0 Aconlng orate nee,
aire ae aa hicce faery
aes oe 5 2 0 Uvaiable,
scare, 0) New sue 3 i
Satiegtae rege Fay pcan ove nati coe p
Rate oO Serta tem wl shed Oo bc 18 2 Othraila)
ted, allocated resource. lence
Alcea
oD" aac D
Po40oLe
eb
" 22 Sarath:. CPU,
This can satiy the request of process P, Since =
HaMIwANDUO Di” AB: Cp,
1002<1532
3-41 B (CSAT-Sem-4)
‘Avi 642 ‘this
source units that
2 8 8 6 (Available) TeRRDET nn ptem,mprocener share m revource units eh
"This Available ean satisfy the request process ote ee Tee
eed Is
Hence, resources willbe allocated to it can reverved and relma oly one masta need
Work = Work +Alloation ‘teach pe
see gai. Show that a deadlock cannot occ¥-
ABCD AB feos than =
m2s6 6 +06
ABCD ee
= 2 1 8 (available Taner
‘Tis Available) resource, an be allocated to
Pros, Since Be Spee, cen
ABCD anep ame
NeiiPJ= 0642 <2 us bilge a atin
Hence, after completion processes P, will lao release the resource. svar Nese Mes Allon sf
Work = Work + Allocation —
ABCD ABCD Sea
Pune coors %
Abe D Mas,