http://anrg.usc.edu/contiki/index.php?title=Protothreads&feed=atom&action=historyProtothreads - Revision history2024-03-28T17:23:01ZRevision history for this page on the wikiMediaWiki 1.26.2http://anrg.usc.edu/contiki/index.php?title=Protothreads&diff=181&oldid=prevRahul: Created page with " Back to Contiki Tutorials __TOC__ === Description === Protothreads are extremely lightweight stackless threads designed for severely memory constrai..."2014-02-11T05:35:20Z<p>Created page with "<a href="/contiki/index.php/Contiki_tutorials" title="Contiki tutorials"> Back to Contiki Tutorials</a> __TOC__ === Description === Protothreads are extremely lightweight stackless threads designed for severely memory constrai..."</p>
<p><b>New page</b></p><div>[[Contiki_tutorials | Back to Contiki Tutorials]]<br />
<br />
__TOC__<br />
<br />
=== Description ===<br />
<br />
Protothreads are extremely lightweight stackless threads designed for severely memory constrained systems, such as small embedded systems or wireless sensor network nodes. The advantage here is that they do not waste memory on multiple stacks that are only partially used. They provide sequential execution without the need for large state machines or multithreading. Perhaps the most significant advantage is that they provide conditional blocking inside a [http://anrg.usc.edu/contiki/index.php/Process process] event-handler. Without protothreads, if an event handler did not return, other processes would not be scheduled. Protothreads, on the other hand, allow block operations within the event-handler. As a result, there is less application code, more blocking operations, and event infinite loops.<br />
<br />
=== Implementation ===<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Edited by: Rahul</div>Rahul