English

Verifying Sequential Consistency under Bounded Preemptions

Programming Languages 2026-05-12 v1

Abstract

Gibbons and Korach studied a fundamental problem in 1997: given an observed sequence of reads and writes of a multi-threaded program, does there exist an interleaving which is sequentially consistent? Apart from applications in testing shared memory implementations, a procedure for this problem is employed in Dynamic Partial-Order-Reduction (DPOR) algorithms. The problem is known to be NP-hard even when different syntactic parameters are kept bounded. In this paper, we consider a restriction on the kind of interleaving required: does there exist a sequentially-consistent interleaving with at most {\pi} preemptions? Empirical evidence suggests that several bugs manifest within a few preemptive switches. This motivates us to investigate the problem under bounded preemptions. Our results exhibit a trichotomy: the problem lends to a polynomial-time algorithm for the class of single-writer programs where for each variable, there is a single thread writing to it; it becomes NP-hard for two-writer programs and finally, for three-writer programs, we get a conditional lower bound under the Exponential-Time-Hypothesis. When the number of preemptions {\pi} is not bounded, we show the problem to be W[1]-hard, and hence unlikely to be fixed-parameter-tractable with parameter {\pi}.

Keywords

Cite

@article{arxiv.2605.10625,
  title  = {Verifying Sequential Consistency under Bounded Preemptions},
  author = {R. Govind and S. Krishna and Sanchari Sil and B. Srivathsan},
  journal= {arXiv preprint arXiv:2605.10625},
  year   = {2026}
}

Comments

A shorter version has been accepted at NETYS 2026 - 14th edition of the International Conference on Networked Systems