ReentrantLock

ReentrantLock分为偏心锁和非偏心锁

    public ReentrantLock(boolean fair) {        sync = fair ? new FairSync() : new NonfairSync();    }