摘要:
BlockingQueue 在分析BlockingQueue之前,先看一下JDK1.8中对于BlockingQueue的注释说明: A {@link java.util.Queue} that additionally supports operations that wait for the qu 阅读全文
摘要:
先看一下线程池的基础架构图: (1)创建并返回设置有常用配置字符串的 ExecutorService 的方法。 (2)创建并返回设置有常用配置字符串的 ScheduledExecutorService 的方法。 (3)创建并返回“包装的”ExecutorService 方法,它通过使特定于实现的方法 阅读全文