A single processor system has three resource types X, Y and Z, which are shared by three processes. There are 5 units of each resource type. Consider the following scenario, where the column alloc denotes the number of units of each resource type allocated to each process, and the column request denotes the number of units of each resource type requested by a process in order to complete execution. Which of these processes will finish LAST?
The answer is C.
Now, P1 will execute first, As it meets the needs.
After completion, The available resources are updated.
Now P0 will complete the execution, as it meets the needs.
After completion of P0 the table is updated and then P2 completes the execution.
Thus P2 completes the execution in the last.