1.wait()方法 该方法继承于Object类.在调用obj.wait()方法后,当前线程会失去obj的锁.待其他线程调用obj.notify()或notifyAll()方法后进入锁等待池,争抢到锁后进行执行wait()后续代码. wait(long time)方法超时自动结束阻塞,进入锁等待池,争抢到锁后进行执行wait()后续代码. jdk文档描述: Causes the current thread to wait until another thread invokes the not…