#pragma omp master Preprocessor Directive (C Only)

The omp master directive identifies a section of code that must be run only by the master thread.

Syntax

#pragma omp master
   statement_block

Notes
Threads other than the master thread will not execute the statement block associated with this construct.

No implied barrier exists on either entry to or exit from the master section.



Program Parallelization
Shared and Private Variables in a Parallel Environment
Countable Loops


Control Parallel Processing with Pragmas


#pragma Preprocessor Directives for Parallel Processing
OpenMP Run-time Options for Parallel Processing