1、 Causes the current thread to wait until either another thread invokes the notify() method or the notifyAll() method forthis object, or a specified amount of time has elapsed.
The current thread must own this object's monitor.
2、 In other words,waits should always occur in loops.like this one: synchronized(obj){ while (condition does not hold) obj.wait(timeout); // Perform action appropriate to condition }
3、 @throws IllegalArgumentException if the value of timeout isnegative.
@throws IllegalMonitorStateException if the current thread is notthe owner of the object 's monitor.
@throws InterruptedException if any thread interrupted the current thread before or while the current thread was waiting for a notification. The interrupted status of the current thread is cleared when this exception is thrown.
Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。