java wait阻塞_wait/notify问题,为什么程序会阻塞?
如下代码,执行多次,大部分程序会阻塞,不知道问题出现在哪,求教?public class Main {public static void main(String[] args) {Serve s = new Serve();Thread t1 = new Thread(new ThreadA(s));Thread t2 = new Thread(new ThreadB(s));t1.start(...