| 1. | Use the double - check pattern for synchronized initialization 对于同步的初始化应使用双重检查模式。 |
| 2. | Double - checked locking problem 双重检查锁定问题 |
| 3. | If you ve read any of the articles on the double - checked locking problem see 如果您阅读了关于双重检查锁定问题( double - checked locking problem )的任何文章(参阅 |
| 4. | Under the new memory model , this " fix " to double - checked locking renders the idiom thread - safe 在新的内存模型中,对双重检查锁定的这个“修复”使idiom线程安全。 |
| 5. | For a description of the double - checked locking problem and an an explanation of why the proposed algorithmic fixes don t work (有关双重检查锁定的问题和对为什么所建议的算法修复不能解决问题的说明请参阅 |
| 6. | Allow one of the commonly proposed alternatives to double - checked locking to work correctly , although the technique is still discouraged 的新语义允许通常所提出的其中一个双重检查锁定的可选方法正确地工作,尽管我们不鼓励这种技术。 |
| 7. | 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 对双重检查锁定问题提出的一种修复是使包含迟缓初始化的实例的字段为一个volatile字段。 |
| 8. | 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 )所以如果双重检查锁定的目标是提供比更直观的同步方式更好的性能,那么这个“修复的”版本也没有多大帮助。 |
| 9. | I ' m not saying you should ignore everything you think you know ? just double - check it , triple - check it , and always be open to the idea that what you think you know may be wrong 我不是说你要忽略你思考和你知道的每件事? ?只是双重检查之,三重检查之,并且开放接受你所想和你所知道的可能是错误的理念。 |