Example & Tutorial understanding programming in easy ways.

What is Executors Framework ?

In Java 5, Executor framework was introduced with the java.util.concurrent.Executor interface.

  1. The Executor framework is a framework for standardizing invocation, scheduling, execution, and control of asynchronous tasks according to a set of execution policies.
  2. Creating a lot many threads with no bounds to the maximum threshold can cause application to run out of heap memory.
  3. So, creating a ThreadPool is a better solution as a finite number of threads can be pooled and reused.
Executors framework facilitate process of creating Thread pools in java.

Read More →