A simple thread pool implementation in C