Your software needs to leverage multiple cores, handle thousands of users and terabytes of data, and continue working in the face of both hardware and software failure. Concurrency and parallelism are the keys, and Seven Concurrency Models in Seven Weeks equips you for this new world. See how emerging technologies such as actors and functional programming address issues with traditional threads and locks development. Learn how to exploit the parallelism in your computer’s GPU and leverage clusters of machines with MapReduce and Stream Processing. And do it all with the confidence that comes from using tools that help you write crystal clear, high-quality code.
This title is currently available in Beta. Buy the eBook now, and you'll be able to download successive releases of the eBook as the authors add material and correct mistakes. You'll get the final eBook when the book is finished.
If you buy the combo pack (Beta eBook + finished Paper Book) now, you'll get the Beta eBook immediately. You'll get the finished paper book when it's released (we're currently estimating (no scheduled date), but these dates can change).
About this Book
- 300 pages (est)
- Release: B3.0 (2013-11-07)
- ISBN: 978-1-93778-565-9
This book will show you how to exploit different parallel architectures to improve your code’s performance, scalability, and resilience.
Learn about the perils of traditional threads and locks programming and how to overcome them through careful design and by working with the standard library. See how actors enable software running on geographically distributed computers to collaborate, handle failure, and create systems that stay up 24/7/365. Understand why shared mutable state is the enemy of robust concurrent code, and see how functional programming together with technologies such as Software Transactional Memory (STM) and automatic parallelism help you tame it.
You’ll learn about the untapped potential within every GPU and how GPGPU software can unleash it. You’ll see how to use MapReduce to harness massive clusters to solve previously intractible problems, and how, in concert with Stream Processing, big data can be tamed.
With an understanding of the strengths and weaknesses of each of the different models and hardware architectures, you’ll be empowered to tackle any problem with confidence.
What You Need
The example code can be compiled and executed on *nix, OS X, or Windows. Instructions on how to download the supporting build systems are given in each chapter.
Contents and Extracts
This book is currently in beta, so the contents and extracts will change as the book is developed.
- Concurrent or Parallel?
- Parallel Architecture
- Concurrency: Beyond Multiple Cores
- The Seven Models
- Threads and Locks
- The 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
- Functional Programming excerpt
- If It Hurts, Stop Doing It
- Day 1: Programming Without Mutable State
- Day 2: Reducers
- Day 3: Dataflow Programming with Futures and Promises
- 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
- Actors excerpt
- More Object-Oriented than Objects
- Day 1: Messages and Mailboxes
- Day 2: Error Handling and Resilience
- Day 3: Distribution
- Data Parallelism
- Lambda Architecture
- Tuple Spaces
- Wrapping Up