Respuesta :
Answer: (a). safe (b). not safe (c). safe
Explanation:
quite a long way to go about this but it is straightforward nevertheless.
from the question we are given that the values;
(a).
Process Max Hold Need(Max-Hold)
P1 70 45 25
P2 60 40 20
P3 60 15 45
P4 60 25 35
#
we have the total units of memory to be 150
Our available becomes = 150 - (45+40+15+25) = 25
allocation for P1:
Process P2 has available resources to run = 70 - 60 -20 = 110 units
Process P1 has available resources to run = 70 units
Process P4 has available resources to run = 125 + 60 - 35 = 150 units
Process P3 has available resources to run = 110 + 60 - 45 = 125 units
from this regard we can conclude that it is Safe to grant the request.
(b). we are to add a fourth process with max memory requirement of 60 and an initial need of 35 units.
Process Max Hold Need(Max-Hold)
P1 70 45 25
P2 60 40 20
P3 60 15 45
P4 60 35 25
Given our Total units = 150
We have our available units as 150 - (45 + 40 + 15 + 35) = 15
P2 is 20 but available in 15, Thus Minimum need for a second process
This means that it is Not Safe to grant the request
(c). A fourth process arrives, with a maximum memory need of 50 and an initial need of 30 units
Process Max Hold Need(Max-Hold)
P1 70 45 25
P2 60 40 20
P3 60 15 45
P4 50 30 20
Given our Total units = 150
We have our available units as 150 - (45 + 40 + 15 + 30) = 20
We can see here that P4 requires 30 units, and thus it is allocated 30 units
From this we can simply state that'
It is Safe to grant request because 20 units will be left after the allocation for P4, so there is sufficient memory to guarantee the elimination of P2
Cheers i hope this helps!!!!
Following are the response to the given points:
- Sure, it is safe. After assigning 25 units for P4, there'll be enough RAM to ensure termination of either P1 or P2.
- Following that, students can finish the other three main tasks in any sequence they want.
- Nope, it is not safe. When allocating 15 units for P4, there will also be insufficient RAM to ensure the termination of any process.
Learn more:
brainly.com/question/24097231