摘要:
在日常开发中,我们经常会使用线程池来进行线程的管理,他能很好的帮助我们管理线程,比如线程复用以节约我们重复创建线程的开支,我们今天就来看下线程池的基本原理。 线程池的构造 public ThreadPoolExecutor(int corePoolSize, 核心线程数 int maximumPoo 阅读全文
摘要:
前言 在日常开发中,我们经常见到建造者模式的身影,我们看下建造者模式的定义 The intent of the Builder design pattern is to separate the construction of a complex object from its representa 阅读全文