An executor that executes each submitted task using one of possibly several pooled threads.
Method execute(command:TRunnable) Override
Executes the given command at some time in the future.
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.
Creates an executor that uses a single worker thread operating off an unbounded queue.
Creates a thread pool that reuses a fixed number of threads operating off a shared unbounded queue.
At any point, at most threads threads will be active processing tasks. If additional tasks are submitted when all threads are active, they will wait in the queue until a thread is available.