官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 德昌县| 黔西县| 广灵县| 沧州市| 凤庆县| 内乡县| 临洮县| 桂东县| 准格尔旗| 融水| 天峨县| 郎溪县| 昆明市| 普陀区| 宝丰县| 祥云县| 台北市| 莒南县| 宣威市| 隆德县| 七台河市| 民乐县| 兴化市| 九江市| 阆中市| 昌吉市| 甘洛县| 察隅县| 岳阳县| 青川县| 广安市| 宜黄县| 青浦区| 耿马| 乌恰县| 南充市| 班玛县| 长寿区| 沅陵县| 搜索| 英吉沙县|