What is Executors Framework ?
In Java 5, Executor framework was introduced with the java.util.concurrent.Executor interface.
Executors framework facilitate process of creating Thread pools in java.
Read More →
- The Executor framework is a framework for standardizing invocation,
scheduling, execution, and control of asynchronous tasks according to a
set of execution policies.
- Creating a lot many threads with no bounds to the maximum threshold can cause application to run out of heap memory.
- So, creating a ThreadPool is a better solution as a finite number of threads can be pooled and reused.