首页 / 词典 / good

notifyall

notifyallnotifyall
  1. The root Object class includes some special methods for communicating across threads & wait (), notify (), and notifyAll () .

    根类Object包含某些特殊的方法,用来在线程的wait()、notify()和notifyAll()之间进行通信。

  2. Careful : replacing the notifyAll () with notify () solves the problem in this scenario but will fail on others !)

    注意:用notify()取代notifyAll()能解决此情形中的问题,但是在其他情形中将会失败!

  3. The wait () method tells the current thread to go into an inactive state and wait for another thread to call notifyAll () on that object .

    wait()方法将通知当前线程进入非活动状态,并等待另一个线对该对象调用notifyAll()。

  4. When an external process calls the Bucket 's ( also synchronized ) flush () method , a notifyAll () is sent , thereby waking up all blocking processes .

    当外部进程调用Bucket的(也是同步的)flush()方法时,就发送一个notifyAll(),唤醒所有受阻塞的线程。

  5. The Condition methods that are analogous to wait , notify , and notifyAll , are named await , signal , and signalAll , because they cannot override the corresponding methods in Object .

    Condition的方法与wait、notify和notifyAll方法类似,分别命名为await、signal和signalAll,因为它们不能覆盖Object上的对应方法。

  6. In essence , wait () and notify () / notifyAll () act as a simple signaling mechanism , allowing the Drop to coordinate between the Producer and the Consumer threads , one take to each put .

    从本质上说,wait()和notify()/notifyAll()允许一种简单的信令机制,它允许Drop在Producer和Consumer线程之间进行协调,每个put都有相应的take。

  7. The first , full access to the underlying libraries ( such as java . util . concurrent ) and support for the " traditional " Java concurrency semantics ( such as monitors and wait () / notifyAll ()) .

    首先,对底层库的完全访问(比如说java.util.concurrent)以及对“传统”Java并发性语义的支持(比如说监控程序和wait()/notifyAll())。