AbstractQueuedSynchronizer(十)——应用之ReentrantLock
来源:互联网 发布:python web服务 编辑:程序博客网 时间:2024/05/21 13:21
1.AbstractQueuedSynchronizer注释上可以被用作锁的方法(5个)
public interface Lock { void lock(); void lockInterruptibly() throws InterruptedException; boolean tryLock(); boolean tryLock(long time, TimeUnit unit) throws InterruptedException; void unlock(); Condition newCondition();}public final void acquire(int arg)
This method can be used to implement method {@link Lock#lock}.
public final void acquireInterruptibly(int arg)
This method can be used to implement method {@link Lock#lockInterruptibly}.
public final boolean tryAcquireNanos(int arg, long nanosTimeout) throws InterruptedException
This method can be used to implement method {@link Lock#tryLock(long, TimeUnit)}.
public final boolean release(int arg)
This method can be used to implement method {@link Lock#unlock}.
protected boolean tryAcquire(int arg)
This can be used to implement method {@link Lock#tryLock()}.
0 0
- AbstractQueuedSynchronizer(十)——应用之ReentrantLock
- AbstractQueuedSynchronizer详解(一)——分析ReentrantLock源码
- AbstractQueuedSynchronizer(十一)——应用之CountDownLatch
- AbstractQueuedSynchronizer(十二)——应用之AbstractFuture
- AbstractQueuedSynchronizer(十三)——应用之Futures
- AbstractQueuedSynchronizer(十四)——应用之FutureTask
- AbstractQueuedSynchronizer(十五)——应用之ThreadPoolExecutor
- AbstractQueuedSynchronizer(九)——ReentrantLock公平和非公平锁
- AbstractQueuedSynchronizer源码解析之ReentrantLock(一)
- AbstractQueuedSynchronizer源码解析之ReentrantLock(二)
- JDK之ReentrantLock,AbstractQueuedSynchronizer源码分析
- ReentrantLock之AbstractQueuedSynchronizer 源码分析笔记
- 尝试阅读ReentrantLock、AbstractQueuedSynchronizer源码(一)
- 尝试阅读ReentrantLock、AbstractQueuedSynchronizer源码(二)
- AbstractQueuedSynchronizer在工具类ReentrantLock、Semaphore、CountDownLatch、CyclicBarrier中的应用
- AbstractQueuedSynchronizer在工具类ReentrantLock、Semaphore、CountDownLatch、CyclicBarrier中的应用
- ReentrantLock、AbstractQueuedSynchronizer解读
- Lock实现之AbstractQueuedSynchronizer——AQS
- 战争与和平 摘录二
- mysql优化方案总结
- AngularJS 教程
- 热修复框架nuwa的使用
- L2-011. 玩转二叉树
- AbstractQueuedSynchronizer(十)——应用之ReentrantLock
- android获取各种系统路径的方法
- Base64编码
- 高仿Uber的类型选择控件
- UVA-10878 Decode the tape
- Xcode中如何添加PrefixHeader.pch文件
- Android app支付功能开发
- python zookeeper 服务发现
- svn集成checkstyle