Deadlock Detection in Distributed Systems Last Updated : 11 Jul, 2025 Comments Improve Suggest changes 11 Likes Like Report Prerequisite - Deadlock Introduction, deadlock detection In the centralized approach of deadlock detection, two techniques are used namely: Completely centralized algorithm and Ho Ramamurthy algorithm (One phase and Two-phase). Completely Centralized Algorithm - In a network of n sites, one site is chosen as a control site. This site is responsible for deadlock detection. It has control over all resources of the system. If a site requires a resource it requests the control site, the control site allocates and de-allocates resources, and maintains a wait-for graph. And at a regular interval of time, it checks the wait-for graph to detect a cycle. If the cycle exits then it will declare the system as deadlock otherwise the system will continue working. The major drawbacks of this technique are as follows: A site has to send requests even for using its own resource. There is a possibility of phantom deadlock. HO Ramamurthy (Two-Phase Algorithm) - In this technique a resource status table is maintained by the central or control site, if a cycle is detected then the system is not declared deadlock at first, the cycle is checked again as the system is distributed some of the other resources is vacant or freed by sites at every instant of time. Now, after checking if a cycle is detected again then, the system is declared as deadlock. This technique reduces the possibility of phantom deadlock but on the other hand time consumption is more. HO Ramamurthy (One Phase Algorithm) - In this technique a resource status table and a process table is maintained by the central or control site if the cycle is detected in both processes and resource tables then, the system is declared as deadlock. This technique reduces time consumption but space complexity increases. Advantages: Centralized deadlock detection techniques are easy to implement as they require only one site to be responsible for deadlock detection.These techniques can efficiently detect deadlocks in large and complex distributed systems.They can prevent the wastage of resources in a system due to deadlocks. Disadvantages: Centralized deadlock detection techniques can lead to a single point of failure as the control site can become a bottleneck in the system.These techniques can cause high network traffic as all the requests and responses are sent to the control site.Centralized deadlock detection techniques are not suitable for systems where resources are widely distributed. Create Quiz Comment S sarahsuhail Follow 11 Improve S sarahsuhail Follow 11 Improve Article Tags : Operating Systems Explore OS BasicsIntroduction to Operating System5 min readTypes of Operating Systems7 min readKernel in Operating System3 min readSystem Call2 min readWhat happens when we turn on computer?3 min readProcess ManagementIntroduction of Process Management4 min readCPU Scheduling in Operating Systems7 min readIntroduction to Process Synchronization4 min readSolutions to Process Synchronization Problems4 min readClassical IPC Problems2 min readIntroduction of Deadlock in Operating System3 min readHandling Deadlocks2 min readMultithreading in OS - Different Models4 min readMemory ManagementIntroduction to memory and memory units2 min readMemory Management in Operating System5 min readBuddy System - Memory Allocation Technique4 min readOverlays in Memory Management4 min readVirtual Memory in Operating System7 min readPage Replacement Algorithms in Operating Systems5 min readOperating system based Virtualization5 min readI/O ManagementFile Systems in Operating System4 min readImplementing Directory Management using Shell Script3 min readSecondary Memory7 min readDisk Scheduling Algorithms9 min readDifference between Spooling and Buffering5 min readImportant LinksLast Minute Notes â Operating Systems15+ min readOperating System Interview Questions15+ min read Like