TOOLS AND TECHNIQUES FOR COMPILER DESIGN
MISCELLENOUS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Consider the P ____ 0, P ____ 1, P ____ 2, and P ____ 3 process with resources A, B, C and D with maximum instances of 10, 4, 9 and 6. The follwing scenario expains the process allocatiaon and maximum resouces (in term of A, B, C, D)P ____ 0
|
P ____ 0, P ____ 1, P ____ 3, and P ____ 2
|
|
P ____ 0, P ____ 1, P ____ 2, and P ____ 3
|
|
P ____ 0, P ____ 1, P ____ 3, and P ____ 3
|
|
P ____ 0, P ____ 2, P ____ 3, and P ____ 1
|
Explanation:
Detailed explanation-1: -Need: It is an M x N matrix sequence representing the number of remaining resources for each process. When the Need[i] [j] = k, then process P[i] may require K more instances of resources type Rj to complete the assigned work. Nedd[i][j] = Max[i][j]-Allocation[i][j]. Finish: It is the vector of the order m.
Detailed explanation-2: -The four necessary conditions for a deadlock situation to occur are mutual exclusion, hold and wait, no preemption and circular set.
There is 1 question to complete.