Double-Checked Locking的意思|示意

美 / / 英 / /

双重检查锁定


Double-Checked Locking的网络常见释义

双重检查加锁 使用双重检查加锁(double-checked locking),首先检查是否已经创建了一个实例,如果尚未创建,才进行同步。这样一来,只有第一次会同步。

双重检查锁定 第十六章 SINGLETON(单件)模式和DOUBLE-CHECKED LOCKING(双重检查锁定)模式

双重检测锁 双重检测锁(Double-Checked Locking)实现的Singleton模式在多线程应用中有相当的价值。在ACE的实现中就大量使用ACE_Singleton模板类将普通类转换成具有Singl

双检锁 第四种 双检锁 (double-checked locking) since 1.5 是 是 较错杂 getInstance()的机能对应用法度很关键;

Double-Checked Locking相关短语

1、 Double-Checked Locking Optimization 双重检查加锁优化 ; 双检查加锁优化

Double-Checked Locking相关例句

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

如果此代码在执行c 3行后且在完成该构造函数前被另一个线程中断,则双重检查锁定就会失败。

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.

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

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

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

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.

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

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

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

The theory behind double-checked locking is perfect.

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