取决于加锁的方式。
Lock 方法有2种形式,如果指定了leaseTime (且不为-1), 不会启用watchDog机制.
如果没有指定leaseTime, 则会启动watchDog机制,且会一直续期,除非线程宕调或者续期失败。
public void lock() {
try {
this.lock(-1L, (TimeUnit)null, false);
} catch (InterruptedException var2) {
throw new IllegalStateException();
}
}
public void lock(long leaseTime, TimeUnit unit) {
try {
this.lock(leaseTime, unit, false);
} catch (InterruptedException var5) {
throw new IllegalStateException();
}
}
参考文章:
https://blog.51cto.com/u_16213688/7540380





![[spring] spring 框架、IOC和AOP思想](https://i-blog.csdnimg.cn/direct/206b161627a7466e8fb0f288b549f2e7.png)


![[浏览器]缓存策略机制详解](https://i-blog.csdnimg.cn/direct/e7f339e8e5d94ae0929382d2304ad96e.png)






![[CSS3]rem移动适配](https://i-blog.csdnimg.cn/img_convert/ec792de657ca2fcb7d01d5a750caec68.png)



