`
lvhuiqing
  • 浏览: 244860 次
  • 性别: Icon_minigender_1
  • 来自: 沈阳
社区版块
存档分类
最新评论

Chapter 4. Composing Objects(合成对象)

阅读更多
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.
在前几章中,我们已经涉及到了关于线程安全和同步机制的基础的底层概念。但是我们实在不想通过逐次分析内存的访问来确保我们的程序的线程安全性,我们想要的是获得线程安全的组件,并将这些组件安全的嵌入到我们的系统中。在本章中,我们将会讨论如何来构建线程安全的类,如何维护这些类以确保不会发生由于不小心而破坏安全性的情况。
分享到:
评论

相关推荐

    Mastering.Clojure.1785

    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. ...

    java concurrency programming in practice

    Composing Objects 37 4.1.DesigningaThreadͲsafeClass 37 4.2.InstanceConfinement 39 4.3.DelegatingThreadSafety 41 4.4.AddingFunctionalitytoExistingThreadͲsafeClasses 47 4.5....

    [Photoshop.CS4.炫招].(Photoshop.CS4.Down.&.Dirty.Tricks).[美]Scott.Kelby.完美版.pdf

    CHAPTER 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Dangerous Type Type Effects Halftone Pattern Type Look . . . . . . . . . . . . . . . . . . . . . . . . . . ...

    Android.Design.Patterns.and.Best.Practices.epub

    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. ...

    Natural Language Processing in Action

    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. ...

    Packt.Csharp.Programming.Cookbook.2016

    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. ...

    C# Programming Cookbook [EPUB+MOBI+PDF]

    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. ...

    Mastering.Angular.2.Components.1785884646.epub

    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 ...

    More.Math.Into.LaTeX.3319237950

    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.pdf

    Composing.Software.2019.2

    Clojure.High.Performance.JVM.Programming.epub

    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.mobi

    Composing.Software.2019.2

    Python Cookbook, 2nd Edition

    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...

    C++ Standard Library: A Tutorial and Reference

    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...

    LiteBlog(MVC)博客源码2012711

    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....

    spring-framework-reference4.1.4

    Composing XML-based configuration metadata .......................................... 25 Using the container .......................................................................................... ...

    Composing Software.zip

    关于javascript的函数式编程设计,包括函数式编程的摘要,以及柯里化,lens,monads等内容

    spring-framework-reference-4.1.2

    Composing XML-based configuration metadata .......................................... 25 Using the container .......................................................................................... ...

Global site tag (gtag.js) - Google Analytics