Create thread pool with MAX_THREADS.