Action
Guarantees that no other thread executes until a specified
statement or indented block of code has executed and passed control
to the next statement at the level of the critical statement. Only
one thread can have critical status at any time.
Syntax
critical
statement
Variable
|
Description
|
statement
|
Code to be run without interruptions; either a single statement,
or a series of statements.
|
Notes
To create, or "spawn," multiple threads, use the statements
parallel, spawn, rendezvous, and critical.