SPC Version 0.9.5
Since the SuperPro supports multi-threading, a task in SPC directly corresponds to a SuperPro thread or process.
Tasks are defined using the task keyword with the syntax shown in the code sample below.
The name of the task may be any legal identifier. A program must always have at least one task - named "main" - which is started whenever the program is run. The body of a task consists of a list of statements.
You can start tasks with the start statement, which is discussed below.
The StopAllTasks API function stops all currently running tasks. You can also stop all tasks using the Stop function. A task can stop itself via the ExitTo function. Finally, a task will stop itself simply by reaching the end of its body.