c++的并发模型

所需积分/C币:9 2018-12-15 17:50:12 2.38MB PDF
29
收藏 收藏
举报

这个是关于c++的几种并发模型,主要在于并发的概念和思想。
Seven Concurrency Models in Seven Weeks When Threads unravel by paul butcher Copy right @2014 The Pragm atic Programmers, LLC. This Dookis licensed to the individual who purc hased it. We don t copy-protect it be cause that would im it your ability to use it for your own put poses. Please dant break this trusl-don' t a llo w others to use y our copy of the book Thank Dave Andy Many of the designations used hy manu fac turers and sellers to distinguish their products are c aimed as trade marks Where those designa tions appear in this hook and The Pragm atic Programmers, LLC was aware of a tradem ark cla im, the designa tions have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragm atic Programmer. Pragmatic Program ming, Pragmatic Bookhe lf and the linking g device are tradem arks of The Pragm atie Programmers, LLC Every precaution was taken in the prepara tion cf this book However, the publisher assumes no responsibility for errors or om issicrs, or for damages that may result from the use of information(including program listings) contained herein Our Pragmatic courses, workshops, and o: her produc ts can help y ou and your team create better software and have more fun. For more inform ation, as well as the latest Pragm atic titles, se vISIt LS &l The team that produced this book includes: Bruce A. Tate (series editor). Jacquely n Carter(editor), Potomac Indexing, LLC (indexer), Molly Mc Beath(copy editor), David J Kelly (ty resetter), lanet Furlow (producer), E.lie Callahan(support Tor inter national rights, please contact rights@:og.ccm No part of this publication may be reprodu eed, s ored in a retrieval sy stem, or transm itted, in any form, or by any means, e lectronic, mechanical, photocopy ing, record rg, or otherwise, without the prior cn the publisher Printed in the United States of Ameriea ISRN-13:9781-937785-65-9 Book version: P1.0-July 2014 Table of contents Foreword Acknowledgments Preface About this book What This book is not Example Code Online resources 1. Introduction Concurrent or parallel? Parallel architecture Concurrency: Beyond Multiple cores The seven models Threads and Locks he Simplest Thing That Could possibly Work Day 1: Mutual Exclusion and Memory models Day 2: Beyond Intrinsic Locks Day 3: On the Shoulders of Giants ra 3. Functional Programming If It Hurts, Stop Doing It Day 1: Programming Without Mutable State Day 2: Functional P araneism Day 3: Functional Concurrency Wrap-Up The Clojure way- Separating Identity from State The Best of Both Worlds Day 1: Atoms and Persistent Data Structures Day 2: Agents and Software Transactional Memory Day 3: In Depth rap ctors More Obiect-Oriented than Objects Day 1: Messages and mailboxes Day 2: Error Handling and resilience Day 3: Distribution Wrap-Up 6. Communicating Sequential Processes Communication Is everything Day 1: Channels and Go blocks Day 2: Multiple channels and IQ Day 3: Client-Side CsP Wrap-Up 7. Data Parallelism he Supercomputer Hidden in Your Laptop Day 1: GPGPU Programming Day 2: Mul tiple Dimensions and Work-Groups Day 3: OpenCL and Opengl Keeping It on the GPU Wrap-Up 8. The Lambda architecture Parallelism Enables Big Data Day 1: MapReduce Day 2: The Batch Layer Day 3: The Speed Layer Wrap-UI 9. Wrapping Up Where are We going? Roads Not Taken over to r oul Bibliography Early Praise for Seven Concurrency Models in seven weeks For decades, professional programmers have dealt with concurrency and parallelism using threads and locks. But this model is one ofmany, as Seven Concurrency Models in Seven Weeks vividly demonstrates. If you want to get ahead in a world w here mainstream languages are scrambling to support actors, CSP, data parallelism, functional programming, and Clojure's unified succession model. read this book →> Stuart Halloway Cofounder, Cognitect As our machines get more and more cores understanding concurrency is more important than ever before. You'll learn why functional programming matters for concurrency, how actors can be leveraged for writing distributed software, and how to explore parallel processing with GPUs and Big data. This book will expand your toolbox for writing software so you're prepared for the years to come Jose alim Cofounder. Plataformatec An eye-opening survey of different concurrency/parallelism techniques, Seven Concurrency Models strikes an excellent balance between providing explanations and encouraging experimentation →) Frederick Cheung CTO. Dressipi The world is changing, and every working programmer must learn to think about concurrent programming. Now when they say, How shall I do that? I will have a book that I can suggest they read. I learned a lot and am happy to recommend it → Andrew haley Java lead engineer red hat As AmdahI's law starts to eclipse Moore's law, a transition from object oriented programming to concurrency-oriented programming is taking place. As a result, the timing of this book could not be more appropriate. Paul does a necessary ammunition to decide whic h one of them best suits your needs. A o fantastic job describing the most important concurrency models, giving you th must-read if you are developing software in the multicore era → Francesco cesarini Founder and technical director, Erlang Solutions With this book, paul has delivered an excellent introduction to the thorny topics of concurrency and parallelism, covering the different approaches in a clear and engaging way → Sean ellis GPu architect ARM A simple approach for a complex subject. I would love to have a university course about this with seven Concurrency models in Seven Weeks as a guide → Carlos sessa Android developer groupon Paul butcher takes an issue that strikes fear into many developers and gives a clear exposition of practical programming paradigms they can use to handle and exploit concurrency in the software they create - Paidi creed Software engineer, SwiftKey Having worked with Paul on a number of occasions, I can recommend him as a genuine authority on programming-language design and structure. This book is a lucid exposition of an often-misunderstood but vital topic in modern software engineering. → Ben medlock Cofounder and Cto, SwiftKey

...展开详情
试读 127P c++的并发模型
立即下载
限时抽奖 低至0.43元/次
身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
关注 私信
上传资源赚钱or赚积分
最新推荐
c++的并发模型 9积分/C币 立即下载
1/127
c++的并发模型第1页
c++的并发模型第2页
c++的并发模型第3页
c++的并发模型第4页
c++的并发模型第5页
c++的并发模型第6页
c++的并发模型第7页
c++的并发模型第8页
c++的并发模型第9页
c++的并发模型第10页
c++的并发模型第11页
c++的并发模型第12页
c++的并发模型第13页
c++的并发模型第14页
c++的并发模型第15页
c++的并发模型第16页
c++的并发模型第17页
c++的并发模型第18页
c++的并发模型第19页
c++的并发模型第20页

试读结束, 可继续阅读

9积分/C币 立即下载