thread-lib Simple thread library implementation in C Context switching between threads implemented. Locks implemented. There is an example of how to use it.