We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

# Cs604 Assignment 03

Question No 1                                                                                                15 Marks

Consider the below given snapshot of the system. P1 to P5 represent the 5 processes currently running on the system. M, N, O and P represent the resources whereas M, N, O and P have 13, 11, 9 and 16 instances respectively.

 Processes Allocation Max M N O P M N O P P1 0 0 1 2 4 3 2 2 P2 3 1 2 1 5 2 4 2 P3 2 1 0 3 4 4 2 6 P4 1 3 1 2 3 3 3 4 P5 1 4 3 2 4 5 5 5

Considering the given snapshot, answer the following questions using the banker’s algorithm:

• What will be the content of the matrix Available? 5 Marks
• What will be the content of the matrix Need? 5 Marks
• Is the system in a safe state Yes/No? If yes, then identify the safe sequence. 5 Marks

Question No 2                                                                                                 5 Marks

Consider the following resource allocation graph. Is there any deadlock in this graph or not? If yes, then mention the dead lock sequence.

Last Day 23 July...

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Views: 283

## Latest Activity

+M.Tariq Malik replied to yasmeen anwer's discussion MCS 1st Quiz
2 hours ago
+M.Tariq Malik liked yasmeen anwer's discussion MCS 1st Quiz
2 hours ago
Sehrish Mumtaz, Nazir shah, Shahid Iqbal and 8 more joined Virtual University of Pakistan
2 hours ago
2 hours ago
2 hours ago
3 hours ago
yasmeen anwer posted a discussion

3 hours ago
3 hours ago
3 hours ago
3 hours ago
4 hours ago

1

2

3