OpenMP Directives: Synchronization Constructs: MASTER Directive

Purpose:

The MASTER directive specifies a region that is to be executed only by the master thread of the team. All other threads on the team skip this section of code

There is no implied barrier associated with this directive

Format:

Fortran

!$OMP MASTER

   block

!$OMP END MASTER

C/C++

#pragma omp master  newline 

   structured_block 

Restrictions:

It is illegal to branch into or out of MASTER block.