loading...

CS604 Operating Systems Assignment 3 Feb 2015

Question 1:   (5 Marks)

Consider the following snapshot of a system:

 

Allocation

Max

Available

  A B C D A B C D A B C D
P0 1 1 1 2 3 4 2 2 1 2 3 4
P1 1 0 2 2 1 3 4 14        
P2 1 4 5 6 2 7 5 8        
P3 2 5 4 2 3 5 7 9        
P4 1 5 2 7 1 6 3 9        

Need

A B C D

 

Answer the following questions using the banker’s algorithm:

(a)   What is the content of the matrix Need?                                             5

(b)   Is the system in a safe state? If yes identify the safe sequence. Show the step by step execution by updating the data structure if necessary.                                                            10

DOWNLOAD SOLUTION HERE
loading...