【1】典型应用CountDownLatch begin = new CountDownLatch(1);begin.countDown(); //锁计数减1begin.await(); //阻塞等,直到begin为0,或当前线程被其他线程中断http://man.ddvip.com/program/java_api_zh/java/util/concurrent/CountDownLatch.html【2】Thread, 几个一直然不清的方法以下为Thread的自带方法:interrupt() 中断线程.Thread.interrupt()方法,不会中断一个正在运行的线程。这一方法实际上完成的 Read More
posted @ 2012-05-28 14:47 技术草根女 Views(1714) Comments(0) Diggs(0) Edit