ExecutorService that executes tasks sequentially but takes threads from a pool
问题 I am trying to build an implementation of the ExecutorService , let's call it SequentialPooledExecutor , with the following properties. All instances of SequentialPooledExecutor share the same thread pool Calls on the same instance of SequentialPooledExecutor are executed sequentially. In other words, the instance waits for the termination of the currently executing task before start processing the next task in its queue. I am currently in the process of implementing the