java Lock应用示例1
package com.test.lock;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class LockDemo {
//创建lock,ReentrantLock是Lock的唯一实
原创
2020-05-13 17:27:10 ·
271 阅读 ·
0 评论