Patents
US 7,926,035 B2#7076757 Most CitedActiveUnited States (USPTO)Utility

Testing multi-thread software using prioritized context switch limits

14Forward Citations (#7076757 Global)
0.9/yrCitation Velocity (#7702933 Global)
2.03Citation PageRank (#14221375 Global)
35Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

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)

  1. 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 ↗

References Cited — Backward Prior Art (35)

PatentTitleYearCitations
US 5,179,702 ASystem and method for controlling a highly parallel multiprocessor using an anarchy based scheduler for parallel execution thread scheduling1993622
US 5,442,797 ALatency tolerant risc-based multiple processor with event driven locality managers resulting from variable tagging1995116
US 5,692,193 ASoftware architecture for control of highly parallel computer systems1997455
US 5,729,710 AMethod and apparatus for management of mapped and unmapped regions of memory in a microkernel data processing system1998171
US 6,158,045 APortable debugging services utilizing a client debugger object and a server debugger object with flexible addressing support2000163
US 6,212,544 B1Altering thread priorities in a multithreaded processor2001419
US 6,282,701 B1System and method for monitoring and analyzing the execution of computer programs2001551
US 6,374,286 B1Real time processor capable of concurrently running multiple independent JAVA machines2002232
US 6,567,974 B1Small memory footprint system and method for separating applications within a single virtual machine200358
US 6,697,935 B1Method and apparatus for selecting thread switch events in a multithreaded processor2004207
US 6,748,556 B1Changing the thread capacity of a multithreaded computer processor200492
US 6,779,135 B1Interleaving based coverage models for concurrent and distributed software200431
US 2004230961 A1Testing parallel applications using code instrumentation—27
US 6,851,075 B2Race detection for parallel software200564
US 6,854,108 B1Method and apparatus for deterministic replay of java multithreaded programs on multiprocessors2005136
US 6,883,162 B2Annotations for transaction tracing200573

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