---
title: "java高并发"
author: "xcgh"
date: "2013-07-10T13:36:45Z"
tags: []
categories: ["编程语言"]
slug: "java"
draft: false
lastmod: "2013-07-10T13:37:02Z"
id: 1902459
url: "https://xcgh.iteye.com/blog/1902459"
---

java高并发实现java.util.concurrent  
BufferedReader和BufferedWriter需要用缓存提高效率

[http://lavasoft.blog.51cto.com/62575/222541](http://lavasoft.blog.51cto.com/62575/222541)

ExecutorService pool = Executors.newFixedThreadPool(2);

//关闭线程  
pool.shutdown();

[http://www.itzhai.com/the-executorservice-common-method-newfixedthreadpool-of-create-fixed-size-thread-pool.html](http://www.itzhai.com/the-executorservice-common-method-newfixedthreadpool-of-create-fixed-size-thread-pool.html)

[http://mojarra.iteye.com/blog/1259288](http://mojarra.iteye.com/blog/1259288)