摘要: java.util.concurrent.Semaphore这个类里面的主要方法为: void acquire():Acquires a permit from this semaphore, blocking until one is available, or the thread isinte 阅读全文
posted @ 2016-10-19 18:21 天空中的蜂蜂 阅读(301) 评论(0) 推荐(0)
摘要: java.util.concurrent.CountDownLatch这个类里面的主要方法为: 1.countDown(),Decrements the count of the latch, releasing all waiting threads if the count reaches ze 阅读全文
posted @ 2016-10-19 17:41 天空中的蜂蜂 阅读(202) 评论(0) 推荐(0)