mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-04 05:41:33 +01:00
13 lines
359 B
TeX
13 lines
359 B
TeX
\pagebreak
|
|
\chapter{The \code{parallel} Construct}
|
|
\label{chap:parallel}
|
|
|
|
The \code{parallel} construct can be used in coarse-grain parallel programs.
|
|
In the following example, each thread in the \code{parallel} region decides what
|
|
part of the global array \plc{x} to work on, based on the thread number:
|
|
|
|
\cexample{parallel}{1c}
|
|
|
|
\fexample{parallel}{1f}
|
|
|