这是分段锁的代码 public class SegementLock<T> { private int segementCount=16; private final Map<Integer, ReentrantLock> lockMap=new HashMap<>(); public SegementLock() { init(null, false); } public SegementLock(Integer count,boolean fair...