OpenMP-Examples/Examples_ploop.tex

13 lines
338 B
TeX

\pagebreak
\section{A Simple Parallel Loop}
\label{sec:ploop}
The following example demonstrates how to parallelize a simple loop using the parallel
loop construct. The loop iteration variable is private by default, so it is not
necessary to specify it explicitly in a \code{private} clause.
\cexample{ploop}{1}
\fexample{ploop}{1}