Version 1.1 of the protothreads library is released:
http://www.sics.se/~adam/pt/
Protothreads are an extremely lightweight, stackless type of threads
written in portable C code. Protothreads provide blocked waiting and
sequential code execution on top of event-driven systems, without the
overhead of full multithreading or per-thread stacks. Protothreads are
designed for severely memory constrained systems and has a very low RAM
overhead.
Main features:
* Very small RAM overhead - only two bytes per protothread and no
extra stack
* Highly portable - the protothreads library is 100% pure C
* Can be used with or without an OS
* Provides blocking wait without full multithreading or
stack-switching
* Freely available under a BSD-like open source license
Example applications:
* Memory constrained systems
* Event-driven protocol stacks
* Small embedded systems
* Sensor network nodes
* Portable C applications
/adam
--
Adam Dunkels, Swedish Institute of Computer Science
http://www.sics.se/~adam/, <[email protected]>