#pragma omp parallel sections Preprocessor Directive (C Only)

The omp parallel sections directive effectively combines the omp parallel and omp sections directives. This directive lets you define a parallel region containing a single sections directive in one step.

Syntax

#pragma omp parallel sections [clause[ clause] ...] 
   {
     [#pragma omp section]
          statement-block
     [#pragma omp section]
          statement-block
       .
       .
       .
     ]
   }

All clauses and restrictions described in the omp parallel and omp sections directives apply to the omp parallel sections directive.



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
#pragma omp parallel Preprocessor Directive
#pragma omp sections Preprocessor Directive