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.
Which city hosted the 2024 Cannes Film Festival where the Bharat Pavilion was inaugurated?
The procurement of goods and services by central public sector enterprises (CPSEs) through Government e-Marketplace (GeM) grew 74 per cent to _______dur...
Which state is hosting the 5th National EMRS Cultural & Literary Fest?
What is the length of the submarine cable being laid by INCOIS near Wandoor, A&N Islands?
The Employees' Provident Fund Organisation (EPFO) is in the process of appointing an actuary firm for which purpose?
In which year will Mixed Martial Arts (MMA) debut at the Asian Games?
What significant astronomical discovery was made by European astronomers involving the Milky Way?
Which state has launched Women@Work (W@W) programme with an aim to provide five lakh jobs within 2026 to women with necessary employable skills?
Who is the author of the book “The Maverick Effect: The Inside Story of India's IT Revolution”?
Consider the following statement about Digi Yatra:
I. Digi Yatra is a digital initiative for the electronic payment of toll Taxes on national hig...