线程注意点
meng_lin
这个作者很懒,什么都没留下…
展开
-
JDK5 concurrent 并行包之CyclicBarrier
[code="java"]package projects.debug.learn; import java.util.concurrent.BrokenBarrierException; import java.util.concurrent.CyclicBarrier; public class part1 { /** * This static mehthod ...原创 2009-10-12 10:40:00 · 110 阅读 · 0 评论 -
多线程之CountDownLatch
[code="java"]package projects.debug.learn; import java.util.concurrent.CountDownLatch; public class CountDownLatchTest { public void CountDownLatchExa() throws InterruptedException { fin...原创 2009-10-12 10:58:31 · 72 阅读 · 0 评论 -
Semaphore
[code="java"]package projects.debug.learn; import java.util.Collection; import java.util.Iterator; import java.util.Queue; import java.util.concurrent.Semaphore; public class SyncQueue implem...原创 2009-10-12 11:58:23 · 83 阅读 · 0 评论