Protothreads are extremely lightweight stackless threads designed for severely memory constrained systems.

Marek Küthe 4be1b4e31f use modern cpp 1 éve
src 4be1b4e31f use modern cpp 1 éve
LICENSE 5f3dd538c8 Update metadata 1 éve
README.md 4a90349fed fix typo 1 éve
library.properties 979701c389 Switch to own implementation 1 éve

README.md

Protothreads are extremely lightweight stackless threads designed for severely memory constrained systems.

Protothreads provides a blocking context on top of an event-driven system, without the overhead of per-thread stacks. The purpose of protothreads is to implement sequential flow of control without complex state machines or full multi-threading.

Main features:

  • No machine specific code - the protothreads library is pure C/C++
  • Does not use error-prone functions such as longjmp()
  • Very small RAM overhead
  • Provides blocking wait without full multi-threading or stack-switching

Based on: