Context-Bounded Verification of Thread Pools

11/17/2021
by   Pascal Baumann, et al.
0

Thread pooling is a common programming idiom in which a fixed set of worker threads are maintained to execute tasks concurrently. The workers repeatedly pick tasks and execute them to completion. Each task is sequential, with possibly recursive code, and tasks communicate over shared memory. Executing a task can lead to more new tasks being spawned. We consider the safety verification problem for thread-pooled programs. We parameterize the problem with two parameters: the size of the thread pool as well as the number of context switches for each task. The size of the thread pool determines the number of workers running concurrently. The number of context switches determines how many times a worker can be swapped out while executing a single task - like many verification problems for multithreaded recursive programs, the context bounding is important for decidability. We show that the safety verification problem for thread-pooled, context-bounded, Boolean programs is EXPSPACE-complete, even if the size of the thread pool and the context bound are given in binary. Our main result, the EXPSPACE upper bound, is derived using a sequence of new succinct encoding techniques of independent language-theoretic interest. In particular, we show a polynomial-time construction of downward closures of languages accepted by succinct pushdown automata as doubly succinct nondeterministic finite automata. While there are explicit doubly exponential lower bounds on the size of nondeterministic finite automata accepting the downward closure, our result shows these automata can be compressed. We show that thread pooling significantly reduces computational power: in contrast, if only the context bound is provided in binary, but there is no thread pooling, the safety verification problem becomes 3EXPSPACE-complete.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/09/2020

Context-Bounded Verification of Liveness Properties for Multithreaded Shared-Memory Programs

We study context-bounded verification of liveness properties of multi-th...
research
02/15/2018

Fine-Grained Complexity of Safety Verification

We study the fine-grained complexity of Leader Contributor Reachability ...
research
01/22/2019

Bisimulation Equivalence of First-Order Grammars is ACKERMANN-Complete

Checking whether two pushdown automata with restricted silent actions ar...
research
08/09/2023

On Lifting Lower Bounds for Noncommutative Circuits using Automata

We revisit the main result of Carmosino et al <cit.> which shows that an...
research
08/11/2021

Finite Automata Intersection Non-Emptiness: Parameterized Complexity Revisited

The problem DFA-Intersection-Nonemptiness asks if a given number of dete...
research
07/20/2020

The Decidability of Verification under Promising 2.0

In PLDI'20, Lee et al. introduced the promising semantics PS 2.0 of the...
research
01/28/2021

Safety Verification of Parameterized Systems under Release-Acquire

We study the safety verification problem for parameterized systems under...

Please sign up or login with your details

Forgot password? Click here to reset