Continue reading "Protothreads: a Lightweight Threading Solution for Resource-constrained Systems"
Protothreads: a Lightweight Threading Solution for Resource-constrained Systems
The protothreads library provides a lightweight, stackless threading solution targeted for resource-constrained embedded systems. Protothreads provides an event-driven system with a blocking context, without the overhead of per-thread stacks. And I'm serious when I say "lightweight": each protothread requires only 2 bytes of memory! The library is implemented in pure C and can be used …
