- Protothreads
In
computer science , protothreads are a low-overhead mechanism forconcurrent programming .Protothreads function as stackless, lightweight threads providing a blocking context cheaply using only two bytes per protothread. [http://eigenclass.org/hiki/about Eigenclass] performed a comparision of protothreads against POSIX threads, and found a 400x improvement in speed [http://eigenclass.org/hiki/threadring-with-protothreads] .
References
*A. Dunkels, O. Schmidt, T. Voigt, and M. Ali, [http://doi.acm.org/10.1145/1182807.1182811 "Protothreads: Simplifying Event-Driven Programming of Memory-Constrained Embedded Systems"] , Proc. ACM
SenSys , Boulder, CO, USA, Nov 2006. ( [http://www.sics.se/~adam/dunkels06protothreads.pdf PDF] , [http://www.sics.se/~adam/dunkels06protothreads.ppt Presentation slides] )External links
* [http://www.sics.se/~adam/pt/ Protothread library in C] used by
Contiki
* [http://www.sics.se/~adam/dunkels05using.pdf Using Protothreads for Sensor Node Programming] A PDF with some in-depth discussion about the use of Protothreads
* [http://www.frameworklabs.de/protothreads.html Protothreads library in Objective-C]ee also
*
Coroutine
Wikimedia Foundation. 2010.