go top

synchronized method

网络释义

  同步方法

使用的主要方法就是对象的wait(),notify(),notifyAll()三个函数,它们都必须从同步方法(synchronized method)中调用.其中,fetchTask通过调用wait方法,实现了没有任务时则对自己(this) 加锁 ( lock ),以让进入的线程等待,

基于59个网页-相关网页

短语

mutual synchronized method [通信] 互同步法

synchronized test method 同步测试的方法

method of synchronized identification 同步识别法

有道翻译

synchronized method

同步的方法

以上为机器翻译结果,长、整句建议使用 人工翻译 。

双语例句

  • One well-known source has cited that a synchronized method call is as much as 50 times slower than an unsynchronized method call.

    一个著名的资料来源就曾经引证说一个同步的方法调用比一个非同步的方法调用慢 50 倍。

    youdao

  • Even when a program contains only a single thread running on a single processor, a synchronized method call is still slower than an unsynchronized method call.

    即使一个程序只包括一个在单一处理器上运行的单线程,一个同步的方法调用仍要比非同步的方法调用慢。

    youdao

  • As more advanced JVMs have emerged, the cost of synchronization has decreased, but there is still a performance penalty for entering and leaving a synchronized method or block.

    随着更高级的JVM的出现,同步的代价降低了,但出入synchronized方法或块仍然有性能损失。

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定