2006年11月14日

关于Atomic

摘要: 应该来说,util.concurrent包中提供的atomic,包括两部分:1、atomic值对象,例如AtomicInteger、AtomicLong等。常用作计数器。2、AtomicReference3、一些内部使用Lock提供的compareAndSet操作。例如ConcurrentHashMap的putIfAbsent。.NET中也提供了类似的功能,InterLocked类提供着完全的能力... 阅读全文

posted @ 2006-11-14 21:24 温少 阅读(1599) 评论(0) 推荐(0) 编辑

JDK 1.6中的并发

摘要: 客户端程序应用 无意发现的一个类 package javax.swing;public abstract class SwingWorker implements RunnableFuture { } 也就是,一些并发相发的设计模式,已经应用在客户端程序设计中。我没有对swing关注更多,只是觉得预想中的趋势开始出现了。 Exchanger重写了,支持N parties。 RunnableFut... 阅读全文

posted @ 2006-11-14 01:27 温少 阅读(1713) 评论(0) 推荐(0) 编辑

导航