7.11 Consider the following snapshot of a system:
Answer the following questions using the banker’s algorithm:
a. What is the content of the matrix Need?
P0(0 0 0 0)
P1(0 7 5 0)
P2(1 0 0 2)
P3(0 0 2 0)
P4(0 6 4 2)
b. Is the system in a safe state?
Yes, consider the safty algorithm.
c. If a request from process P1 arrives for (0,4,2,0), can the request be granted immediately?
Yes, consider the resource-request algorithm.