Deadlock resolution in wait-for graphs by vertex/arc deletion

A deadlock occurs in a distributed computation if a group of processes wait indefinitely for resources from each other. In this paper we study actions to be taken after deadlock detection, especially the action of searching for a small deadlock-resolution set. More precisely, given a “snapshot” graph G representing a deadlocked state of a distributed computation governed by a certain deadlock model $${\mathbb {M}}$$M, we investigate the complexity of vertex/arc deletion problems that aim at finding minimum vertex/arc subsets whose removal turns G into a deadlock-free graph (according to model $${\mathbb {M}}$$M). Our contributions include polynomial-time algorithms and hardness proofs, for general graphs and for special graph classes. Among other results, we show that the arc deletion problem in the OR model can be solved in polynomial time, and the vertex deletion problem in the OR model remains NP-complete even for graphs with maximum degree $${\varDelta }(G) = 4$$Δ(G)=4, but is solvable in $$O (m \sqrt{n})$$O(mn) time for graphs with $${\varDelta }(G)\le 3$$Δ(G)≤3.

[1]  Sam Toueg,et al.  Distributed deadlock detection , 2005, Distributed Computing.

[2]  Dieter Rautenbach,et al.  Complexity analysis of P3-convexity problems on bounded-degree and planar graphs , 2015, Theor. Comput. Sci..

[3]  J. A. Bondy,et al.  Graph Theory with Applications , 1978 .

[4]  David S. Johnson,et al.  Computers and Intractability: A Guide to the Theory of NP-Completeness , 1978 .

[5]  J. R. Garitagoitia,et al.  A Distributed Deadlock Resolution Algorithm for the AND Model , 1999, IEEE Trans. Parallel Distributed Syst..

[6]  K. Mani Chandy,et al.  A Distributed Graph Algorithm: Knot Detection , 1982, TOPL.

[7]  Kyu Ho Park,et al.  A Two-Level Distributed Detection Algorithm of AND/OR Deadlocks , 1995, J. Parallel Distributed Comput..

[8]  Purna Chandra Biswal Discrete Mathematics and Graph Theory , 2013 .

[9]  Leslie Lamport,et al.  Distributed snapshots: determining global states of distributed systems , 1985, TOCS.

[10]  Tracy Camp,et al.  Time Efficient Deadlock Resolution Algorithms , 1999, Inf. Process. Lett..

[11]  Valmir Carneiro Barbosa,et al.  An introduction to distributed algorithms , 1996 .

[12]  Ajay D. Kshemkalyani,et al.  Distributed Computing: Principles, Algorithms, and Systems , 2008 .

[13]  Ajay D. Kshemkalyani,et al.  Efficient Detection and Resolution of Generalized Distributed Deadlocks , 1994, IEEE Trans. Software Eng..

[14]  Richard M. Karp,et al.  Reducibility Among Combinatorial Problems , 1972, 50 Years of Integer Programming.

[15]  Ronald L. Rivest,et al.  Introduction to Algorithms , 1990 .

[16]  J Pachl THE DEADLOCK PROBLEM IN AUTOMATIC RAILWAY OPERATION , 1997 .

[17]  Fábio Protti,et al.  Deletion Graph Problems Based on Deadlock Resolution , 2017, COCOON.

[18]  Joseph Y.-T. Leung,et al.  On Minimum Cost Recovery from System Deadlock , 1979, IEEE Transactions on Computers.

[19]  Valmir Carneiro Barbosa,et al.  The combinatorics of resource sharing , 2003, ArXiv.

[20]  Bostjan Bresar,et al.  A generalization of Hungarian method and Hall's theorem with applications in wireless sensor networks , 2009, Discret. Appl. Math..

[21]  Arie Shoshani,et al.  System Deadlocks , 1971, CSUR.

[22]  Mukesh Singhal,et al.  Deadlock Models and a General Algorithm for Distributed Deadlock Detection , 1996, J. Parallel Distributed Comput..

[23]  Richard M. Karp,et al.  A n^5/2 Algorithm for Maximum Matchings in Bipartite Graphs , 1971, SWAT.

[24]  Frantisek Galcík,et al.  On Computing an Optimal Semi-matching , 2011, WG.

[25]  Ajay D. Kshemkalyani,et al.  Efficient detection of a locally stable predicate in a distributed system , 2007, J. Parallel Distributed Comput..