Java線程通訊——wait() 和 notify()

  Object類中有關線程通訊的方法有兩個notify方法和三個wait方法,官方解釋:html void notify() Wakes up a single thread that is waiting on this object's monitor. void notifyAll() Wakes up all threads that are waiting on this object
相關文章
相關標籤/搜索