www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS604 Operating Systems Assignment No 03 Fall 2020 Solution & Discussion

CS604 Operating Systems Assignment No 03 Fall 2020 Solution & Discussion

Views: 718

### Replies to This Discussion

Share the Assignment Questions & Discuss Here....

Stay touched with this discussion, Solution idea will be uploaded as soon as possible in replies here before the due date.

CS604-Assignment-1-Solution-Fall-2020

CS604-Assignment-1-Solution-Fall-2020.doc

#cs604 #cs604asignmentsolution #cs604assignment
CS604 Assignment 3 Solution Fall 2020 - 2021 || Operating Systems||

Question No. 1                                                       15 Marks

Let us suppose a system with 5 processes P0 to P4 and four resource types R0 to R3. R0 has 9 instances, R1 has 3 instances, R2 has 2 instances, R3 has 2 instances. Let us consider that at time T= 0, the system has the following state.

 Processes Allocation Max Available Resource Types R0 R1 R2 R3 R0 R1 R2 R3 R0 R1 R2 R3 P0 3 1 1 0 5 2 1 0 2 1 0 0 P1 2 0 0 0 2 1 0 1 P2 0 0 1 1 0 1 2 1 P3 2 1 0 0 3 2 1 1 P4 0 0 0 1 2 0 0 2

1. Calculate the Need Matrix for each process (P0 to P4) from the information given in the table.
2. Use the safety algorithm to find out that either the system is in a safe state or not. Write down the complete available Matrix (work matrix).
3. If the system is in a safe state then write down the safe sequence and if the system is not in a safe state then give a reason to support your answer.

# CS604 Assignment No 3 100% Correct Solution 2021 | VU FYP Operating Systems

1

2

3

## Latest Activity

8 minutes ago
Izhar Ahmad liked Mani Siddiqui's discussion تو نے دیکھا ہے کبھی
17 minutes ago
Fatima khan posted a discussion

### Entrepreneurship Festival

2 hours ago
spacedata, PatrickMontgomery and DamianTyson joined Virtual University of Pakistan
5 hours ago
15 hours ago
DamianTyson joined + M.Tariq Malik's group

### PSY101 Introduction to Psychology

15 hours ago
Ifra updated their profile
23 hours ago
yesterday