三个等待唤醒机制(wait-notify/notifyAll、await-signal、park-unpark)
一、wait-notify/notifyAllpublicclassStudy{publicstaticvoidmain(String[]args){Objecto=newObject();newThread(()->{synchronized(o){System.out.println("A即将被阻塞");try{o.wait();}catch(InterruptedExceptione){e.