摘要: InterProcessMutex 类详解步骤:获取锁的过程步骤: 1.acquire方法,根据当前线程获取锁对象,判断当前的线程是否已经获取锁,此处则代表可重入;2.获取锁方法,String lockPath = internals.attemptLock(time, unit, getLockN 阅读全文
posted @ 2016-05-12 17:19 lishijia 阅读(5999) 评论(0) 推荐(0) 编辑