Fair Mutual Exclusion for N Processes

Yousra Hafidi, Jeroen J.A. Keiren (Corresponding author), Jan Friso Groote

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

1 Downloads (Pure)

Abstract

Peterson’s mutual exclusion algorithm for two processes has been generalized to N processes in various ways. As far as we know, no such generalization is starvation free without making any fairness assumptions. In this paper, we study the generalization of Peterson’s algorithm to N processes using a tournament tree. Using the mCRL2 language and toolset we prove that it is not starvation free unless weak fairness assumptions are incorporated. Inspired by the counterexample for starvation freedom, we propose a fair N-process generalization of Peterson’s algorithm. We use model checking to show that our new algorithm is correct for small N. For arbitrary N, model checking is infeasible due to the state space explosion problem, and instead, we present a general proof that, for N≥ 4, when a process requests access to the critical section, other processes can enter first at most (N- 1 ) (N- 2 ) times.

Original languageEnglish
Title of host publicationTools and Methods of Program Analysis
Subtitle of host publication6th International Conference, TMPA 2021, Tomsk, Russia, November 25–27, 2021, Revised Selected Papers
EditorsRostislav Yavorskiy, Ana Rosa Cavalli, Anna Kalenkova
Place of PublicationCham
PublisherSpringer
Pages149-160
Number of pages12
ISBN (Electronic)978-3-031-50423-5
ISBN (Print)978-3-031-50422-8
DOIs
Publication statusPublished - 3 Jan 2024
Event6th International Conference on Tools and Methods of Program Analysis, TMPA 2021 - Tomsk, Russian Federation
Duration: 25 Nov 202127 Nov 2021

Publication series

NameCommunications in Computer and Information Science (CCIS)
Volume1559
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Conference

Conference6th International Conference on Tools and Methods of Program Analysis, TMPA 2021
Abbreviated titleTMPA 2021
Country/TerritoryRussian Federation
CityTomsk
Period25/11/2127/11/21

Funding

This work was supported partially by the MACHINAIDE project (ITEA3, No. 18030).

Keywords

  • Model-checking
  • Mutual exclusion
  • Peterson’s algorithm
  • Starvation freedom
  • mCRL2

Fingerprint

Dive into the research topics of 'Fair Mutual Exclusion for N Processes'. Together they form a unique fingerprint.

Cite this