{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,8]],"date-time":"2026-11-08T12:02:07Z","timestamp":1794139327226,"version":"4.8.0"},"reference-count":26,"publisher":"MDPI AG","issue":"6","license":[{"start":{"date-parts":[[2024,5,25]],"date-time":"2024-05-25T00:00:00Z","timestamp":1716595200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Computers"],"abstract":"<jats:p>Mutual exclusion is a fundamental problem in concurrent\/parallel\/distributed systems. The first pure-software solution to this problem for two processes, which is not based on hardware instructions like test-and-set, was proposed in 1965 by Th.J. Dekker and communicated by E.W. Dijkstra. The correctness of this algorithm has generally been studied under the strong memory model, where the read and write operations on a memory cell are atomic or indivisible. In recent years, some variants of the algorithm have been proposed to make it RW-safe when using the weak memory model, which makes it possible, e.g., for multiple read operations to occur simultaneously to a write operation on the same variable, with the read operations returning (flickering) a non-deterministic value. This paper proposes a novel approach to formal modeling and reasoning on a mutual exclusion algorithm using Timed Automata and the Uppaal tool, and it applies this approach through exhaustive model checking to conduct a thorough analysis of the Dekker\u2019s algorithm and some of its variants proposed in the literature. This paper aims to demonstrate that model checking, although necessarily limited in the scalability of the number N of the processes due to the state explosions problem, is effective yet powerful for reasoning on concurrency and process action interleaving, and it can provide significant results about the correctness and robustness of the basic version and variants of the Dekker\u2019s algorithm under both the strong and weak memory models. In addition, the properties of these algorithms are also carefully studied in the context of a tournament-based binary tree for N\u22652 processes.<\/jats:p>","DOI":"10.3390\/computers13060133","type":"journal-article","created":{"date-parts":[[2024,5,27]],"date-time":"2024-05-27T05:14:02Z","timestamp":1716786842000},"page":"133","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":8,"title":["Modeling and Analysis of Dekker-Based Mutual Exclusion Algorithms"],"prefix":"10.3390","volume":"13","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-6577-4777","authenticated-orcid":false,"given":"Libero","family":"Nigro","sequence":"first","affiliation":[{"name":"DIMES\u2014Engineering Department of Informatics Modelling Electronics and Systems Science, University of Calabria, 87036 Rende, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6138-5739","authenticated-orcid":false,"given":"Franco","family":"Cicirelli","sequence":"additional","affiliation":[{"name":"CNR\u2014National Research Council of Italy, Institute for High Performance Computing and Networking (ICAR), 87036 Rende, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0742-9737","authenticated-orcid":false,"given":"Francesco","family":"Pupo","sequence":"additional","affiliation":[{"name":"DIMES\u2014Engineering Department of Informatics Modelling Electronics and Systems Science, University of Calabria, 87036 Rende, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2024,5,25]]},"reference":[{"key":"ref_1","unstructured":"Lamport, L. (2019). Concurrency: The Works of Leslie Lamport, Association for Computing Machinery."},{"key":"ref_2","unstructured":"Lamport, L. (2019). Concurrency: The Works of Leslie Lamport, Association for Computing Machinery."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Misra, J. (2001). A Discipline of Multiprogramming, Springer.","DOI":"10.1007\/978-1-4419-8528-6"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Raynal, M. (2012). Concurrent Programming: Algorithms, Principles, and Foundations, Science & Business Media.","DOI":"10.1007\/978-3-642-32027-9"},{"key":"ref_5","unstructured":"Silbershatz, A., Galvin, P.B., and Gagne, G. (2018). Operating System Concepts, Wiley. [10th ed.]."},{"key":"ref_6","unstructured":"Goetz, B. (2006). Java Concurrency in Practice, Pearson Education."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"73","DOI":"10.1007\/s00236-008-0086-z","article-title":"A queue based mutual exclusion algorithm","volume":"46","author":"Aravind","year":"2009","journal-title":"Acta Inform."},{"key":"ref_8","unstructured":"Clarke, E.M., Grumberg, O., and Peled, D.A. (2000). Model Checking, MIT Press."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Bernardo, M., and Corradini, F. (2004). Formal Methods for the Design of Real-Time Systems, Springer. LNCS 3185.","DOI":"10.1007\/b110123"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"183","DOI":"10.1016\/0304-3975(94)90010-8","article-title":"A theory of timed automata","volume":"126","author":"Alur","year":"1994","journal-title":"Theor. Comput. Sci."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"651","DOI":"10.1002\/cpe.3263","article-title":"High-performance N-thread software solutions for mutual exclusion","volume":"27","author":"Buhr","year":"2014","journal-title":"Concurr. Comput. Pract. Exp."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"144","DOI":"10.1002\/cpe.3659","article-title":"Dekker\u2019s mutual exclusion algorithm made RW-safe","volume":"28","author":"Buhr","year":"2016","journal-title":"Concurr. Comput. Pract. Exp."},{"key":"ref_13","unstructured":"Frenzel, L.E. (2004). Electronic Design, Endeavor Business Media LLC."},{"key":"ref_14","unstructured":"Wang, Z., Zuo, Q., and Li, J. (2008). International Symposium on Intelligent Information Technology Application Workshops, IEEE."},{"key":"ref_15","unstructured":"Genuys, F. (1968). Programming Languages, NATO Advanced Study Institute, Academic Press. Also EWD123 1965."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"206","DOI":"10.1016\/0020-0190(80)90141-6","article-title":"Variants of the software solution to mutual exclusion","volume":"10","author":"Doran","year":"1980","journal-title":"Inf. Process. Lett."},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Peterson, G.L., and Fischer, M.J. (1977, January 4\u20136). Economical solutions for the critical section problem in a distributed system. Proceedings of the Ninth Annual ACM Symposium on Theory of Computing, El Paso, TX, USA.","DOI":"10.1145\/800105.803398"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"135","DOI":"10.1007\/BF00288966","article-title":"Arbitration without common modifiable variables","volume":"17","author":"Kessels","year":"1982","journal-title":"Acta Inform."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"833","DOI":"10.1007\/s00165-016-0407-x","article-title":"Tournaments for mutual exclusion: Verification and concurrent complexity","volume":"29","author":"Hesselink","year":"2017","journal-title":"Form. Asp. Comput."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"541","DOI":"10.1109\/5.24143","article-title":"Petri nets: Properties, analysis and applications","volume":"77","author":"Murata","year":"1989","journal-title":"Proc. IEEE"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Nigro, L., and Cicirelli, F. (2024). Formal modeling and verification of embedded real-time systems: An approach and practical tool based on Constraint Time Petri Nets. Mathematics, 12.","DOI":"10.3390\/math12060812"},{"key":"ref_22","first-page":"8160","article-title":"Model checking time-dependent system specifications using time stream Petri nets and Uppaal","volume":"218","author":"Cicirelli","year":"2012","journal-title":"Appl. Math. Comput."},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"25","DOI":"10.1016\/j.entcs.2005.09.006","article-title":"A tool for the syntactic detection of zeno-timelocks in Timed Automata. Electron","volume":"139","author":"Bowman","year":"2005","journal-title":"Notes Theor. Comput. Sci."},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"115","DOI":"10.1016\/0020-0190(81)90106-X","article-title":"Myths about the mutual exclusion problem","volume":"12","author":"Peterson","year":"1981","journal-title":"Inf. Process. Lett."},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"321","DOI":"10.1145\/355592.365595","article-title":"Additional comments on a problem in concurrent programming control","volume":"9","author":"Knuth","year":"1966","journal-title":"Commun. ACM"},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"102189","DOI":"10.1016\/j.simpat.2020.102189","article-title":"Parallel Theatre: An actor framework in Java for high performance computing","volume":"106","author":"Nigro","year":"2021","journal-title":"Simul. Model. Pract. Theory"}],"container-title":["Computers"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2073-431X\/13\/6\/133\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T14:48:52Z","timestamp":1760107732000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2073-431X\/13\/6\/133"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,5,25]]},"references-count":26,"journal-issue":{"issue":"6","published-online":{"date-parts":[[2024,6]]}},"alternative-id":["computers13060133"],"URL":"https:\/\/doi.org\/10.3390\/computers13060133","relation":{},"ISSN":["2073-431X"],"issn-type":[{"value":"2073-431X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,5,25]]}}}