Seven Concurrency Models in Seven Weeks: When Threads Unravel (The Pragmatic Programmers)

Seven Concurrency Models in Seven Weeks: When Threads Unravel (The Pragmatic Programmers)

When Threads Unravel

by Paul Butcher

296 pages· 2014· ISBN 9781937785659
About

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 book will show you how to exploit different parallel architectures to improve your code's performance, scalability, and resilience. You'll learn about seven concurrency models: threads and locks, functional programming, separating identity and state, actors, sequential processes, data parallelism, and the lambda architecture.

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

Discuss Seven Concurrency Models in Seven Weeks: When Threads Unravel (The Pragmatic Programmers) with other readers

Join or start a book club for Seven Concurrency Models in Seven Weeks: When Threads Unravel (The Pragmatic Programmers) on Readfeed. Live chat, shared reading progress, and AI discussion questions — free to get started.

Frequently asked questions

How do I join a book club for Seven Concurrency Models in Seven Weeks: When Threads Unravel (The Pragmatic Programmers)?

Sign up free on Readfeed, then browse public clubs or start your own club with Seven Concurrency Models in Seven Weeks: When Threads Unravel (The Pragmatic Programmers) as the current read. Invite friends with a share link and discuss together with live chat and AI discussion questions.

Can I discuss Seven Concurrency Models in Seven Weeks: When Threads Unravel (The Pragmatic Programmers) with other readers online?

Yes. Readfeed book clubs let you chat live, share progress, and join discussions about Seven Concurrency Models in Seven Weeks: When Threads Unravel (The Pragmatic Programmers) with readers worldwide — whether your club is virtual, in-person, or hybrid.

Is Readfeed free?

Yes. Creating an account and joining book clubs is free. Sign up to find readers who love the same books and start discussing today.