关于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) 编辑