wakeup statement

The wakeup statement is used for BASIC programs to wake up a different process that is either sleeping or waiting for input at an INPUT statement (which has an associated ELSE clause).

Syntax

 WAKEUP process.no THEN/ELSE ....

Description

When the specified process wakes up, it executes the next statement in that program. If the specified process was waiting for input, it takes the ELSE clause of the INPUT statement. In either case, SYSTEM(0) can be used to determine which process woke it up.

If the specified process cannot be woken up, the controlling program takes the ELSE clause of the wakeup statement. SYSTEM(0) advises as to the reason why the process could not be woken up.
Note: If called from the THEN clause, SYSTEM(0) will not contain relevant information.