749 views

1 Answer

Best answer
1 votes
1 votes

in 1 syatem there is a circular wait...so that means deadlock is there ..
in 2 system r2 resources are two one allocated to P4 after work it will give back so now R2 has one resource which is left as availableso now  P3 resorce request is satisfied ,similarly u can see in diagram every process is satisfied without any deadlock ..

so in 1 system deadlock is there and in 2 system no deadlock

Related questions

579
views
0 answers
0 votes
Sunnidhya Roy asked Dec 27, 2022
579 views
Q: Consider a system having 22 resources of same type. These resources are shared by 4 processes P,Q,R and S having peak demands of 3, 6, a and b. How many ... a-1 or b-1 will become -1 which will impact the inequality. So is this valid?
1.3k
views
1 answers
0 votes
Souvik33 asked Nov 19, 2022
1,286 views
MSQ Which of the following statements is/are TRUE?If safe state exists, deadlock can be avoided if resources are allocated properlyIf safe state exists, ... is possible, if resources are poorly allocatedUnsafe state may lead to a deadlock