public final native void wait(long timeout) throws InterruptedException;
在其他线程调用此对象的 notify()
方法或 notifyAll()
方法,或者超过指定的时间量前,导致当前线程等待。
public final native void wait(long timeout) throws InterruptedException;
在其他线程调用此对象的 notify()
方法或 notifyAll()
方法,或者超过指定的时间量前,导致当前线程等待。