RUS  ENG
Full version
JOURNALS // Modelirovanie i Analiz Informatsionnykh Sistem // Archive

Model. Anal. Inform. Sist., 2025 Volume 32, Number 2, Pages 150–171 (Mi mais846)

Theory of computing

Modeling of parallel program synchronization primitives

O. S. Kryukov, A. G. Voloshko, A. N. Ivutin

Tula State Uiversity, Tula, Russia

Abstract: This article is devoted to the problem of verifying parallel programs that may contain special types of errors associated with the synchronization of parallel executed threads and access to shared memory. Such errors include deadlocks and data races. There is a division of parallel program verification methods into static and dynamic. The second ones require running the code and allow to check only the current implementation of the program for races, which, if there are a large number of branches, can lead to missing races. Among static methods, analytical methods (for example, based on deductive analysis) and model checking methods are most widely used. However, they are difficult to implement, and model checking still require a significant amount of manual work from the programmer to build such a model. In this regard, it is necessary to use models that can be built automatically. Previously, the authors developed a model based on an extension of Petri nets, which allows automatic creation based on sequential code and its conversion into parallel code. Automatic creation of a model of a parallel program introduces new, previously unused requirements related to the interaction of parallel threads. Thus, this article discusses the features of modeling using extended Petri nets with semantic relations of the main synchronization primitives implemented in most languages and parallel programming technologies for shared memory systems. In the future, these models will be used to search for data races and deadlocks in parallel programs.

Keywords: verification, parallel program, Petri nets, synchronization primitives.

UDC: 519.876.5

MSC: 68Q85

Received: 29.09.2024
Revised: 01.04.2025
Accepted: 07.09.2025

DOI: 10.18255/1818-1015-2025-2-150-171



© Steklov Math. Inst. of RAS, 2025