Protothreads: extremely lightweight, stackless threads in C

In many embedded systems, memory is severely constrained. RAM sizes on the order of a few hundreds of bytes or less is very common. Full multithreading may not be an option because of the memory required for thread stacks. For such systems, the newly released Protothreads Library provides a very lightweight alternative: protothreads are a stackless type of threads with only two bytes of RAM overhead per protothread. The library is implemented in pure C without any machine specific code. Protothreads are currently used in the Contiki OS and will be used in the upcoming version of the uIP embedded TCP/IP stack.

12 Comments

  1. 2005-02-25 11:15 pm
  2. 2005-02-25 11:20 pm
  3. 2005-02-25 11:22 pm
  4. 2005-02-26 12:09 am
  5. 2005-02-26 2:49 am
  6. 2005-02-26 10:34 am
  7. 2005-02-26 10:52 am
  8. 2005-02-26 11:13 am
  9. 2005-02-26 6:53 pm
  10. 2005-02-27 9:16 am
  11. 2005-02-27 11:14 pm
  12. 2005-02-28 7:12 am