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

Marek Küthe 4be1b4e31f use modern cpp 1 рік тому
src 4be1b4e31f use modern cpp 1 рік тому
LICENSE 5f3dd538c8 Update metadata 1 рік тому
README.md 4a90349fed fix typo 1 рік тому
library.properties 979701c389 Switch to own implementation 1 рік тому

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: