并行编程难吗?如果难的话,你能做些什么?(版本v2023.06.11a)
Is Parallel Programming Hard, And, If So, What Can You Do About It? (Release v2023.06.11a)
AI总结:
本书作为并行编程的工程学科基础指南,讲解具体任务处理方法与实践路径,旨在帮助读者高效掌握并行编程技术,聚焦新前沿创新。
摘要:
本书的目的是帮助你在编写共享内存并行系统程序时不必耗费过多心神。不过,你应当将本书中的内容视为可供构建的基础,而非一座完工的大教堂。如果你愿意接受,你的使命就是推动并行编程这一令人振奋的领域取得进一步进展——这些进展终有一天会让本书过时。\n 21世纪的并行编程不再仅仅聚焦于科学、研究和重大挑战项目。这是一件十足的好事,因为它意味着并行编程正成为一门工程学科。因此,作为一门工程学科应有的样子,本书探讨了具体的并行编程任务,并描述了如何处理这些任务。在一些出人意料的常见场景中,这些任务可以实现自动化。\n 撰写本书的初衷是,通过呈现成功并行编程项目背后的工程准则,让新一代并行编程爱好者不必缓慢而费力地重复造轮子,从而能够将精力和创造力集中在新的前沿领域。不过,你从本书中收获多少,取决于你付出多少。我们希望仅阅读本书就能有所帮助,而完成“快速测验”会更有帮助。但最佳效果来自于将本书教授的技术应用到实际问题中。一如既往,熟能生巧。\n 但无论你以何种方式学习,我们都衷心希望并行编程能给你带来至少和我们感受到的一样多的乐趣、兴奋与挑战!
英文摘要:
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!
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。