Preface ExecutorService is a framework for asynchronous execution in java. By using ExecutorService you can easily create a multi-threaded execution environment. This article will explain in detail the specific use of ExecutorService. Creating an ExecutorService Generally speaking, there are two ways to create an ExecutorService. The first way is to use the factory class methods in Executors, for example. ExecutorService executor = Executors.newFixedThreadPool(10); In addition to the newFixedThreadPool method, Executors contains a number of methods to create an ExecutorService.