Creates a thread pool that creates new threads as needed, but will reuse previously constructed threads when they are available, and uses the provided ThreadFactory to create new threads when needed.
threadFactory | the factory to use when creating new threads |
NullPointerException | if threadFactory is null |
Diagram: Executors