Rules and Behavior Critical sections can appear anywhere an executable Compaq Fortran statement can appear. You can use a latch variable to control whether multiple critical sections have unique latches or use the same latch. If you do not specify a latch variable, the compiler supplies a unique latch for each critical section. A thread waits at the beginning of a critical section until no other thread in the team is executing a critical section having the same latch variable name. All unnamed critical sections map to the same latch variable name supplied by the compiler.
Critical section latch variable names are global to the program.