Chapter 4. Composing Objects(组合对象)
So far, we've covered the low-level basics of thread safety and synchronization. But we don't want to have to analyze each memory access to ensure that our program is thread-safe; we want to be able to take thread-safe components and safely compose them into larger components or programs. This chapter covers patterns for structuring classes that can make it easier to make them thread-safe and to maintain them without accidentally undermining their safety guarantees.
在前几章中,我们已经涉及到了关于线程安全和同步机制的基础的底层概念。但是我们实在不想通过逐次分析内存的访问来确保我们的程序的线程安全性,我们想要的是获得线程安全的组件,并将这些组件安全的嵌入到我们的系统中。在本章中,我们将会讨论如何来构建线程安全的类,如何维护这些类以确保不会发生由于不小心而破坏安全性的情况。
分享到:
相关推荐
Chapter 4. Metaprogramming with Macros Chapter 5. Composing Transducers Chapter 6. Exploring Category Theory Chapter 7. Programming with Logic Chapter 8. Leveraging Asynchronous Tasks Chapter 9. ...
Chapter 4. Layout Patterns Chapter 5. Structural Patterns Chapter 6. Activating Patterns Chapter 7. Combining Patterns Chapter 8. Composing Patterns Chapter 9. Observing Patterns Chapter 10. ...
Chapter 4. Composing Event-Based Programs Using Reactive Extensions Chapter 5. Create Microservices on Azure Service Fabric Chapter 6. Making Apps Responsive with Asynchronous Programming Chapter 7. ...
Chapter 4. No Comments, Please! Chapter 5. Component-Based Routing Chapter 6. Keeping Up with Activities Chapter 7. Components for User Experience Chapter 8. Time Will Tell Chapter 9. Spaceship ...
For over two decades, this comprehensive manual has been the standard introduction and complete reference for writing ...Chapter 4. pdf Documents Chapter 5. Customization Chapter 6. Long Documents
本书《Composing Software》是一本深入探讨函数式编程和对象组合在 JavaScript 中应用的书籍。作者 Eric Elliott 通过本书旨在帮助读者理解并掌握如何构建可扩展、可维护且高度模块化的软件系统。 ##### 重要知识点...
Chapter 4. Collections and Functional Programming Chapter 5. Multimethods and Protocols Chapter 6. Concurrency Chapter 7. Macros in Clojure Chapter 8. Application Performance Chapter 9. Reactive ...
Composing.Software.2019.2
Chapter 4. Python Shortcuts Introduction Recipe 4.1. Copying an Object Recipe 4.2. Constructing Lists with List Comprehensions Recipe 4.3. Returning an Element of a List If It Exists Recipe...
STL Function Objects <br/>8.1 The Concept of Function Objects <br/>8.2 Predefined Function Objects <br/>8.3 Supplementary Composing Function Objects <br/>Chapter 9. STL Algorithms...
在JavaScript中,Lens通常用对象的getter和setter函数来实现。Lens允许我们安全地处理嵌套的数据结构,而无需显式地解构或复制整个结构。通过组合多个Lens,我们可以构建出复杂的视图和更新操作。 四、Monad(范畴...
1.Composing of posts using FckEditor (Rich editor) 2.Ability to add code in the blog from the editor 3.Syntax Highlighter to highlight the code 4.Completely XML based 5.Scheduled publishing 6....
Composing XML-based configuration metadata .......................................... 25 Using the container .......................................................................................... ...
Composing XML-based configuration metadata .......................................... 25 Using the container .......................................................................................... ...
《Composing Programs》是加州大学伯克利分校(UC Berkeley)CS61A课程的一本经典教材,专注于教授计算机科学的基础知识,特别是编程概念。这本书的中文翻译版本为中文学习者提供了更方便的学习资源,帮助他们理解...