a simple thread pool made by c