Creates a new task pool with the specified number of threads.
The number of worker threads to create
See Implementation
Creates a new task pool with the specified number of threads.