Thread Scheduling Sequence Generation Based on All Synchronization Pair Coverage Criteria
- 1 January 2020
- journal article
- research article
- Published by World Scientific Pub Co Pte Ltd in International Journal of Software Engineering and Knowledge Engineering
- Vol. 30 (01) , 97-118
Abstract
Testing multi-thread programs becomes extremely difficult because thread interleavings are uncertain, which may cause a program getting different results in each execution. Thus, Thread Scheduling Sequence (TSS) is a crucial factor in multi-thread program testing. A good TSS can obtain better testing efficiency and save the testing cost especially with the increase of thread numbers. Focusing on the above problem, in this paper, we discuss a kind of approach that can efficiently generate TSS based on the concurrent coverage criteria. First, we give a definition of Synchronization Pair (SP) as well as all Synchronization Pairs Coverage (ASPC) criterion. Then, we introduce the Synchronization Pair Thread Graph (SPTG) to describe the relationships between SPs and threads. Moreover, this paper presents a TSS generation method based on the ASPC according to SPTG. Finally, TSSs automatic generation experiments are conducted on six multi-thread programs in Java Library with the help of Java Path Finder (JPF) tool. The experimental results illustrate that our method not only generates TSSs to cover all SPs but also requires less state number, transition number as well as TSS number when satisfying ASPC, compared with other three widely used TSS generation methods. As a result, it is clear that the efficiency of TSS generation is obviously improved.Keywords
Funding Information
- National Natural Science Foundation of China (61672085, 61702029, 61872026)
This publication has 28 references indexed in Scilit:
- Testing multithreaded programs via thread speed control2018
- Path Coverage Information for Adaptive Random Testing2017
- An Empirical Study on Mutation, Statement and Branch Coverage Fault Revelation That Avoids the Unreliable Clean Program Assumption2017
- Guidelines for Coverage-Based Comparisons of Non-Adequate Test SuitesACM Transactions on Software Engineering and Methodology, 2015
- Automatically computing path complexity of programs2015
- Checked Coverage and Object Branch Coverage2015
- Comparing non-adequate test suites using coverage criteria2013
- Variable and thread bounding for systematic testing of multithreaded programs2013
- Iterative context bounding for systematic testing of multithreaded programs2007
- Multithreaded Java program test generationIBM Systems Journal, 2002