<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Barrier (computer science) - Page 1 - Wikipedia">
<p>
<a accesskey="3" href="page.php?w=Barrier_%28computer_science%29&amp;p=2">3.Next</a>
</p>
<p>In <a href="page.php?w=parallel_computing">parallel computing</a>, a <b>barrier</b> is a <a href="page.php?w=synchronization_%28computer_science%29">synchronization</a> method. A barrier for a group of threads or processes in the source code means that all thread/process stop at that point and do not proceed until all other threads/processes reach this barrier.</p>

<p>Many collective routines and directive-based parallel languages impose implicit barriers. For example, a parallel <code>do</code> loop in <a href="page.php?w=Fortran">Fortran</a> with</p><p>
<a accesskey="3" href="page.php?w=Barrier_%28computer_science%29&amp;p=2">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
