Race condition testing via a scheduling test program
AssigneeFastly, Inc.
InventorDevon O'Dell
Life of this patent
Estimating the term…
Abstract
Disclosed herein are methods, systems, and software to enhance the testing of race conditions in programs. In one example, a method of testing race conditions in a target program with one or more concurrent processes includes generating a scheduling program based on race conditions identified in the target program, wherein the scheduling program includes order of operation rules for the one or more concurrent processes. The method further provides initiating execution of the scheduling program, and executing the target program based on the order of operation rules for the one or more concurrent processes.
Claims14
A method of operating a computing system to test one or more race conditions in a target program, wherein the target program comprises a first concurrent process and a second concurrent process, the method comprising:
- executing a scheduler program, the scheduler program comprising identifying a state of interest in the target program, wherein the state of interest in the target program comprises a first state of interest in the first concurrent process and a second state of interest in the second concurrent process;
- initiating independent execution of the first and second concurrent processes, which execute as independent operations on the computing system;
- pausing the first concurrent process when the first concurrent process reaches the state of interest, and until the second concurrent process reaches the second state of interest;
- and
- creating the race condition by continuing both the first and second concurrent processes at the state of interest in the target program.
An apparatus to perform testing of one or more race conditions in a target program, wherein the target program comprises a first concurrent process and a second concurrent process, the apparatus comprising:
- one or more computer readable media;
- and
- processing instructions stored on the one or more computer readable media that, when executed by a processing system, direct the processing system to:
- execute a scheduler program, the scheduler program comprising identifying a state of interest in the target program, wherein the state of interest in the target program comprises a first state of interest in the first concurrent process and a second state of interest in the second concurrent process;
- initiate independent execution of the first and second concurrent processes, which execute as independent operations on the computing system;
- pause the first concurrent process when the first concurrent process reaches the state of interest, and until the second concurrent process reaches the second state of interest;
- and
- create the race condition by continuing both the first and second concurrent processes at the state of interest in the target program.
A computing apparatus comprising:
- one or more computer readable storage media;
- one or more processors operatively coupled with the one or more computer readable storage media;
- and
- program instructions stored on the one or more computer readable storage media for load balancing requests across origin servers that, when executed by the one or more processors, direct the computing apparatus to at least:
- execute a scheduler program, the scheduler program comprising identifying a state of interest in a target program, wherein the state of interest in the target program comprises a first state of interest in a first concurrent process and a second state of interest in a second concurrent process;
- initiate independent execution of the first and second concurrent processes, which execute as independent operations on the computing apparatus;
- pause the first concurrent process when the first concurrent process reaches the state of interest, and until the second concurrent process reaches the second state of interest;
- and
- create a race condition by continuing both the first and second concurrent processes at the state of interest in the target program.
Dependencies are inferred from the claim text.