A Deadlock Prevention Policy for a Class of Multithreaded Software
Open Access
- 6 January 2020
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 8, 16676-16688
Abstract
Deadlock is an undesired situation in multithreaded software since it can lead to the stoppage of software. This paper studies the problem of deadlock control of multithreaded software based on Gadara nets, which are well studied for modelling concurrent programs. In particular, an iterative deadlock prevention policy based on siphons is proposed for a class of ordinary Gadara nets where the initial marking of each idle place is one. At each iteration, we compute emptiable siphons containing the smallest number of resource places. Then, bad markings are computed based on these siphons. On the basis of the bad markings, a constraint is constructed that forbids not only bad markings that empty one of the siphons but also some other bad markings. The algorithm is carried out until no emptiable siphon exists in the net. Compared with the existing methods, the resultant net derived from the proposed method is live and maximally permissive with a simpler supervisor. Finally, two examples are provided to illustrate the proposed deadlock prevention policy.Keywords
Funding Information
- Zhejiang Provincial Key R&D Program of China (2018C01084)
- Natural Science Foundation of Zhejiang Province (LQ20F020009)
- Zhejiang Gongshang University (2013E10012)
This publication has 36 references indexed in Scilit:
- Design of Liveness-Enforcing Supervisors for S3PR Based on Complementary PlacesACM Transactions on Embedded Computing Systems, 2013
- Concurrency bugs in multithreaded software: modeling and analysis using Petri netsDiscrete Event Dynamic Systems, 2012
- Two Simple Deadlock Prevention Policies for ${\rm S}^{3}{\rm PR}$ Based on Key-Resource/Operation-Place PairsIEEE Transactions on Automation Science and Engineering, 2010
- RxACM SIGOPS Operating Systems Review, 2005
- A Banker's solution for deadlock avoidance in FMS with flexible routing and multiresource statesIEEE Transactions on Robotics and Automation, 2002
- Feedback control of petri nets based on place invariantsAutomatica, 1996
- Parallel and sequential mutual exclusions for petri net modeling of manufacturing systems with shared resourcesIEEE Transactions on Robotics and Automation, 1991
- Petri nets: Properties, analysis and applicationsProceedings of the IEEE, 1989
- Detection of Ada static deadlocks using Petri net invariantsIEEE Transactions on Software Engineering, 1989
- The control of discrete event systemsProceedings of the IEEE, 1989