• 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

  • 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
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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