• 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

  • Note that this code is fully thread safe.

    注意这样代码完全线程安全的。

    youdao

  • On the surface it looks as though lock elision allows us to write thread safe code without any synchronization penalty for using in cases where it really wasn't needed.

    表面上省略似乎可以允许我们不必忍受同步带来的负担,就可以编写线程安全代码了,前提同步的确是多余的情况下。

    youdao

  • There is no straightforward way to make the code in Listing 1 thread-safe, making this idiom an accident waiting to happen.

    没有直观途径来使清单1中的代码线程安全的,这使这种语言风格成为了一种等待时机发生的事故

    youdao

  • Once the class has been resolved, the original code location is modified in a thread-safe way to access the static field's address directly because that address is then known.

    一旦解析,就会一种线程安全的方式修改原始代码位置以便直接访问静态字段地址因为此时已获知该地址。

    youdao

  • Batch application developers write code that is thread-safe and executes on a single thread.

    批处理应用程序开发人员可以编写线程安全的、单个线程中执行的代码

    youdao

  • Now the UI is safe and the code is simpler, because it separates the work into the part that should be done on a worker thread and the part that should be done on the UI thread.

    现在UI安全的,代码得到简化因为任务分解成了工作线程完成部分UI线程内完成的部分。

    youdao

  • There is no straightforward way to make the code in Listing 1 thread-safe, making this idiom an accident waiting to happen.

    没有什么简单的办法可用清单1中的代码变成线程安全的,这使得惯用技法变成了一个在等待时机发生的事故

    youdao

  • What this means is that the following code is not thread safe!

    表示下面代码不是线程安全的。

    youdao

  • If a caller wants to increment the foo property, the following code to do so is not thread-safe.

    如果一个调用者增加foo属性值,以下完成功能的代码就不是线程安全的。

    youdao

  • This is simple (but difficult. makes buggy code easy) work to make them thread-safe (but many efforts are needed).

    转换为线程安全一件简单(其实很困难,编写充满bug代码倒是很简单)的工作但是需要更多努力)。

    youdao

  • This is a typical symptom of code that is not thread safe.

    一个典型症状是不是线程安全代码

    youdao

  • Will the code be thread safe?

    代码线程安全的?

    youdao

  • In other words, if you're using code that is not thread safe, you should either fix that code, or consider moving to the multi-process model.

    话说,如果使用代码不是线程安全的,你需要修复你的代码,或者考虑使用多进程模型。

    youdao

  • To help keep your provider thread-safe, you must verify that your code is blocked properly.

    使提供程序是线程安全的,必须确保代码正确模块化。

    youdao

  • To help keep your provider thread-safe, you must verify that your code is blocked properly.

    使提供程序是线程安全的,必须确保代码正确模块化。

    youdao

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

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

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