GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing raw.githubusercontent.com — raw.githubusercontent.com # 线程池原理分析
首先要明确为什么要使用线程池,使用线程池会带来什么好处?
- 线程是稀缺资源,不能频繁的创建。
- 应当将其放入一个池子中,可以给其他任务进行复用。
- 解耦作用,线程的创建于执行完全分开,方便维护。
## 创建一个线程池
以一个使用较多的
```java
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |