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!
翻译:这本书的目的是帮助您在不危及你的理智的情况下编程共享和模拟平行系统。 尽管如此, 您应该将这本书中的信息视为建设的基础, 而不是一个完整的教堂。 如果您选择接受, 您的使命是帮助在同步编程进展的令人兴奋的领域取得进一步进展, 这将会及时使这本书过时。 21世纪的平行编程不再仅仅侧重于科学、 研究和大挑战项目。 这对一切都有好处, 因为它意味着平行编程正在成为一个工程学科。 因此, 作为工程学科, 这本书应该审查具体的平行编程任务, 并描述如何接近这些任务。 在一些令人惊讶的常见案例中, 这些任务可以自动化。 这本书的撰写希望是展示成功的平行编程项目背后的工程学科, 能够让新一代的平行黑客从你需要到缓慢而艰难地重整旧轮子, 让他们把精力和创造力放在新的领域上。 然而, 你从这本书中获得的精力和创造力, 将永远比这更难的东西, 成为真实的, 成为真实的。 但是, 从你写成的书中, 最有希望的是, 成为最有帮助的。 但是, 它会成为最有帮助的。