—-come in A 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] 当前正在排队的人数queueLength:3 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread A] —-come in B 当前正在排队的人数queueLength:2 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread B] 当前正在排队的人数queueLength:2 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread B] 当前正在排队的人数queueLength:2 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread B] 当前正在排队的人数queueLength:2 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread B] 当前正在排队的人数queueLength:2 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread B] 当前正在排队的人数queueLength:2 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread B] 当前正在排队的人数queueLength:2 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread B] 当前正在排队的人数queueLength:2 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread B] —-come in C 当前正在排队的人数queueLength:1 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread C] 当前正在排队的人数queueLength:1 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread C] 当前正在排队的人数queueLength:1 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread C] 当前正在排队的人数queueLength:1 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread C] —-come in D 当前正在排队的人数queueLength:0 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread D] 当前正在排队的人数queueLength:0 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Locked by thread D] 当前正在排队的人数queueLength:0 当前持有锁的线程是:java.util.concurrent.locks.ReentrantLock@20ad9418[Unlocked]