<?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="Infinite loop - Page 6 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=infinite_loop&amp;p=5">1.Previous</a><br />
<a accesskey="3" href="page.php?w=infinite_loop&amp;p=7">3.Next</a>
</p>
<p>activity" indicator light.</p>

<p><big>Multi-threading</big></p>
<p>In multi-threaded programs some threads can be executing inside infinite loops without causing the entire program to be stuck in an infinite loop. If the main thread exits, all threads of the process are forcefully stopped, thus all execution ends and the process/program terminates. The threads inside the infinite loops can perform "housekeeping" tasks or they can be in a blocked state waiting for input (from a socket/queue) and resume execution every time input is received.</p>

<p><big>Unintentional looping</big></p><p>
<a accesskey="1" href="page.php?w=infinite_loop&amp;p=5">1.Previous</a><br />
<a accesskey="3" href="page.php?w=infinite_loop&amp;p=7">3.Next</a>
</p>

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

</card>
</wml>
