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.
Precept is issued by___ to __.
Under Section 59 of IBC relating to voluntary liquidation of corporate persons, which of the following conditions must be met for a corporate person to ...
As per the Factories Act, 1948 State Government may make rules requiring that in any specified factory wherein _________________ workers are ordinarily ...
The officers and other employees of the Authority under the IRDA Act may be appointed by whom?
As per the IRDA Act, 1999 the Authority shall maintain proper accounts and other relevant records and prepare an annual statement of accounts in such fo...
Which provision of Consumer protection act 2019 talks about rights of consumers?
Which section of the Motor Vehicles Act, 1988 lays down provisions relating to the responsibility of owners of motor vehicles for contravention of secti...
SEBI Chairman is appointed by?
The ____________ shall constitute a Committee to be called the High Court Legal Services Committee for every High Court under the Legal Services Authori...
Partner's liability for acts of the firm is___?