The minimum value of for the system to be deadlock-free is . (answer in integer)
View worked solution
Answer: 06 : 06
To ensure the system is deadlock-free, we analyze the worst-case resource allocation where a deadlock can potentially occur.
Let:
- Number of processes,
- Maximum resource requirement of each process,
A process can be blocked only if it has acquired resource and is waiting for its resource. The worst-case allocation where a deadlock occurs is when every process is allocated resource less than its maximum requirement, and no resources are left free in the system.
If the total number of resources , each of the processes can hold resource and wait indefinitely for another, resulting in a deadlock.
To guarantee that the system is deadlock-free, we must have at least one additional resource so that at least one process can satisfy its maximum demand, complete its execution, and release its allocated resources:
Thus, the minimum value of for the system to be deadlock-free is 6.
Free practice · Your answers on this page are not saved.
