{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,1,2]],"date-time":"2026-01-02T07:36:13Z","timestamp":1767339373376,"version":"build-2065373602"},"reference-count":30,"publisher":"MDPI AG","issue":"4","license":[{"start":{"date-parts":[[2025,4,13]],"date-time":"2025-04-13T00:00:00Z","timestamp":1744502400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Algorithms"],"abstract":"<jats:p>Dekker\u2019s algorithm for mutual exclusion of two processes is the well-known first developed correct solution based only on software mechanisms. The algorithm served as the starting point for researchers to create subsequent safe solutions both for two and N &gt; 2 processes. In recent years, Dekker proposed a generalization of his mutual exclusion algorithm for N &gt; 2 processes (here referred to as Dekker-N). To the best of our knowledge, Dekker-N correctness was only proven by the author using informal arguments. This paper\u2019s original contribution consists of formal modeling and verification of Dekker-N using an approach based on timed automata (TA) and the Uppaal model checker. The Dekker-N model is checked under atomic registers and also in cases where non-atomic registers are used. This paper first demonstrates that Dekker-N is correct and fair with atomic registers and effectively ensures bounded waiting for competing processes through a linear overtaking. Unfortunately, the algorithm becomes incorrect when non-atomic registers are used. The adopted formal approach, though, allowed us to prove that by making just one single common variable safe, Dekker-N turns out to be fully correct and fair with non-atomic registers as well. The paper presents the TA-based formal approach and goes on by presenting models of Dekker-N and by verifying all its mutual-exclusion properties.<\/jats:p>","DOI":"10.3390\/a18040226","type":"journal-article","created":{"date-parts":[[2025,4,14]],"date-time":"2025-04-14T04:42:07Z","timestamp":1744605727000},"page":"226","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":1,"title":["Proving Properties of Dekker\u2019s Algorithm for Mutual Exclusion of N Processes"],"prefix":"10.3390","volume":"18","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-6577-4777","authenticated-orcid":false,"given":"Libero","family":"Nigro","sequence":"first","affiliation":[{"name":"DIMES, University of Calabria, 87036 Rende, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"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":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2025,4,13]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Alberts, G., and Groote, J.F. (2022). History of Dekker\u2019s algorithm for mutual exclusion. Tales of Electrologica: Computers, Software and People, Springer Nature. Chapter 6.","DOI":"10.1007\/978-3-031-13033-5"},{"key":"ref_2","unstructured":"Dijkstra, E.W. (1962). About the Sequentiality of Process Descriptions, University of Texas. EWD35 translated."},{"key":"ref_3","unstructured":"Genuys, F. (1968). Co-operating sequential processes. Programming Languages: NATO Advanced Study Institute: Lectures Given at a Three Weeks Summer School Held in Villard-le-Lans, Academic Press Inc."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Lamport, L. (1986). On Interprocess Communication: Part I and II. Distributed Computing, Springer.","DOI":"10.1007\/BF01786228"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"199","DOI":"10.1007\/s00236-013-0178-2","article-title":"Verifying a simplification of mutual exclusion by Lycklama\u2013Hadzilacos","volume":"50","author":"Hesselink","year":"2013","journal-title":"Acta Inform."},{"key":"ref_6","unstructured":"Spronck, M., and Luttik, B. (2023, January 18\u201323). Process-Algebraic Models of Multi-Writer Multi-Reader Non-Atomic Registers. Proceedings of the 34th International Conference on Concurrency Theory (CONCUR) 2023, Antwerp, Belgium."},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Nigro, L. (2024). Verifying mutual exclusion algorithms with non-atomic registers. Algorithms, 17.","DOI":"10.3390\/a17120536"},{"key":"ref_8","unstructured":"Frenzel, L.E. (2025, March 16). Dual-Port SRAM Accelerates Smart-Phone Development. Electronic Design 2004. Available online: https:\/\/www.electronicdesign.com\/technologies\/industrial\/boards\/article\/21774041\/dual-port-sram-accelerates-smart-phonedevelopment."},{"key":"ref_9","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_10","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_11","doi-asserted-by":"crossref","first-page":"569","DOI":"10.1145\/365559.365617","article-title":"Solution of a problem in concurrent programming control","volume":"8","author":"Dijkstra","year":"1965","journal-title":"Commun. ACM"},{"key":"ref_12","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_13","doi-asserted-by":"crossref","first-page":"137","DOI":"10.1145\/363162.363167","article-title":"Additional comments on a problem in concurrent programming control","volume":"10","year":"1967","journal-title":"Commun. ACM"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"999","DOI":"10.1145\/355606.361895","article-title":"Further comments on Dijkstra\u2019s concurrent programming control problem","volume":"15","author":"Eisenberg","year":"1972","journal-title":"Commun. ACM"},{"key":"ref_15","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_16","doi-asserted-by":"crossref","first-page":"66","DOI":"10.3934\/aci.2024005","article-title":"Property assessment of Peterson\u2019s mutual exclusion algorithms","volume":"4","author":"Nigro","year":"2024","journal-title":"Applied Computing and Intelligence"},{"key":"ref_17","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_18","doi-asserted-by":"crossref","unstructured":"Bernardo, M., and Corradini, F. (2004). A tutorial on UPPAAL. Formal Methods for the Design of Real-Time Systems, Springer. LNCS 3185.","DOI":"10.1007\/b110123"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"272","DOI":"10.1002\/spe.3372","article-title":"A comprehensive survey of UPPAAL-assisted formal modeling and verification","volume":"55","author":"Zhou","year":"2024","journal-title":"Softw. Pract. Exp."},{"key":"ref_20","unstructured":"(2025, March 16). Uppaal on-Line. Available online: https:\/\/uppaal.org."},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Groote, J.F., Keiren, J.J., Luttik, B., de Vink, E.P., and Willemse, T.A. (2020). Modelling and analysing software in mCRL2. Formal Aspects of Component Software, Proceedings of the 16th International Conference, FACS 2019, Amsterdam, The Netherlands, 23\u201325 October 2019, Springer International Publishing. Proceedings 16.","DOI":"10.1007\/978-3-030-40914-2_2"},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Nigro, L., Cicirelli, F., and Pupo, F. (2024). Modeling and Analysis of Dekker-based Mutual Exclusion Algorithms. Computers, 13.","DOI":"10.3390\/computers13060133"},{"key":"ref_23","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_24","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_25","doi-asserted-by":"crossref","first-page":"694","DOI":"10.3390\/modelling5030037","article-title":"Correctness verification of mutual exclusion algorithms by model checking","volume":"5","author":"Nigro","year":"2024","journal-title":"Modelling"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Nigro, L. (2024). Formal Modeling and Verification of Lycklama and Hadzilacos\u2019s Mutual Exclusion Algorithm. Mathematics, 12.","DOI":"10.3390\/math12162443"},{"key":"ref_27","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_28","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_29","doi-asserted-by":"crossref","unstructured":"Wang, Z., Zuo, Q., and Li, J. (2008, January 21\u201322). An intelligent multi-port memory. Proceedings of the 2008 International Symposium on Intelligent Information Technology Application Workshops, Shanghai, China.","DOI":"10.1109\/IITA.Workshops.2008.231"},{"key":"ref_30","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":["Algorithms"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-4893\/18\/4\/226\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,9]],"date-time":"2025-10-09T17:13:49Z","timestamp":1760030029000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-4893\/18\/4\/226"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,4,13]]},"references-count":30,"journal-issue":{"issue":"4","published-online":{"date-parts":[[2025,4]]}},"alternative-id":["a18040226"],"URL":"https:\/\/doi.org\/10.3390\/a18040226","relation":{},"ISSN":["1999-4893"],"issn-type":[{"type":"electronic","value":"1999-4893"}],"subject":[],"published":{"date-parts":[[2025,4,13]]}}}