《2021/03/22》多线程编码
1. 交叉打印ABimport java.util.concurrent.locks.Condition;import java.util.concurrent.locks.ReentrantLock;public class ABDemo {}class ABPrint { private boolean flag = false; public synchronized void printA() { while (flag) {