Using Protothreads for Sensor Node Programming
Adam Dunkels, O. Schmidt, Thiemo Voigt · 2005
have severe resource constraints in terms of energy, processing power and memory. In order to work e#ciently within the constrained memory, many operating systems for such devices 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 di#cult.