📄 28.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> body { font-family: Verdana, Arial, Helvetica, sans-serif;} a.at-term { font-style: italic; } </style> <title>OpenMP Work-Sharing Constructs</title> <meta name="Generator" content="ATutor"> <meta name="Keywords" content=""></head><body> <p>OpenMP provides several constructs for sharing work among threads in a team.
These are:</p>
<ul>
<li>
<p>Parallel for/DO </p>
</li>
<li>
<p>Parallel sections </p>
</li>
<li>
<p>The single directive </p>
</li>
</ul>
<p>The constructs are placed inside an existing parallel region. The result is to distribute execution of associated statements among the existing threads.
No new threads are created. </p>
<p>Note that there is no implied synchronization of threads at the beginning of a work-sharing construct. For parallel sections and parallel for/DO, threads
synchronize at the end of the construct by default. The following section provides more detail about the parallel for/DO construct.</p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -