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: 697

### 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

4

5

## Latest Activity

Muhammad Hamid joined + M.Tariq Malik's group

### CS609 System Programming

43 minutes ago
Muhammad Hamid joined + M.Tariq Malik's group

### CS605 Software Engineering-II

44 minutes ago
Muhammad Hamid and SAK joined + M.Tariq Malik's group

45 minutes ago
1 hour ago

### Mujy khamosh rehny dy 🌠︶︿︶🌠

1 hour ago
Muhammad Yousaf Anjum updated their profile
1 hour ago
2 hours ago
Mani Siddiqui and Ania malik joined + M.Tariq Malik's group

2 hours ago