There are two more static factory methods in the Executors class that create instances of ExecutorService:
- newWorkStealingPool(): This creates a work-stealing thread pool using the number of available processors as its target parallelism level. It has an overloaded version with a parallelism level as a parameter.
- unconfigurableExecutorService(ExecutorService executor): This returns an object that delegates all the defined ExecutorService methods to the given executor, except for those methods that might otherwise be accessible using casts.
Also, a subinterface of the ExecutorService interface, called ScheduledExecutorService, enhances the API with the capability to schedule a thread execution in future and/or their periodic ...