Detecting Fair Non-termination in Multithreaded Programs
Detecting Fair Non-termination in Multithreaded Programs
复制标题
检测多线程程序中的公平非终止
DOI:
10.1007/978-3-642-31424-7_19
复制
发表时间:
2012
期刊:
影响因子:
--
通讯作者:
A. Lal
中科院分区:
文献类型:
--
作者:
M. Atig;A. Bouajjani;M. Emmi;A. Lal
We develop compositional analysis algorithms for detecting non-termination in multithreaded programs. Our analysis explores fair and ultimately-periodic executions--i.e., those in which the infinitely-often enabled threads repeatedly execute the same sequences of actions over and over. By limiting the number of context-switches each thread is allowed along any repeating action sequence, our algorithm quickly discovers practically-arising non-terminating executions. Limiting the number of context-switches in each period leads to a compositional analysis in which we consider each thread separately, in isolation, and reduces the search for fair ultimately-periodic executions in multithreaded programs to state-reachability in sequential programs. We implement our analysis by a systematic code-to-code translation from multithreaded programs to sequential programs. By leveraging standard sequential analysis tools, our prototype tool Mutant is able to discover fair non-terminating executions in typical mutual exclusion protocols and concurrent data-structure algorithms.