• 2024-12-15多线程交替打印ABC
    开启3个线程,依次交替打印ABC,打印5轮一、使用Lock+Condition来实现publicclassThreadABC{privatevolatileintnumber=1;privateLocklock=newReentrantLock();privateConditionc1=lock.newCondition();privateConditionc2=lock.newCondi