Discrete Event Dynamic Systems

, Volume 23, Issue 2, pp 157–195

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

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

DOI: 10.1007/s10626-012-0139-x

Cite this article as:
Liao, H., Wang, Y., Cho, H.K. et al. Discrete Event Dyn Syst (2013) 23: 157. doi:10.1007/s10626-012-0139-x

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.

Keywords

Concurrent software Deadlock analysis Modeling Petri nets 

Copyright information

© Springer Science+Business Media, LLC 2012

Authors and Affiliations

  • Hongwei Liao
    • 1
  • Yin Wang
    • 2
  • Hyoun Kyu Cho
    • 1
  • Jason Stanley
    • 1
  • Terence Kelly
    • 2
  • Stéphane Lafortune
    • 1
  • Scott Mahlke
    • 1
  • Spyros Reveliotis
    • 3
  1. 1.Department of Electrical Engineering and Computer ScienceUniversity of MichiganAnn ArborUSA
  2. 2.HP LabsPalo AltoUSA
  3. 3.School of Industrial & Systems EngineeringGeorgia Institute of TechnologyAtlantaUSA

Personalised recommendations