• 2024-12-24synchornized核心原理讲解
    前言在此之前先有几个面试题,看大家能答对几题1.1:标准访问ab二个线程,是先打印t1还是t2???publicclassSyncUnit{publicsynchronizedvoidt1(){System.out.println("t1");}publicsynchronizedvoidt2(){System.out.println("t