Consider the following table below of a system: Allocation Max Available A B C D
ID: 675320 • Letter: C
Question
Consider the following table below of a system:
Allocation Max Available
A B C D A B C D A B C D
P0 0 0 1 2 0 0 1 2 1 5 2 0
P1 1 0 0 0 1 7 5 0
P2 1 3 5 4 2 3 5 6
P3 0 6 3 2 0 6 5 2
P4 0 0 1 4 0 6 5 6
a). What is the content of the matrix Need?
c). Assume that P4 requests the following resources: (0, 5, 2, 0). If this request was granted immediately, would the system be in a safe state? Explain why it would be in a safe state.
Explanation / Answer
(0, 7, 5, 0),(1,0, 0, 2), (0, 0, 2, 0), and (0, 6, 4, 2).
Need = max – allocation
process P3 runs, it releases its resources, which allow all other existing processes to run.
Here in order to tell whether
processes that can finish is P0, P2, P3, P1, and P4.