Testing multi-thread software using prioritized context switch limits
Abstract
Testing multithreaded application programs for errors can be carried out in an efficient and productive manner at least in part by prioritizing thread schedules based on numbers of context switches between threads therein. In particular, each thread schedule in a multithreaded application program can be prioritized based on whether a given thread schedule has the same as or less than some maximum value. A model checker module can then iteratively execute thread schedules that fit within a given context switch maximum value, or a progressively higher value up to some limit. In one implementation, for example, the model checker module executes all thread schedules that have zero preempting context switches, then all thread schedules that have only one preempting context switch, etc. Most errors in an application program can be identified by executing only those thread schedule with relatively few preempting context switches.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 35 · Forward citations: 14.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, performed by a computer system, for testing a multi-threaded computer program, the method comprising: receiving a context-switch bound (csb) that specifies a number of preempting context switches; repeatedly executing the computer program in a multi-threading environment from an initial state to reach all possible states of execution of the computer program that are reachable from the initial state with at most csb preempting context switches; for each state that is reachable from the initial state with the number of preempting context switches specified by the csb, storing the state
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (35)
Non-Patent Literature (5)
- "CHESS: Systematic Stress Testing of Concurrent Software," by Madan Musuvathi and Shaz Qadeer, date unknown, Microsoft Research, [online] [retrieved on Feb. 13, 2007], 2 pgs. Retrieved from the Internet: http://research.microsoft.com/projects/CHESS/chess.pdf.
- "Context-Bounded Model Checking of Concurrent Software," by Shaz Qadeer and Jakob Rehof, date unknown, Microsoft Research, [online] [retrieved on Feb. 13, 2007], 15 pgs. Retrieved from the Internet: http://Is14-www.cs.uni-dortmund.de/Is14Medien/Dokumente/Pubs/Context-Bounded.pdf.
- "Integrated State Space Reduction for Model Checking Executable Object-oriented Software System Designs," by FEI Xie and James C. Browne, date unknown, Department of Computer Sciences, University of Texas at Austin, [online] [retrieved on Feb. 13, 2007], 15 pgs. Retrieved from the Internet: http://c
- "Model Checking Multithreaded Programs with Asynchronous Atomic Methods," by Koushik Sen and Mahesh Viswanathan, date unknown, Department of Computer Science, University of Illinois at Urbana-Champaign, [online] [retrieved on Feb. 13, 2007], 14 pgs. Retrieved from the Internet: http://osl.cs.uiuc.ed
- "Model Checking Multithreaded Programs with Asynchronous Atomic Methods," by Koushik Sen and Mahesh Viswanathan, date unknown, Department of Computer Science, University of Illinois at Urbana-Champaign, [online] [retrieved on Feb. 13, 2007], 14 pgs. Retrieved from the Internet: http://osl.cs.uiuc.ed