This work develops a formal method for modelling and verifying concurrent/parallel systems, focusing on mutual exclusion algorithms. Formal modelling is based on Uppaal timed automata. Verification is usually based on model checking, that is, the exhaustive analysis of all the execution states and state paths of the system model. However, in cases where model checking is impossible to apply for state explosions, statistical model checking based on simulations can be used. As a concrete example, the paper formalizes Lamport’s bakery mutual exclusion algorithm, which cannot be studied by model checking for the large amount of data it generates. Properties of the algorithm are then investigated by statistical model checking. The algorithm is separately modelled and verified with atomic and non-atomic registers. The paper demonstrates that the algorithm remains correct also when it is employed on low-cost devices like cell phones, which depend on multi-port memory with relaxed control on the simultaneous accesses to the same non-atomic register.

Statistical Model Checking of Lamport’s Bakery Mutual Exclusion Algorithm

Cicirelli F.
2026

Abstract

This work develops a formal method for modelling and verifying concurrent/parallel systems, focusing on mutual exclusion algorithms. Formal modelling is based on Uppaal timed automata. Verification is usually based on model checking, that is, the exhaustive analysis of all the execution states and state paths of the system model. However, in cases where model checking is impossible to apply for state explosions, statistical model checking based on simulations can be used. As a concrete example, the paper formalizes Lamport’s bakery mutual exclusion algorithm, which cannot be studied by model checking for the large amount of data it generates. Properties of the algorithm are then investigated by statistical model checking. The algorithm is separately modelled and verified with atomic and non-atomic registers. The paper demonstrates that the algorithm remains correct also when it is employed on low-cost devices like cell phones, which depend on multi-port memory with relaxed control on the simultaneous accesses to the same non-atomic register.
2026
Istituto di Calcolo e Reti ad Alte Prestazioni - ICAR
9783032115171
9783032115188
Statistical Model Checking
Mutual Exclusion Algorithm
File in questo prodotto:
File Dimensione Formato  
978-3-032-11518-8_12.pdf

non disponibili

Tipologia: Versione Editoriale (PDF)
Licenza: NON PUBBLICO - Accesso privato/ristretto
Dimensione 2.5 MB
Formato Adobe PDF
2.5 MB Adobe PDF   Visualizza/Apri   Richiedi una copia

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/20.500.14243/597602
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact