publicvoidput(Ee)throws InterruptedException{checkNotNull(e);finalReentrantLocklock=this.lock;//加锁,这里的加锁使用的是lockInterruptibly方法lock.lockInterruptibly();try{while(count==items.length)notFull.await();enqueue(e);}finally{lock.unlock();}} lockInterruptibly方法 publicfinalvoidacquireInterru...