• 提出一个漂亮双音链接手镯完成无形双重锁定

    It presents on a handsome two-tone steel link bracelet that's finished with an invisible double locking clasp.

    youdao

  • 使用双重检查锁定使用Initialize - on - demandHolderClassidiom提供了迟缓初始化,线程安全的,而且双重检查锁定更快且没那么混乱

    Instead of double-checked locking, use the Initialize-on-demand Holder Class idiom, which provides lazy initialization, is thread-safe, and is faster and less confusing than double-checked locking.

    youdao

  • 然而并不意味着应该这些实例中使用双重检查锁定

    However, this does not mean you should use double-checked locking in these instances.

    youdao

  • 无论以何种形式,都使用双重检查锁定因为不能保证任何JVM实现能顺利运行。

    The bottom line is that double-checked locking, in whatever form, should not be used because you cannot guarantee that it will work on any JVM implementation.

    youdao

  • 如果代码执行c 3完成构造函数另一个线程中断双重检查锁定就会失败

    If this code is interrupted by another thread after executing line C3 but before completing the constructor, double-checked locking fails.

    youdao

  • 然而对象构造函数尚未运行破坏双重检查锁定情况

    However, the constructor for this object has not run yet, which is precisely the situation that breaks double-checked locking.

    youdao

  • 是否修改双重检查锁定问题

    Does this fix the double-checked locking problem?

    youdao

  • 有关双重检查锁定问题为什么建议的算法修复不能解决问题的说明参阅参考资料。

    See Resources for a description of the double-checked locking problem and an an explanation of why the proposed algorithmic fixes don't work.

    youdao

  • 本文余下部分里,我们详细介绍双重检查锁定习语,从而理解何处失效

    In the remainder of this article, we'll examine the double-checked locking idiom in detail to understand just where it breaks down.

    youdao

  • 双重检查锁定背后理论完美的

    The theory behind double-checked locking is perfect.

    youdao

  • 所以如果双重检查锁定目标提供直观的同步方式更好性能,那么这个修复的”版本没有多大帮助

    So if the goal of double-checked locking is supposed to offer improved performance over a more straightforward synchronized approach, this "fixed" version doesn't help very much either.

    youdao

  • JIT编译器行为使双重检查锁定问题只不过是一次学术实践而已

    The fact that JIT compilers do just this makes the issues of double-checked locking more than simply an academic exercise.

    youdao

  • 这些事实将导致代码失败原因双重检查锁定难于跟踪

    These facts make a code failure due to double-checked locking very difficult to track down.

    youdao

  • 尽管如此即使是提议内存模型中,双重检查锁定也是无效的。

    However, even under the newly proposed memory model, double-checked locking will not work.

    youdao

  • 理解双重检查锁定习语是从哪里起源的,必须理解通用单例创建习语,如清单1中的阐释

    To understand where the double-checked locking idiom originated, you must understand the common singleton creation idiom, which is illustrated in Listing 1.

    youdao

  • 但是volatile语义允许通常所提出其中一个双重检查锁定可选方法正确地工作尽管我们不鼓励这种技术

    However, the new semantics of volatile allow one of the commonly proposed alternatives to double-checked locking to work correctly, although the technique is still discouraged.

    youdao

  • 新的内存模型中,对双重检查锁定这个修复使 idiom 线程安全。

    Under the new memory model, this "fix" to double-checked locking renders the idiom thread-safe.

    youdao

  • 双重检查锁定问题提出修复使包含迟缓初始化实例字段volatile字段。

    One of the proposed fixes to the double-checked locking problem was to make the field that holds the lazily initialized instance a volatile field.

    youdao

  • JSR- 133有关内存模型寻址问题的,尽管如此新的内存模型也不会支持双重检查锁定

    JSR-133 is addressing issues regarding the memory model, however, double-checked locking will not be supported by the new memory model. Therefore, you have two options.

    youdao

  • 考虑当前双重检查锁定不起作用,加入了另一个版本代码如清单7从而防止刚才看到无序写入问题

    Given that the current double-checked locking code does not work, I've put together another version of the code, shown in Listing 7, to try to prevent the out-of-order write problem you just saw.

    youdao

  • 这就是“双重检查锁定名称由来。

    Thus, the name "double-checked locking."

    youdao

  • 双重检查锁定获取两个

    Double-checked locking: Take two.

    youdao

  • 然而并不意味着应该这些实例使用双重检查锁定

    However, this does not mean you should use double -checked locking in these instances.

    youdao

  • 然而并不意味着应该这些实例使用双重检查锁定

    However, this does not mean you should use double -checked locking in these instances.

    youdao

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

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

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