### 15.2.2.7 SHARED Clause (TU*X only)

The SHARED clause specifies variables that will be shared by all the threads in a team. It takes the following form:

  SHARED (list)
  list
  Is the name of one or more variables or common blocks that are accessible to the scoping unit. Subobjects cannot be specified. Each name must be separated by a comma, and a named common block must appear between slashes (/ /).

All threads within a team access the same storage area for SHARED data.

Previous Page Next Page Table of Contents