What is a Protothread?
Protothreads was created by Adam Dunkels at the Networked Embedded Systems group at the Swedish Institute of Computer Science. Though developed for use in embedded (and memory constrained ) systems and used in the Contiki OS (by the same author), the protothreads library works perfectly well in non-embedded applications. It provides a way to do a blocking wait without full multi-threading or stack-switching. There is a good example of it being used in a wireless sensor network- you can read about it (Note - link goes to a PDF) . I've added a link to Protothreads into the C code library.
- Link to C Code Library


Comments
No comments yet. Leave a Comment