Table of Contents
Fetching ...

Avoiding Deadlocks via Weak Deadlock Sets

Gianpaolo Oriolo, Anna Russo Russo

TL;DR

It is shown that for general networks and b$$ b $$ a state that is wise and without weak deadlock sets—this can be recognized in polynomial time—is safe: this is indeed a strengthening of the result for b≥2$$ b\ge 2 $$ .

Abstract

A deadlock occurs in a network when two or more items prevent each other from moving and are stalled. In a general model, items are stored at vertices and each vertex $v$ has a buffer with $b(v)$ slots. Given a route for each item toward its destination, the Deadlock Safety Problem asks whether the current state is safe, i.e., it is possible to deliver each item at its destination, or is bound to deadlock, i.e., any sequence of moves will end up with a set of items stalled. While when $b \geq 2$ the problem is solvable in polynomial time building upon a nice characterization of YES/NO-instances, it is NP-hard on quite simple graphs as grids when $b=1$ and on trees when $b\leq 3$. We improve on these results by means of two new tools, weak deadlock sets and wise states. We show that for general networks and $b$ a state that is wise and without weak deadlock sets -- this can be recognized in polynomial time -- is safe: this is indeed a strengthening of the result for $b\geq 2$. We sharpen this result for trees, where we show that a wise state is safe if and only if it has no weak deadlock set. That is interesting in particular in the context of rail transportation where networks are often single-tracked and deadlock detection and avoidance focuses on local sub-networks, mostly with a tree-like structure. We pose some research questions for future investigations.

Avoiding Deadlocks via Weak Deadlock Sets

TL;DR

It is shown that for general networks and b a state that is wise and without weak deadlock sets—this can be recognized in polynomial time—is safe: this is indeed a strengthening of the result for b≥2 .

Abstract

A deadlock occurs in a network when two or more items prevent each other from moving and are stalled. In a general model, items are stored at vertices and each vertex has a buffer with slots. Given a route for each item toward its destination, the Deadlock Safety Problem asks whether the current state is safe, i.e., it is possible to deliver each item at its destination, or is bound to deadlock, i.e., any sequence of moves will end up with a set of items stalled. While when the problem is solvable in polynomial time building upon a nice characterization of YES/NO-instances, it is NP-hard on quite simple graphs as grids when and on trees when . We improve on these results by means of two new tools, weak deadlock sets and wise states. We show that for general networks and a state that is wise and without weak deadlock sets -- this can be recognized in polynomial time -- is safe: this is indeed a strengthening of the result for . We sharpen this result for trees, where we show that a wise state is safe if and only if it has no weak deadlock set. That is interesting in particular in the context of rail transportation where networks are often single-tracked and deadlock detection and avoidance focuses on local sub-networks, mostly with a tree-like structure. We pose some research questions for future investigations.
Paper Structure (9 sections, 10 theorems, 1 equation, 3 figures)

This paper contains 9 sections, 10 theorems, 1 equation, 3 figures.

Key Result

Lemma 1

blazewicz_1994 There is a strong deadlock set for a state $(\sigma, {\cal R})$ if and only if $Free(\sigma)$ is not a dominating set for the transitive closure of $D(\sigma, {\cal R})$. In particular, if $Free(\sigma)$ is not a dominating set, then the set of nodes that are not dominated by $Free(\s

Figures (3)

  • Figure 1: A yes-instance of dsp: see Example \ref{['firstex']}.
  • Figure 2: A no-instance of dsp: see Example \ref{['secondex']}.
  • Figure 3: Vertices $A, B, C, D, E$ have respectively buffers of size 1, 1, 3, 1, 1 each holding one item but for $C$ that holds two item. The destination of the items in $A$ and $B$ and of one item in $C$ is $E$; the destination of the items in $D$ and $E$ and of the other item in $C$ is $A$. Blue arc provides the wise followers. There are no weak deadlock sets, but the instance is bound to deadlock.

Theorems & Definitions (31)

  • Definition 1: State
  • Remark 1
  • Definition 2: Feasible move $\vec{P}$
  • Definition 3: Feasible sequence of moves ${\vec{\cal P}}$
  • Definition 4: Follower
  • Definition 5: Strong Deadlock Set
  • Definition 6: Bound to Deadlock and Safe State arbib_1988
  • Remark 2
  • Definition 7: Follower Network
  • Definition 8: Free($\sigma$)
  • ...and 21 more