A method for creating a computer program to be executed by a plurality of threads,
in which the method utilizes a technique for execution synchronization referred
to herein as a batch synchronization section. According to this technique, a plurality
of threads may be associated with one another as a "batch" of threads. Each thread
in the plurality (batch) of threads may execute the computer program simultaneously.
The batch synchronization section may specify a portion of the computer program
for which the execution of the portion by the plurality of threads is to be synchronized.
In one embodiment different types of batch synchronization sections may be specified,
wherein each type of batch synchronization section performs a different type of
execution synchronization. In one embodiment the method may enable execution synchronization
behavior for multiple concurrent executions of a test executive test sequence to
be specified. The test sequence may include one or more batch synchronization sections.
Multiple threads may each execute an instance of the test sequence to concurrently
to test a group of units under test, and the batch synchronization sections may
coordinate the execution of the multiple threads where necessary.