单项选择题
A.调用lock 方法B.调用unlock 方法C.调用tryLock 方法D.调用newCondition 方法
在ReentrantLock 中,如何通过构造方法创建一个公平锁?()A.new ReentrantLock(...
单项选择题在ReentrantLock 中,如何通过构造方法创建一个公平锁?()
A.new ReentrantLock()B.new ReentrantLock(true)C.new ReentrantLock(false)D.new ReentrantLock(ReentrantLock.FAIR)
AbstractQueuedSynchronizer 中的tryAcquireShared 方法和tryRel...
单项选择题AbstractQueuedSynchronizer 中的tryAcquireShared 方法和tryReleaseShared 方法是哪种同步模式下使用的?()
A.独占模式B.共享模式C.互斥模式D.读写模式
AbstractQueuedSynchronizer 使用了()的等待队列机制来实现线程在同步状态上的等待和唤...
单项选择题AbstractQueuedSynchronizer 使用了()的等待队列机制来实现线程在同步状态上的等待和唤醒操作。
A.先进先出(FIFO)B.先进后出(FILO)C.后进先出(LIFO)D.左进右出(LIRO)