Open Access
- 10 June 2025
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 9 (PLDI) , 1937-1960
Abstract
This paper revisits the fundamental problem of monitoring the linearizability of concurrent stacks, queues, sets, and multisets. Given a history of a library implementing one of these abstract data types, the monitoring problem is to answer whether the given history is linearizable. For stacks, queues, and (multi)sets, we present monitoring algorithms with complexities ( n 2 ), ( n log n ), and ( n ), respectively, where n is the number of operations in the input history. For stacks and queues, our results hold under the standard assumption of data-independence , i.e., the behavior of the library is not sensitive to the actual values stored in the data structure. Past works to solve the same problems have cubic time complexity and (more seriously) have correctness issues: they either (i) lack correctness proofs or (ii) have unsound correctness proofs (we present counter-examples of the correctness proofs), or (iii) have unsound algorithms. Our improved complexity results rely on substantially different algorithms for which we provide detailed proofs of correctness. We have implemented our stack and queue algorithms in LiMo (Linearizability Monitor). We evaluate LiMo and compare it with the state-of-the-art tool Violin – whose correctness proofs we have found errors in – which checks for linearizability violations. Our experimental evaluation confirms that LiMo outperforms Violin regarding both efficiency and scalability.Keywords
All Related Versions
Funding Information
- Svenska Forskningsrådet Formas (2020-04430)
This publication has 31 references indexed in Scilit:
- Concurrent Correctness in Vector Space2021
- Fragment Abstraction for Concurrent Shape Analysis2018
- Testing for linearizabilityConcurrency and Computation: Practice and Experience, 2016
- An Integrated Specification and Verification Technique for Highly Concurrent Data Structures2013
- Automatic Linearizability Proofs of Concurrent Objects with Cooperating Updates2013
- Aspect-Oriented Linearizability Proofs2013
- Automatically Proving Linearizability2010
- Comparison Under Abstraction for Verifying Linearizability2007
- Efficient monitoring of safety propertiesInternational Journal on Software Tools for Technology Transfer, 2003
- Testing and Verifying Concurrent ObjectsJournal of Parallel and Distributed Computing, 1993