A simple, bare-bones, user-space threading library with support for preemption written in C.
Most of the interesting code is in thread.c
-- with thread_yield()
being particularly fascinating.
The tests are named test_*.c
. To build all the tests, run: make