task_suspend Statement

The task_suspend statement is used to suspend execution of a task.

If the task is currently not active suspending it will have no effect.

A task may suspend itself but there must be a protocol whereby another task or INTSERV will resume the task since the task cannot resume itself.

A task may suspend itself waiting for data to arrive via INTSERV (INTSERV would need to resume the task once the data has arrived).

NOTE tasks cannot be suspended from within INTSERV

syntax

task_suspend N

where N is the task number

see note on task numbers