A spawn statement begins execution of the specified statement or block of statements in a new thread. Since the purpose of spawn is to initiate concurrent test operations on multiple machines, the structure of a block of spawned code is typically:
for each sMachine in lsMachine
spawn // start thread for each sMachine
SetMachine (sMachine)
DoSomething ()
rendezvous
for each sMachine in lsMachine
spawn
[sMachine]DoSomething ()
rendezvous
To use a spawn statement in tests that use TrueLog, use the OPT_PAUSE_TRUELOG option to disable TrueLog. Otherwise, issuing a spawn statement when TrueLog is enabled causes Silk Test Classic to hang or crash.