Answer to 7.11 Version 0 |
|
👤 Author: by 2249049559qqcom 2017-01-05 15:19:15 |
a.The content of matrix Need is P0(0 0 0 0) P1(0 7 5 0) P2(1 0 0 2) P3(0 0 2 0) P4(0 6 4 0)
b.The system is in a safe state. Because the matrix of Available is (1 5 2 0), P0 and P3 both can run. When P3 is finished, it can release its resource, so other process is allowed to run.
c.Yes. when the request is granted, the matrix of Avaulable is (1 1 0 0),when the process is in the sequence of P0, P2, P3, P1, P4,it can run successfully.