Question: Consider the following resource-allocation policy. Requests and releases for resources are allowed at any time. If a request for resources cannot be satisfied because the
For example, consider a system with three resource types and the vector Available initialized to (4, 2, 2). If process P0 asks for (2, 2, 1), it gets them. If P1 asks for (1, 0, 1), it gets them. Then, if P0 asks for (0, 0, 1), it is blocked (resource not available). If P2 now asks for (2, 0, 0), it gets the available one (1, 0, 0) and one that was allocated to P0 (since P0 is blocked). P0’s Allocation vector goes down to (1, 2, 1), and its Need vector goes up to (1, 0, 1). a. Can deadlock occur? If so, give an example. If not, which necessary condition cannot occur?
b. Can indefinite blocking occur?
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
a Deadlock cannot occur because preempt... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
E-CE-OS (62).docx
120 KBs Word File
