Concurrency bugs in multithreaded software: modeling and analysis using Petri nets

  • Authors:
  • Hongwei Liao;Yin Wang;Hyoun Kyu Cho;Jason Stanley;Terence Kelly;Stéphane Lafortune;Scott Mahlke;Spyros Reveliotis

  • Affiliations:
  • Department of Electrical Engineering and Computer Science, University of Michigan, Ann Arbor, USA 48109;HP Labs, Palo Alto, USA 94303;Department of Electrical Engineering and Computer Science, University of Michigan, Ann Arbor, USA 48109;Department of Electrical Engineering and Computer Science, University of Michigan, Ann Arbor, USA 48109;HP Labs, Palo Alto, USA 94303;Department of Electrical Engineering and Computer Science, University of Michigan, Ann Arbor, USA 48109;Department of Electrical Engineering and Computer Science, University of Michigan, Ann Arbor, USA 48109;School of Industrial & Systems Engineering, Georgia Institute of Technology, Atlanta, USA 30332

  • Venue:
  • Discrete Event Dynamic Systems
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we apply discrete-event system techniques to model and analyze the execution of concurrent software. The problem of interest is deadlock avoidance in shared-memory multithreaded programs. We employ Petri nets to systematically model multithreaded programs with lock acquisition and release operations. We define a new class of Petri nets, called Gadara nets, that arises from this modeling process. We investigate a set of important properties of Gadara nets, such as liveness, reversibility, and linear separability. We propose efficient algorithms for the verification of liveness of Gadara nets, and report experimental results on their performance. We also present modeling examples of real-world programs. The results in this paper lay the foundations for the development of effective control synthesis algorithms for Gadara nets.