Examples of TASK and TASK ARRAY Declarations

The following example declares PROCESSTASK to be a task identifier.

TASK PROCESSTASK

The following example declares CHILDREN as a one-dimensional task array with a lower bound of 0 (zero) and an upper bound of LIM. The CHILDREN task array might be used to store the tasks associated with a group of processes and coroutines initiated by a program.

TASK ARRAY CHILDREN[0:LIM]