Book Description
The purpose of this book is to help you program shared-memory parallel systems without risking your sanity. Nevertheless, you should think of the information in this book as a foundation on which to build, rather than as a completed cathedral. Your mission, if you choose to accept, is to help make further progress in the exciting field of parallel programming-progress that will in time render this book obsolete.
Parallel programming in the 21st century is no longer focused solely on science, research, and grand-challenge projects. And this is all to the good, because it means that parallel programming is becoming an engineering discipline. Therefore, as befits an engineering discipline, this book examines specific parallel-programming tasks and describes how to approach them. In some surprisingly common cases, these tasks can be automated.
This book is written in the hope that presenting the engineering discipline underlying successful parallel-programming projects will free a new generation of parallel hackers from the need to slowly and painstakingly reinvent old wheels, enabling them to instead focus their energy and creativity on new frontiers. However, what you get from this book will be determined by what you put into it. It is hoped that simply reading this book will be helpful, and that working the Quick Quizzes will be even more helpful. However, the best results come from applying the techniques taught in this book to real-life problems. As always, practice makes perfect.
But no matter how you approach it, we sincerely hope that parallel programming brings you at least as much fun, excitement, and challenge that it has brought to us!
This open book is licensed under a Creative Commons License (CC BY-SA). You can download Is Parallel Programming Hard, And, If So, What Can You Do About It? ebook for free in PDF format (11.7 MB).
Table of Contents
Chapter 1
How To Use This Book
Chapter 2
Introduction
Chapter 3
Hardware and its Habits
Chapter 4
Tools of the Trade
Chapter 5
Counting
Chapter 6
Partitioning and Synchronization Design
Chapter 7
Locking
Chapter 8
Data Ownership
Chapter 9
Deferred Processing
Chapter 10
Data Structures
Chapter 11
Validation
Chapter 12
Formal Verification
Chapter 13
Putting It All Together
Chapter 14
Advanced Synchronization
Chapter 15
Advanced Synchronization: Memory Ordering
Chapter 16
Ease of Use
Chapter 17
Conflicting Visions of the Future
Chapter 18
Looking Forward and Back
Appendix A
Important Questions
Appendix B
"Toy" RCU Implementations
Appendix C
Why Memory Barriers?
Appendix D
Style Guide
Appendix E
Answers to Quick Quizzes
Book Details
Title
Is Parallel Programming Hard, And, If So, What Can You Do About It?
Subject
Computer Science
Publisher
Self-publishing
Published
2021
Pages
601
Edition
2
Language
English
PDF Size
11.7 MB
License