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. ...
Composing Objects 37 4.1.DesigningaThreadͲsafeClass 37 4.2.InstanceConfinement 39 4.3.DelegatingThreadSafety 41 4.4.AddingFunctionalitytoExistingThreadͲsafeClasses 47 4.5....
CHAPTER 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Dangerous Type Type Effects Halftone Pattern Type Look . . . . . . . . . . . . . . . . . . . . . . . . . . ...
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. Finding Meaning In Word Counts (Semantic Analysis) PART 2 - DEEPER LEARNING (NEURAL NETWORKS) Chapter 1. Baby Steps With Neural Networks (Perceptrons And Backpropagation) Chapter 2. ...
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. 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.2019.2
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...
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 .......................................................................................... ...
关于javascript的函数式编程设计,包括函数式编程的摘要,以及柯里化,lens,monads等内容
Composing XML-based configuration metadata .......................................... 25 Using the container .......................................................................................... ...