摘要:
转自:http://www.importnew.com/20557.html 2014年3月16日 “Java is still not dead—and people are starting to figure that out.” 欢迎阅读我对 Java 8 的介绍。本指南将一步步地通过所有的 阅读全文
摘要:
0.定义 单例模式(Singleton Pattern), 其定义如下:Ensure a class has only one instance, and provide a global point of access to it.(确保某一个类只有一个实例, 而且自行实例化并向整个系统提供这个实 阅读全文
摘要:
1.仍然先看构造方法:ThreadPoolExecutor构造方法 public ThreadPoolExecutor(int corePoolSize,int maximumPoolSize,long keepAliveTime,TimeUnit unit, BlockingQueue<Runna 阅读全文
摘要:
1.ThreadPoolExecutor构造方法 public ThreadPoolExecutor(int corePoolSize,int maximumPoolSize,long keepAliveTime,TimeUnit unit, BlockingQueue<Runnable> work 阅读全文