Description
Looking to take full advantage of multi-core processors with concurrent programming ? As one of the few resources to focus on implementing algorithms in the shared-memory model of multi-core processors, rather than just on theoretical models or distributed-memory architectures, The Art of Concurrency provides the knowledge and hands-on experience you need. You'll get detailed explanations and usable samples to help you transform algorithms from serial to parallel code, along with advice and analysis to steer you clear of mistakes.
Table of Contents
-
Chapter 1 Want to Go Faster? Raise Your Hands if You Want to Go Faster!
-
Some Questions You May Have
-
Four Steps of a Threading Methodology
-
Background of Parallel Algorithms
-
Shared-Memory Programming Versus Distributed-Memory Programming
-
This Book’s Approach to Concurrent Programming
-
-
Chapter 2 Concurrent or Not Concurrent?
-
Design Models for Concurrent Algorithms
-
What’s Not Parallel
-
-
Chapter 3 Proving Correctness and Measuring Performance
-
Verification of Parallel Algorithms
-
Example: The Critical Section Problem
-
Performance Metrics (How Am I Doing?)
-
Review of the Evolution for Supporting Parallelism in Hardware
-
-
Chapter 4 Eight Simple Rules for Designing Multithreaded Applications
-
Rule 1: Identify Truly Independent Computations
-
Rule 2: Implement Concurrency at the Highest Level Possible
-
Rule 3: Plan Early for Scalability to Take Advantage of Increasing Numbers of Cores
-
Rule 4: Make Use of Thread-Safe Libraries Wherever Possible
-
Rule 5: Use the Right Threading Model
-
Rule 6: Never Assume a Particular Order of Execution
-
Rule 7: Use Thread-Local Storage Whenever Possible or Associate Locks to Specific Data
-
Rule 8: Dare to Change the Algorithm for a Better Chance of Concurrency
-
Summary
-
-
Chapter 5 Threading Libraries
-
Implicit Threading
-
Explicit Threading
-
What Else Is Out There?
-
Domain-Specific Libraries
-
-
Chapter 6 Parallel Sum and Prefix Scan
-
Parallel Sum
-
Prefix Scan
-
Selection
-
A Final Thought
-
-
Chapter 7 MapReduce
-
Map As a Concurrent Operation
-
Reduce As a Concurrent Operation
-
Applying MapReduce
-
MapReduce As Generic Concurrency
-
-
Chapter 8 Sorting
-
Bubblesort
-
Odd-Even Transposition Sort
-
Shellsort
-
Quicksort
-
Radix Sort
-
-
Chapter 9 Searching
-
Unsorted Sequence
-
Binary Search
-
-
Chapter 10 Graph Algorithms
-
Depth-First Search
-
All-Pairs Shortest Path
-
Minimum Spanning Tree
-
-
Chapter 11 Threading Tools
-
Debuggers
-
Performance Tools
-
Anything Else Out There?
-
Go Forth and Conquer
-
-
Glossary
-
Appendix Photo Credits
-
Colophon
Product Details
- Title:
- The Art of Concurrency
- By:
- Clay Breshears
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- May 2009
- Ebook Release:
- May 2009
- Pages:
- 304
- Print ISBN:
- 978-0-596-52153-0
- | ISBN 10:
- 0-596-52153-7
- Ebook ISBN:
- 978-0-596-80351-3
- | ISBN 10:
- 0-596-80351-6
Customer Reviews
Colophon
The cover image is an aerial view of wheat-harvesting combines from Getty Images. The cover fonts are Akzidenz Grotesk and Orator. The text font is Adobe's Meridien; the heading font is ITC Bailey.




