Skip to Main content Skip to Navigation
Journal articles

A lightweight deadlock analysis for programs with threads and reentrant locks

Cosimo Laneve 1, 2
2 FOCUS - Foundations of Component-based Ubiquitous Systems
CRISAM - Inria Sophia Antipolis - Méditerranée , DISI - Dipartimento di Informatica - Scienza e Ingegneria [Bologna]
Abstract : Deadlock analysis of multi-threaded programs with reentrant locks is complex because these programs may have infinitely many states. We define a simple calculus featuring recursion, threads and synchronizations that guarantee exclusive access to objects. We detect deadlocks by associating an abstract model to programs-the extended lam model-and we define an algorithm for verifying that a problematic object dependency (e.g. a circularity) between threads will not be manifested. The analysis is lightweight because the deadlock detection problem is fully reduced to the corresponding one in lams (without using other models). In fact, the technique is intended to be an effective tool for the deadlock analysis of programming languages by defining ad-hoc extraction processes. We demonstrate this effectivity by applying our analysis to a core calculus featuring shared objects, threads and Java-like synchronization primitives. We also discuss a prototype verifier, called JaDA, that covers several features of Java and deliver initial assessments of the tool.
Complete list of metadata

Cited literature [28 references]  Display  Hide  Download
Contributor : Laneve Cosimo <>
Submitted on : Wednesday, December 4, 2019 - 10:56:43 AM
Last modification on : Friday, October 30, 2020 - 12:04:04 PM
Long-term archiving on: : Thursday, March 5, 2020 - 5:42:31 PM


Files produced by the author(s)




Cosimo Laneve. A lightweight deadlock analysis for programs with threads and reentrant locks. Science of Computer Programming, Elsevier, 2019, 181, pp.64 - 81. ⟨10.1016/j.scico.2019.06.002⟩. ⟨hal-02392938⟩



Record views


Files downloads