Provide the solution of address protection using MMU diagram? Consider five threads P 0 , P 1
Fantastic news! We've Found the answer you've been seeking!
Question:
Provide the solution of address protection using MMU diagram?
- Consider five threads P0, P1, P2, P3, P4, and four resource types A=3, B=17, C=16 and D=12.
| Allocation Matrix | Max Matrix | ||||||
| A | B | C | D | A | B | C | D |
P0 | 0 | 1 | 1 | 0 | 0 | 2 | 1 | 0 |
P1 | 1 | 2 | 3 | 1 | 1 | 6 | 5 | 2 |
P2 | 1 | 3 | 6 | 5 | 2 | 3 | 6 | 6 |
P3 | 0 | 6 | 3 | 2 | 0 | 6 | 5 | 2 |
P4 | 0 | 0 | 1 | 4 | 0 | 6 | 5 | 6 |
- Find the available number of resources of each type.
- Calculate the need matrix.
- Run banker algorithm to identify if there is deadlock or not.
Related Book For
Probability and Statistics for Engineering and the Sciences
ISBN: 978-1305251809
9th edition
Authors: Jay L. Devore
Posted Date: