notifyall是什么意思?notifyall怎么发音?notifyall的解释和用法
推荐文章

英语单词notifyall是什么意思?notifyall怎么读?notifyall怎么发音?52单词网为您整理了notifyall的解释、用法、例句、词组等相关学习资料。下面跟小编一起来看看吧!
notifyall的意思
1、唤醒所以线程;唤醒所有的线程;通知所有人
notifyall的双语例句
1、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(),唤醒所有受阻塞的线程。
2、The root Object class includes some special methods for communicating across threads& wait(), notify(), and notifyAll().
根类Object包含某些特殊的方法,用来在线程的wait()、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、Careful: replacing the notifyAll() with notify() solves the problem in this scenario but will fail on others!)
注意:用notify()取代notifyAll()能解决此情形中的问题,但是在其他情形中将会失败!
以上是52单词网为您整理的notifyall怎么读的相关信息,希望对大家有一定的帮助。
notifyall是什么意思?notifyall怎么发音?notifyall的解释和用法




