贝多烦

导航

01 2021 档案

java 线程池 带返回值
摘要:import java.util.concurrent.ExecutionException;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import java.util.conc 阅读全文

posted @ 2021-01-10 17:29 贝多烦 阅读(266) 评论(0) 推荐(0)

java 多线程 数据通信
摘要:1.司机等乘客全部上车后再启动车子 import java.util.concurrent.CountDownLatch;public class A { public static void main(String[] args) { CountDownLatch countDownLatch = 阅读全文

posted @ 2021-01-09 12:44 贝多烦 阅读(110) 评论(0) 推荐(0)

jedis使用分布式锁
摘要:import redis.clients.jedis.Jedis;public class A { public static void main(String[] args) throws Exception { Jedis jedis = new Jedis("localhost", 6379) 阅读全文

posted @ 2021-01-01 11:25 贝多烦 阅读(196) 评论(0) 推荐(0)