Petri Nets for Concurrent Programming

Marshall Rawson, Michael Rawson
8/4/2022
cs.DCcs.FL

Official code: MarshallRawson/nt-petri-net (13 stars, Rust, MIT, Rust, last commit 2025-04-28).

Abstract

Concurrent programming is used in all large and complex computer systems. However, concurrency errors and system failures (ex: crashes and deadlocks) are common.

Show full abstract

We find that Petri nets can be used to model concurrent systems and find and remove errors ahead of time. We introduce a novel generalization of Petri nets with nondeterministic transition nodes to match real systems. These allow for a compact way to construct, optimize, and prove computer programs at the concurrency level. Petri net programs can also be optimized by automatically solving for maximal concurrency, where the maximum number of valid threads is determined by the structure of the Petri net prior to execution. We discuss an algorithm to compute the state graph of a given Petri net start state pair. We introduce our open source software framework which implements this theory as a general purpose concurrency focused middle-ware.

View on arXivView PDF

Code Implementations(1)

RustMIT
131Rust, ShellJun 23, 20221 years agoMIT

Similar Papers

Cite this paper

@article{rawson2022petri,
  title  = {Petri Nets for Concurrent Programming},
  author = {Marshall Rawson and Michael Rawson},
  year   = {2022},
  eprint = {2208.02900},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.02900}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.02900.svg)](https://codeofpaper.com/paper/2208.02900)

Discussion