用CompletableFuture模拟死锁

将两把锁作为参数传递给MySupplier,get方法中用两个synchronized加锁,中间等待5秒 package com.test.jvm; import java.lang.management.ManagementFactory; import java.util.concurrent.CompletableFuture; import java.util.concurrent.Ex
相关文章
相关标签/搜索