Resource A has 10 instances, and resource B has 12 instances. Each of them claims a maximum need of resource (Max), while each of them currently holds a number of instances (Allocation). Consider the...


Resource A has 10 instances, and resource B has 12 instances. Each of them claims a
maximum need of resource (Max), while each of them currently holds a number of instances
(Allocation). Consider the following snapshot of a system:
Allocation Max
A B A B
P0 1 2 1 3
P1 0 0 5 0
P2 5 4 8 6
P3 3 2 5 2
Answer the following questions using the banker’s algorithm:


a)How many instances of resource A and B are available respectively?
b)  What are the max additional needs of resource A and B for each process?
c) Is the system in a safe state? Explain your reason.
d) If a request from process P1 arrives for (1, 0), can the request be granted immediately?
Explain your reason.



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here