@bogdan Hell, why not? "If you can't explain it simply, you don't understand it well enough"
I hate to be misunderstood ))
Here's a demo script for what you were asking 0_1519329231828_test05.xml
Make sure to launch in the Run mode. See the Log.
Pay attention to the "Thread spawning artifact" messages in the script. They are because of guards preventing surplus threads to be spawned. BAS always maintains the number of threads specified in the "Thread Number" parameter (next to script execution buttons in the Record mode) and so respawns more threads when previous ones terminated.