English

Optimal Memory-Anonymous Symmetric Deadlock-Free Mutual Exclusion

Distributed, Parallel, and Cluster Computing 2018-10-10 v1

Abstract

The notion of an anonymous shared memory (recently introduced in PODC 2017) considers that processes use different names for the same memory location. Hence, there is permanent disagreement on the location names among processes. In this context, the PODC paper presented -among other results- a symmetric deadlock-free mutual exclusion (mutex) algorithm for two processes and a necessary condition on the size mm of the anonymous memory for the existence of a symmetric deadlock-free mutex algorithm in an nn-process system. This condition states that mm must be greater than 11 and belong to the set M(n)={m: :1<n: gcd(,m)=1}M(n)=\{m:\forall~\ell:1<\ell\leq n:~\gcd(\ell,m)=1\} (symmetric means that, while each process has its own identity, process identities can only be compared with equality). The present paper answers several open problems related to symmetric deadlock-free mutual exclusion in an nn-process system (n2n\geq 2) where the processes communicate through mm registers. It first presents two algorithms. The first considers that the registers are anonymous read/write atomic registers and works for any mm greater than 11 and belonging to the set M(n)M(n). It thus shows that this condition on mm is both necessary and sufficient. The second algorithm considers anonymous read/modify/write atomic registers. It assumes that mM(n)m\in M(n). These algorithms differ in their design principles and their costs (measured as the number of registers which must contain the identity of a process to allow it to enter the critical section). The paper also shows that the condition mM(n)m\in M(n) is necessary for deadlock-free mutex on top of anonymous read/modify/write atomic registers. It follows that, when m>1m>1, mM(n)m\in M(n) is a tight characterization of the size of the anonymous shared memory needed to solve deadlock-free mutex, be the anonymous registers read/write or read/modify/write.

Keywords

Cite

@article{arxiv.1810.03723,
  title  = {Optimal Memory-Anonymous Symmetric Deadlock-Free Mutual Exclusion},
  author = {Zahra Aghazadeh and Damien Imbs and Michel Raynal and Gadi Taubenfeld and Philipp Woelfel},
  journal= {arXiv preprint arXiv:1810.03723},
  year   = {2018}
}
R2 v1 2026-06-23T04:32:48.176Z