A single processor system has three resource types and , which are shared by three processes. There are 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?
View worked solution
Answer: C
To find the order in which the processes finish, we first calculate the total allocated resources and the initially available resources.
1. Calculate Available Resources:
- Total resources:
- Total allocated resources:
2. Step-by-Step Execution:
- Compare requests with the current available resources :
- request cannot be satisfied.
- request can be satisfied.
- request cannot be satisfied.
. - Compare remaining requests with available resources :
- request can be satisfied.
- request cannot be satisfied ( for resource ).
. - Finally, request can be satisfied with . runs and finishes.
The safe sequence of execution is . Therefore, finishes last.
Free practice · Your answers on this page are not saved.
