Lock和实现类中ReentrantLock中的lock()与tryLock()区别
先上代码package time.task.excutor;import java.util.concurrent.TimeUnit;import java.util.concurrent.locks.Lock;import java.util.concurrent.locks.ReentrantLock;public class ReentrantDemo { public ...
原创
2018-07-26 15:54:06 ·
1817 阅读 ·
0 评论