Question
Which of the following is a key challenge in handling
deadlocks in an operating system?Solution
Detailed Explanation: Deadlocks occur when a set of processes is blocked because each process is holding a resource and waiting for another resource held by another process. One of the primary methods for detecting deadlocks is using the resource allocation graph (RAG) . A cycle in this graph indicates a potential deadlock when resources are not reusable or preemptible. Detecting cycles involves examining the directed graph of resources and processes to find circular dependencies. Algorithms like Depth First Search (DFS) are commonly used for this purpose in deadlock detection. Deadlock detection is critical in systems where prevention or avoidance mechanisms are impractical, such as distributed systems. Once detected, the system must recover by terminating one or more processes or preempting resources, which can be complex and resource-intensive. Why Other Options Are Incorrect:
- Option A: Allocating resources fairly is more related to system performance and fairness policies rather than deadlock handling. Fairness does not directly address circular wait or hold-and-wait conditions.
- Option B: Preventing starvation is a separate issue. Starvation happens when low-priority processes wait indefinitely, often due to poor scheduling, not necessarily because of deadlocks.
- Option D: FCFS is a scheduling algorithm that manages the sequence of process execution but does not directly address or solve deadlocks.
- Option E: Managing shared memory involves synchronization and mutual exclusion issues but is not inherently about detecting cycles in deadlocks.
Consider the following statements with reference to the Policy of Doctrine of Lapse:
1. It gave power to the British to deal with the succession ...
Which of the following statements regarding Indian Factory Act, 1891 is/are correct?
1. It increased the minimum and maximum age limit for chi...
Consider the following pairs:

Which of the above pairs...
With respect to Individual Satyagraha, consider the following statements.
1. Adamant stand of the British of not taking any constitutional reform...
The Jallianwala Bagh massacre took place in which year
In the 2024 Best Countries ranking, which country topped the “Best Countries for Adventure” list?
Who was the founder of the Prarthana Samaj, a reformist movement in India?
With which of the following movements is the slogan "Do or Die" associated?
Who amongst the following established a secret organization of the revolutionaries known as Mitra Mela?
With reference to Permanent settlement system of land Revenue policy of British, consider the following statements:
1. Hereditary rights of Zamin...