Protothreads - Lightweight Stackless Threads in C
Number of Authors: 2
2005 (English)Report (Refereed)
Protothreads are a extremely lightweight, stackless threads designed for use in severely memory constrained systems such as embedded systems. Software for memory constrained embedded systems sometimes are based on an event-driven model rather than on multi-threading. While event-driven systems allow for reduced memory usage, they require programs to be developed as explicit state machines. Since implementing programs as explicit state machines is hard, developing, maintaining, and debugging programs for event-driven systems is difficult. Protothreads simplify implementation of high-level functionality on top of event-driven systems, without significantly increasing the memory requirements. Protothreads can be implemented in in the C programming language using 10 lines of code and 2 bytes of RAM per protothread.
Place, publisher, year, edition, pages
Swedish Institute of Computer Science , 2005, 1. , 25 p.
SICS Technical Report, ISSN 1100-3154 ; 2005:05
multi-threading, event-driven programming, embedded systems
Computer and Information Science
IdentifiersURN: urn:nbn:se:ri:diva-14282OAI: oai:DiVA.org:ri-14282DiVA: diva2:1035570