{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,20]],"date-time":"2026-03-20T22:45:36Z","timestamp":1774046736234,"version":"3.50.1"},"reference-count":35,"publisher":"MDPI AG","issue":"12","license":[{"start":{"date-parts":[[2024,11,22]],"date-time":"2024-11-22T00:00:00Z","timestamp":1732233600000},"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>The work described in this paper develops a formal method for modeling and exhaustive verification of mutual exclusion algorithms. The process is based on timed automata and the Uppaal model checker. The technique was successfully applied to several mutual exclusion algorithms, mainly under the atomic memory model, when the read and write operations on memory cells (registers) are atomic or indivisible. The original contribution of this paper consists of a generalization of the approach to support modeling mutual exclusion algorithms with non-atomic registers, where multiple read operations can occur on a register simultaneously to a write operation on the same register, thus giving rise to the flickering phenomenon or multiple write operations can occur at the same time on the same register, hence determining the scrambling phenomenon. The paper first clarifies some consistency rules of non-atomic registers. Then, the developed Uppaal-based method for specifying and verifying mutual exclusion algorithms is presented. The method is applied to the correctness assessment of a sample mutual exclusion solution. After that, non-atomic register consistency rules are rendered in Uppaal to be embedded in the specification methodology. The paper goes on by presenting different mutual exclusion algorithms that are studied using non-atomic registers. Algorithms are also investigated in the context of a tournament tree organization that can provide standard and efficient mutual exclusion solutions for N&gt;2 processes. The paper compares the proposed techniques for handling non-atomic registers and reports about their application to many other mutual exclusion solutions.<\/jats:p>","DOI":"10.3390\/a17120536","type":"journal-article","created":{"date-parts":[[2024,11,22]],"date-time":"2024-11-22T04:21:36Z","timestamp":1732249296000},"page":"536","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":6,"title":["Verifying Mutual Exclusion Algorithms with Non-Atomic Registers"],"prefix":"10.3390","volume":"17","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-6577-4777","authenticated-orcid":false,"given":"Libero","family":"Nigro","sequence":"first","affiliation":[{"name":"University of Calabria, DIMES, 87036 Rende, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2024,11,22]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"313","DOI":"10.1145\/5383.5384","article-title":"The mutual exclusion problem: Part I\u2014A theory of interprocess communication","volume":"33","author":"Lamport","year":"1986","journal-title":"J. ACM"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"327","DOI":"10.1145\/5383.5385","article-title":"The mutual exclusion problem: Part II\u2014Statement and solutions","volume":"33","author":"Lamport","year":"1986","journal-title":"J. ACM"},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Raynal, M. (2013). Concurrent Programming: Algorithms, Principles, and Foundations, Springer.","DOI":"10.1007\/978-3-642-32027-9"},{"key":"ref_4","unstructured":"Genuys, F. (1965). 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_5","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_6","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":"1956","journal-title":"Commun. ACM"},{"key":"ref_7","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_8","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_9","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_10","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_11","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":"Appl. Comput. Intell."},{"key":"ref_12","unstructured":"Frenzel, L.E. (2024, August 31). 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-phone-development."},{"key":"ref_13","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_14","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_15","doi-asserted-by":"crossref","unstructured":"Nigro, L. (2024). Formal modelling and verification of Lycklama and Hadzilacos\u2019s mutual exclusion algorithm. Mathematics, 12.","DOI":"10.3390\/math12162443"},{"key":"ref_16","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_17","unstructured":"Baier, C., and Katoen, J.P. (2008). Principles of Model Checking, MIT Press."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Clarke, E.M., Klieber, W., Nov\u00e1\u010dek, M., and Zuliani, P. (2011). Model checking and the state explosion problem. LASER Summer School on Software Engineering, Springer.","DOI":"10.1007\/978-3-642-35746-6_1"},{"key":"ref_19","unstructured":"(2024, October 31). Uppaal on-Line. Available online: https:\/\/uppaal.org."},{"key":"ref_20","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_21","doi-asserted-by":"crossref","unstructured":"Zhou, W., Zhao, Y., Zhang, Y., Wang, Y., and Yin, M. (2024). A comprehensive survey of UPPAAL-assisted formal modeling and verification. Softw. Pract. Exp., 1\u201326.","DOI":"10.1002\/spe.3372"},{"key":"ref_22","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_23","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_24","doi-asserted-by":"crossref","unstructured":"Szymanski, B.K. (1988, January 4\u20138). A simple solution to Lamport\u2019s concurrent programming problem with linear wait. Proceedings of the 2nd International Conference on Supercomputing, ICS 1988, Saint Malo, France.","DOI":"10.1145\/55364.55425"},{"key":"ref_25","unstructured":"Szymanski, B.K. (1990, January 22\u201325). Mutual exclusion revisited. Proceedings of the 5th Conference on Information Technology 1990, Jerusalem, Israel."},{"key":"ref_26","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_27","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_28","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_29","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_30","first-page":"86","article-title":"On interprocess communication","volume":"1","author":"Lamport","year":"1986","journal-title":"Part II Algorithms. Distrib. Comput."},{"key":"ref_31","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":"2015","journal-title":"Concurr. Comput. Pract. Exp."},{"key":"ref_32","unstructured":"Lamport, L. (2024, August 31). The TLA+ Hyperbook. Available online: https:\/\/lamport.azurewebsites.net\/tla\/hyperbook.html."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"125","DOI":"10.1109\/TSE.1977.229904","article-title":"Proving the correctness of multiprocess programs","volume":"3","author":"Lamport","year":"1977","journal-title":"IEEE Trans. Soft. Eng."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"99","DOI":"10.1016\/0020-0190(88)90171-8","article-title":"Atomic semantics of non-atomic programs","volume":"28","author":"Anderson","year":"1988","journal-title":"Inf. Process. Lett."},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"28","DOI":"10.1137\/07071158X","article-title":"Multiwriter consistency conditions for shared memory registers","volume":"40","author":"Shao","year":"2011","journal-title":"SIAM J. Comput."}],"container-title":["Algorithms"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-4893\/17\/12\/536\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T16:37:14Z","timestamp":1760114234000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-4893\/17\/12\/536"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,11,22]]},"references-count":35,"journal-issue":{"issue":"12","published-online":{"date-parts":[[2024,12]]}},"alternative-id":["a17120536"],"URL":"https:\/\/doi.org\/10.3390\/a17120536","relation":{},"ISSN":["1999-4893"],"issn-type":[{"value":"1999-4893","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,11,22]]}}}