1.wait()、notify/notifyAll() 在synchronized 代码块执行

 2.notify 和wait 的顺序不能错,如果A线程先执行notify方法,B线程在执行wait方法,那么B线程是无法被唤醒的。