java.util.concurrent源码学习
笨鸟想先飞
求知若渴,虚心若愚
展开
-
java.util.concurrent源码学习三
public interface Lock 一:作用 * A lock is a tool for controlling access to a shared resource by * multiple threads. Commonly, a lock provides exclusive access to a * shared resource: only one thread原创 2016-07-14 16:13:09 · 205 阅读 · 0 评论 -
java.util.concurrent源码学习二
java.util.concurrent.atomic.AtomicInteger 一:作用 An int value that may be updated atomically 二:成员变量 与上一篇文章基本相同 三:主要成员方法,这里只展示AtomicInteger特有的方法 将原来的值+1,并且返回修改前的值 public final int getAnd原创 2016-07-14 15:31:46 · 374 阅读 · 0 评论 -
java.util.concurrent源码学习一
public class AtomicBoolean implements java.io.Serializable 一:作用 A boolean value that may be updated atomically 二:主要成员变量 private static final Unsafe unsafe = Unsafe.getUnsafe(); s原创 2016-07-14 14:53:49 · 243 阅读 · 0 评论 -
java.util.concurrent源码学习四
public interface Condition 一:作用 * {@code Condition} factors out the {@code Object} monitor * methods ({@link Object#wait() wait}, {@link Object#notify notify} * and {@link Object#notifyAll notify原创 2016-07-14 16:43:55 · 277 阅读 · 0 评论