A task pool, execute tasks in the thread pool or the process pool.