OpenMP-Examples/Examples_master.tex

14 lines
348 B
TeX

\pagebreak
\section{The \code{master} Construct}
\label{sec:master}
The following example demonstrates the master construct . In the example, the master
keeps track of how many iterations have been executed and prints out a progress
report. The other threads skip the master region without waiting.
\cexample{master}{1}
\fexample{master}{1}