What is Parallel Sections Construct?
The parallel sections construct is a shortcut for specifying a parallel construct comprising one sections construct however no other statements. The syntax of parallel sections construct is:
#pragma omp parallel sections [ set of clauses]
{
[#pragma omp section ]
structured-block
[#pragma omp section
structured-block ]
...
}
In the subsequent illustration routines x axis, y axis, and z axis can be executed simultaneously. The first section directive is optional. Note that all section directives require appearing in parallel sections construct.