<?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 3 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Barrier_(computer_science)&amp;p=2">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Barrier_%28computer_science%29&amp;p=4">3.Next</a>
</p>
<p>starts in the raised state and cannot be re-raised once it is in the lowered state. The term "count-down latch" is sometimes used to refer to a latch that is automatically lowered once a predetermined number of threads/processes have arrived.</p>

<p><big>Implementation</big></p>
<p>Consider the following example of a thread barrier. The thread barrier requires a variable to "keep track of the total number of threads that have entered the barrier. Whenever sufficient threads enter the barrier, it will be lifted. A <a href="page.php?w=synchronization_primitive">synchronization primitive</a></p><p>
<a accesskey="1" href="page.php?w=Barrier_(computer_science)&amp;p=2">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Barrier_%28computer_science%29&amp;p=4">3.Next</a>
</p>

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

</card>
</wml>
