网站首页 站内搜索

搜索结果

查询Tags标签: DemoThread12,共有 2条记录
  • JAVA多线程-死锁

    1.code demo点击查看代码 public class DemoThread12 {private Object lock1 = new Object();private Object lock2 = new Object();public void execute1() {synchronized (lock1) {System.out.println("线程" + Thread.currentThread().getName() + "获得…

    2021/12/1 22:08:24 人评论 次浏览
  • JAVA多线程-死锁

    1.code demo点击查看代码 public class DemoThread12 {private Object lock1 = new Object();private Object lock2 = new Object();public void execute1() {synchronized (lock1) {System.out.println("线程" + Thread.currentThread().getName() + "获得…

    2021/12/1 22:08:24 人评论 次浏览
扫一扫关注最新编程教程