| 软件包 | 描述 |
|---|---|
| java.util.concurrent.locks |
接口和类提供了一个框架,用于锁定和等待与内置同步和监视器不同的条件。
|
| Class and Description |
|---|
| AbstractOwnableSynchronizer
可以由线程专有的同步器。
|
| AbstractQueuedLongSynchronizer.ConditionObject
Condition实现 AbstractQueuedLongSynchronizer作为基础Lock实施。
|
| AbstractQueuedSynchronizer.ConditionObject
Condition实现 AbstractQueuedSynchronizer作为基础Lock实施。
|
| Condition |
Lock
Lock实现提供比使用
synchronized方法和语句可以获得的更广泛的锁定操作。
|
| ReadWriteLock
A ReadWriteLock维护一对关联的locks ,一个用于只读操作,一个用于写入。
|
ReentrantReadWriteLock
ReadWriteLock的一个实现支持类似的语义到ReentrantLock 。
|
| ReentrantReadWriteLock.ReadLock
该锁由方法
ReentrantReadWriteLock.readLock()返回。
|
| ReentrantReadWriteLock.WriteLock
该锁由方法
ReentrantReadWriteLock.writeLock()返回。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.