wait()和notify()方法使用

  1.wait()和notify()方法必须一起使用。 2.wait()和notify()必须在synchronized()代码块中。 3.调用wait()和notify()方法的对象必须和所对象一致。
相关文章
相关标签/搜索