Java并发编程:CountDownLatch、CyclicBarrier和Semaphore 关于线程的控制:https://www.cnblogs.com/dolphin0520/p/3920397.html 参看这个文章,比较详细,还有例子