摘要:
常用并发辅助类 CountDownLatch Semaphore CyclicBarrier, 都基于ReentrantLock实现。1 Semaphores are often used to restrict the number of threads than can* access s... 阅读全文
摘要:
Callable Runable和Future FutureTask的使用1 先看看接口定义public interface Runnable {public abstract void run();//定义为void,和thread一样,无法返回执行结果}public interface Call... 阅读全文