摘要:
public class ReentrantDemo { //重入锁 保护临界区资源count,确保多线程对count操作的安全性 /*public static ReentrantLock rtlock = new ReentrantLock(); public static int count = 0; Thread t = new Thread(new Ru... 阅读全文
posted @ 2019-03-20 09:54
愤怒中的小草
阅读(132)
评论(0)
推荐(0)