go top

a block of synchronized code

网络释义

  同步程式区块

* 同步程式区块(A Block of Synchronized Code)-同步程式区块可以避免多位使用者同时存取实例变数,例如

基于12个网页-相关网页

有道翻译

a block of synchronized code

一个同步代码块

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

双语例句

  • If you have two operations that require synchronization separated by a small block of thread-safe code, you are generally better just using a single synchronized block.

    要是您想用一小块线程安全代码把要求同步的两个操作隔开,那么只使用一个同步块一般会更好些。

    youdao

  • If it is not small enough, you should analyze your code and refactor it in such a way that anything that could run asynchronously is located outside of the synchronized block.

    如果同步代码块不够小,应该对代码进行分析,对其重构,以使所有可以异步运行的代码均位于同步代码块之外。

    youdao

  • In light of our observation it seems as if we should be able to optimize access in the case where a thread is looping over a synchronized block of code.

    根据我们的观察,我们似乎需要对一些锁的访问进行优化,比如线程执行的同步块代码在一个循环体中。

    youdao

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

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

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