$R = \{R_1, R_2, R_3, R_4\}$ consists of single instances of distinct types of resources in the system.
The resource allocation graph has the following assignment and claim edges.
Assignment edges: $R_1 \rightarrow P_1, R_2 \rightarrow P_2, R_3 \rightarrow P_3, R_4 \rightarrow P_4$ (the assignment edge $R_1 \rightarrow P_1$ means resource $R_1$ is assigned to process $P_1$, and so on for others)
Claim edges: $P_1 \rightarrow R_2, P_2 \rightarrow R_3, P_3 \rightarrow R_1, P_2 \rightarrow R_4, P_4 \rightarrow R_2$ (the claim edge $P_1 \rightarrow R_2$ means process $P_1$ is waiting for resource $R_2$, and so on for others)
Which of the following statement(s) is/are CORRECT?
To determine which processes to abort in order to make the system deadlock-free, we need to analyze the resource allocation graph and identify deadlock-causing cycles.
A system is said to be in a deadlock state if there exists a cycle in the resource allocation graph. The cycle here can be detailed as:
To break these cycles, we need to consider the effects of aborting different processes:
Hence, the correct deadlock-breaking choices are:
Which of the following is NOT the method for handling deadlock?