DocumentCode :
3165032
Title :
On atomicity enforcement in concurrent software via Discrete Event Systems theory
Author :
Yin Wang ; Peng Liu ; Kelly, Tim ; Lafortune, Stephane ; Reveliotis, Spyros ; Zhang, Chenghui
Author_Institution :
HP Labs., Palo Alto, CA, USA
fYear :
2012
fDate :
10-13 Dec. 2012
Firstpage :
7230
Lastpage :
7237
Abstract :
Atomicity violations are among the most severe and prevalent defects in concurrent software. Numerous algorithms and tools have been developed to detect atomicity bugs, but few solutions exist to automatically fix such bugs. Some existing solutions add locks to enforce atomicity, which can introduce deadlocks into programs. Our recent work avoids deadlock bugs in concurrent programs by adding control logic synthesized using Discrete Event Systems theory. In this paper, we extend this control framework to address single-variable atomicity violation bugs. We use the same class of Petri net models as in our prior work to capture program semantics, and handle atomicity violations by control specifications in the form of linear inequalities. We propose two methodologies for synthesizing control logic that enforces these linear inequalities without causing deadlocks; the resulting control logic is embedded into the program´s source code by program instrumentation. These results extend the scope of concurrency bugs in software systems that can be handled by techniques from control engineering. Case studies involving two real Java programs demonstrate our solution procedure.
Keywords :
Java; concurrency control; formal specification; linear matrix inequalities; program debugging; Java program; Petri net model; atomicity bug detection; atomicity enforcement; atomicity violation; concurrent software; control engineering; control logic; control specification; deadlock bug; discrete event systems theory; linear inequalities; program instrumentation; program semantics; single-variable atomicity violation bug; Computer bugs; Computers; Concurrent computing; Instruction sets; System recovery; USA Councils;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Decision and Control (CDC), 2012 IEEE 51st Annual Conference on
Conference_Location :
Maui, HI
ISSN :
0743-1546
Print_ISBN :
978-1-4673-2065-8
Electronic_ISBN :
0743-1546
Type :
conf
DOI :
10.1109/CDC.2012.6426112
Filename :
6426112
Link To Document :
بازگشت