2021-08-17 09:11:55 -07:00

13 lines
352 B
TeX

\pagebreak
\section{\code{parallel} Construct}
\label{sec: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}{1}
\fexample{parallel}{1}