4
180kviews
Consider the following snapshot of a system

enter image description here

With reference to Bankers algorithm

i) What is the content of the matrix need ?

ii) Is the system in a safe state?

iii) If a request from process P1 arrives for (0,4,2,0),can the request be granted immediately?

1 Answer
37
32kviews

Need matrix is calculated by subtracting Allocation Matrix from the Max matrix

enter image description here

To check if system is in a safe state

  • The Available matrix is $[1 5 2 0]$.
  • A process after it has finished execution is supposed to free up all the resources it hold.
  • We need to find …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.