The same ThreadPoolExecutor is used to directly submit work to the pool that can utilize the default J2EE context.
使用同一threadpoolexecut or直接将工作提交到可以利用缺省J2EE上下文的池。
When using a custom thread pool such as a ThreadPoolExecutor, it may not be desirable to run work within a single J2EE context.
在使用自定义线程池(如 ThreadPoolExecutor)时,可能不需要在单个 J2EE 上下文中运行工作。
You don't call the ThreadPoolExecutor constructor directly to create a thread pool but instead use the Executors utility class to create one.
使用Executors工具类来创建线程池,而不是直接调用ThreadPoolExecut or构造器来创建。
应用推荐