Java并发编程:CountDownLatch、CyclicBarrier和Semaphore 面试经常考试的。看博客 http://www.cnblogs.com/dolphin0520/p/3920397.html相当的经典