A simple thread pool.