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.
critical
statement
Variable | Description |
---|---|
statement | Code to be run without interruptions; either a single statement, or a series of statements. |
To create, or "spawn," multiple threads, use the statements parallel, spawn, rendezvous, and critical.