Open-access article

Algorithmic verification of asynchronous programs

Algorithmic verification of asynchronous programs

Download full textFree with an account; signing up with Google takes seconds

Abstract

Asynchronous programming is a ubiquitous systems programming idiom for managing concurrent interactions with the environment. In this style, instead of waiting for time-consuming operations to complete, the programmer makes a non-blocking call to the operation and posts a callback task to a task buffer that is executed later when the time-consuming operation completes. A cooperative scheduler mediates the interaction by picking and executing callback tasks from the task buffer to completion (and these callbacks can post further callbacks to be executed later). Writing correct asynchronous programs is hard because the use of callbacks, while efficient, obscures program control flow. We provide a formal model underlying asynchronous programs and study verification problems for this model. We show that the safety verification problem for finite-data asynchronous programs is expspace-complete. We show that liveness verification for finite-data asynchronous programs is decidable and polynomial-time equivalent to Petri net reachability. Decidability is not obvious, since even if the data is finite-state, asynchronous programs constitute infinite-state transition systems: both the program stack for an executing task and the task buffer of pending calls to tasks can be potentially unbounded. Our main technical constructions are polynomial-time, semantics-preserving reductions from asynchronous programs to Petri nets and back. The first reduction allows the use of algorithmic techniques on Petri nets for the verification of asynchronous programs, and the second allows lower bounds on Petri nets to apply also to asynchronous programs. We also study several extensions to the basic models of asynchronous programs that are inspired by additional capabilities provided by implementations of asynchronous libraries and classify the decidability and undecidability of verification questions on these extensions.

Similar items

  • Clustering Algorithm with Asynchronous Programming

    Scholarly record2017Md. Mizanur Rahman, Raihana Zannat

    Clustering is very problematic on big data set in synchronous programming as well as time consuming. Finding optimal result from big misaligned data set is precarious because lack of seamless data pattern. This study emphasizes on reducing time fact and deployment of asynchronous

  • The System for Graphic Schemes of Algorithms Verification and Program Code Generation

    Open-access article2015Problems of Informatization and ManagementО. В.Бузовский, А. В.Алещенко

    The paper discusses the possibilities of graphical notation schemes algorithms. The problems of describing the types of variable declarations (typing) in the case of GSA or UML-diagrams of activities are reviewed, as well as methods for their verification and translation. The pro

  • Algorithms and Tools for Verification and Testing of Asynchronous Programs

    Scholarly record2016Zilong Wang

    Algorithms and Tools for Verification and Testing of Asynchronous Programs

  • Distributed Synchronous and Asynchronous Algorithms for Semidefinite Programming With Diagonal Constraints

    Open-access article2023IEEE Transactions on Automatic Control['Xia Jiang', 'Xianlin Zeng', 'Jian Sun', 'Jie Chen', '']

    This article develops distributed synchronous and asynchronous algorithms for the large-scale semidefinite programming with diagonal constraints, which has wide applications in combinatorial optimization, image processing, and community detection. The information of the semidefin

  • Stratified Commutativity in Verification Algorithms for Concurrent Programs

    Open-access article2023Proceedings of the ACM on programming languages['Azadeh Farzan', 'Dominik Klumpp', 'Andreas Podelski', '']

    The importance of exploitingcommutativity relationsin verification algorithms for concurrent programs is well-known. They can help simplify the proof and improve the time and space efficiency. This paper studies commutativity relations as a first-class object in the setting of ve

  • Verification of Asynchronous Programs with Nested Locks

    Scholarly record2017FSTTCSMohamed Faouzi Atig, Ahmed Bouajjani, K. Narayan Kumar, Prakash Saivasan

    In this paper, we consider asynchronous programs consisting of multiple threads running in parallel. Each of the thread is equipped with a multi-set. The threads can create tasks and post them onto multi-sets of other threads or read a task from their own. In addition, they can s