Is it possible for two ExecutorServices to share a thread pool?
问题 I've got a collection of records to process, and the processing can be parallelized, so I've created an ExecutorService (via Executors#newCachedThreadPool()). The processing of an individual record is, itself, composed of parallelizable steps, so I'd like to use another ExecutorService . Is there an easy way to make this new one use the same underlying thread pool? Is it even desirable? Thanks. 回答1: To answer your question: no , two ExecutorService objects cannot share a thread pool. However