WAKEUP Statement

mvBASIC programs can wake up a different process which is either sleeping, or waiting for input at an INPUT statement which has an associated ELSE clause.

Format

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.

See Also

Statement and Function Reference