Open In App

Hierarchical Deadlock Detection in Distributed System

Prerequisite: Deadlock detection in Distributed systems In hierarchical deadlock detection algorithm, sites are arranged in a hierarchical fashion and a site detects deadlocks involving only its descendant sites. Distributed deadlock algorithms delegate the responsibility of deadlock detection to individual sites while in hierarchical there are local detectors at each site which communicate their local wait for graphs(WFG) with one another. Approach: Deadlocks that are local to a single site are detected at that site using their local WFG. Each site also sends its local WFG to deadlock detector at the next level. Thus, distributed deadlocks involving 2 or more sites would be detected by a deadlock detector in lowest level that has control over these sites. In this approach, there are 2 methods to detect: 1. Ho-Ramamoorthy algorithm:

2. Menasce-Muntz algorithm:

Advantages:

Disadvantages:

Article Tags :