Book description
Multi-core chips from Intel and AMD offer a dramatic boost in speed and responsiveness, and plenty of opportunities for multiprocessing on ordinary desktop computers. But they also present a challenge: More than ever, multithreading is a requirement for good performance. This guide explains how to maximize the benefits of these processors through a portable C++ library that works on Windows, Linux, Macintosh, and Unix systems. With it, you'll learn how to use Intel Threading Building Blocks (TBB) effectively for parallel programming -- without having to be a threading expert.
Written by James Reinders, Chief Evangelist of Intel Software Products, and based on the experience of Intel's developers and customers, this book explains the key tasks in multithreading and how to accomplish them with TBB in a portable and robust manner. With plenty of examples and full reference material, the book lays out common patterns of uses, reveals the gotchas in TBB, and gives important guidelines for choosing among alternatives in order to get the best performance.
You'll learn how Intel Threading Building Blocks:
- Enables you to specify tasks instead of threads for better portability, easier programming, more understandable source code, and better performance and scalability in general
- Focuses on the goal of parallelizing computationally intensive work to deliver high-level solutions
- Is compatible with other threading packages, and doesn't force you to pick one package for your entire program
- Emphasizes scalable, data-parallel programming, which allows program performance to increase as you add processors
- Relies on generic programming, which enables you to write the best possible algorithms with the fewest constraints
Publisher resources
Table of contents
- Intel Threading Building Blocks
- Foreword
- Note from the Lead Developer of Intel Threading Building Blocks
- Preface
- 1. Why Threading Building Blocks?
- 2. Thinking Parallel
- 3. Basic Algorithms
- 4. Advanced Algorithms
- 5. Containers
- 6. Scalable Memory Allocation
- 7. Mutual Exclusion
- 8. Timing
-
9. Task Scheduler
- When Task-Based Programming Is Inappropriate
- Much Better Than Raw Native Threads
- Initializing the Library Is Your Job
- Example Program for Fibonacci Numbers
- Task Scheduling Overview
- How Task Scheduling Works
- Recommended Task Recurrence Patterns
- Making Best Use of the Scheduler
- Task Scheduler Interfaces
- Task Scheduler Summary
- 10. Keys to Success
-
11. Examples
- The Aha! Factor
- A Few Other Key Points
- parallel_for Examples
- The Game of Life
- Parallel_reduce Examples
- CountStrings: Using concurrent_hash_map
- Quicksort: Visualizing Task Stealing
- A Better Matrix Multiply (Strassen)
- Advanced Task Programming
- Packet Processing Pipeline
- Memory Allocation
- Game Threading Example
- Physics Interaction and Update Code
- Open Dynamics Engine
- 12. History and Related Projects
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Intel Threading Building Blocks
- Author(s):
- Release date: July 2007
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596514808
You might also like
book
Windows® Phone 8 Unleashed
Windows® Phone 8 Unleashed is the definitive guide to Microsoft’s new Windows Phone 8 platform for …
book
Autodesk 3ds Max 2016 Essentials
Start animating right away with this tutorial-based guide to Autodesk 3ds Max 2016 Autodesk 3ds Max …
book
3ds Max MAXScript Essentials, 2nd Edition
Write your own MAXScript functions and utilities to automate repetitive tasks and create custom tools and …
article
Use Github Copilot for Prompt Engineering
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …