- Concurrent Patterns and Best Practices
- Atul S. Khot
- 331字
- 2021-07-16 17:32:25
What this book covers
Chapter 1, Concurrency - An Introduction, provides an introduction to concurrent programming. As you will see, concurrency is a world in itself. You will look at Unix processes and the pipes and filters for concurrency pattern. The chapter covers an overview of concurrent programming. You probably know some of this material already.
Chapter 2, A Taste of Some Concurrency Patterns, covers some essential basic concepts. The essence of the Java Memory Model is introduced. You will also look at race conditions and problems arising out of the shared state model. You will get a taste of the first concurrency pattern—hand-over-hand locking.
Chapter 3, More Threading Patterns, covers explicitly synchronizing the mutable state and the monitor pattern. You will see how this approach is fraught with problems. We wrap up with a detailed look at the Active Object design pattern.
Chapter 4, Thread Pools, covers how threads communicate via the producer/consumer pattern. The concept of thread communication is introduced. Then, the Master/Slave design pattern is explained. The chapter wraps up with another look at the map-reduce pattern as a special case of the fork-join pattern.
Chapter 5, Increasing the Concurrency, talks about the building blocks. Things such as blocking queues, bounded queues, latches, FutureTask, semaphores, and barrier are discussed. We talk about being live and safety. Finally, we describe immutability and how immutable data structures are inherently thread safe.
Chapter 6, Functional Concurrency Patterns, introduces futures and talks about its monadic nature. We cover the transformation and monad patterns and illustrate how futures compose. We also look at promises.
Chapter 7, Actors Patterns, introduces the Actor paradigm. We recall the Active Object again and then explain the actor paradigm—especially the no explicit locks nature of things. We discuss patterns such as ask versus tell, the become pattern (and stressing immutability), pipelining, and half sync or half async. We discuss these patterns and illustrate them via example code.
- Modern Web Testing with TestCafe
- WordPress Mobile Web Development:Beginner's Guide
- Windows Phone 7.5 Data Cookbook
- 新手學電腦從入門到精通(Windows 10+Office 2016版)
- 網絡操作系統管理與應用(第三版)
- Learning Bootstrap
- OpenStack系統架構設計實戰
- 計算機系統:基于x86+Linux平臺
- Linux內核API完全參考手冊(第2版)
- Hadoop Real-World Solutions Cookbook
- 鴻蒙HarmonyOS應用開發從入門到精通
- OpenSolaris紅寶書
- 微軟360度
- Administering ArcGIS for Server
- 物聯網操作系統AliOS Things探索與實踐