Creates a new worker pool.
parallels |
the number of threads |
factory |
a thread factory to create new threads |
Error |
if threads can not be created, due to resource limits, etc. |