notifyall

  • notifyall
  • 网络

    唤醒所以线程;唤醒所有的线程;通知所有人

纠错 数据更新时间:2026-04-18 08:26:20
1、

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

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

互联网摘选

2、

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。

互联网摘选

3、

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

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

互联网摘选

4、

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()。

互联网摘选

5、

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(),唤醒所有受阻塞的线程。

互联网摘选

  • 今日热词
  • 热门搜索

英语网英语词典(dict.25820.com)为您提供在线翻译英语词典单词大全英译汉汉译英等英语服务!可按单词字数词义分类查询。支持lj:关键词格式查询例句。

用户反馈
请选择反馈类型(可多选):
您的联系方式:
反馈内容:
提交成功 小编会尽快处理
回到顶部
点击反馈