Asynchronous Programming with C++: Build blazing-fast software with multithreading and asynchronous programming for ultimate efficiency (Paperback)
暫譯: 使用 C++ 進行非同步程式設計:運用多執行緒與非同步程式設計打造極速軟體,實現極致效率 (平裝版)
Reguera-Salgado, Javier, Rufes, Juan Antonio
- 出版商: Packt Publishing
- 出版日期: 2024-11-29
- 售價: $1,670
- 貴賓價: 9.5 折 $1,586
- 語言: 英文
- 頁數: 424
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1835884245
- ISBN-13: 9781835884249
-
相關分類:
C++ 程式語言
海外代購書籍(需單獨結帳)
買這商品的人也買了...
-
Fundamentals of Logic Design, Enhanced Edition, 7/e (Hardcover)$1,480$1,450 -
Thomas' Calculus in SI Units, 15/e (IE-Paperback)$1,780$1,750
相關主題
商品描述
Design and develop high-performance software solutions by using concurrent and asynchronous techniques provided by the most modern features in C++20 and C++23
Key Features:
- Learn how to use modern C++ features, including futures, promises, async, and coroutines to build asynchronous solutions
- Develop cross-platform network and low-level I/O projects with Boost.Asio
- Master optimization techniques by understanding how software adapts to machine hardware
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description:
As hardware advancements continue to accelerate, bringing greater memory capacity and more CPU cores, software must evolve to adapt to efficiently use all available resources and reduce idle CPU cycles. In this book, two seasoned software engineers with about five decades of combined experience will teach you how to implement concurrent and asynchronous solutions in C++.
You'll gain a comprehensive understanding of parallel programming paradigms-covering concurrent, asynchronous, parallel, multithreading, reactive, and event-driven programming, as well as dataflows-and see how threads, processes, and services are related. Moving into the heart of concurrency, the authors will guide you in creating and managing threads and exploring C++'s thread-safety mechanisms, including mutual exclusion, atomic operations, semaphores, condition variables, latches, and barriers. With this solid foundation, you'll focus on pure asynchronous programming, discovering futures, promises, the async function, and coroutines. The book takes you step by step through using Boost.Asio and Boost.Cobalt to develop network and low-level I/O solutions, proven performance and optimization techniques, and testing and debugging asynchronous software.
By the end of this C++ book, you'll be able to implement high-performance software using modern asynchronous C++ techniques.
What You Will Learn:
- Explore the different parallel paradigms and know when to apply them
- Acquire deep knowledge of thread management and safety mechanisms
- Understand asynchronous programming in C++, including coroutines
- Leverage network asynchronous programming by using Boost.Asio and Boost.Cobalt
- Add proven performance and optimization techniques to your toolbox
- Find out how to test and debug asynchronous software
Who this book is for:
This book is for developers who have some experience using C++, regardless of their professional field. If you want to improve your C++ skills and learn how to develop high-performance software using the latest modern C++ features, this book is for you.
Table of Contents
- Parallel Programming Paradigms
- Processes, Threads, and Services
- How to Create and Manage Threads in C++
- Thread Synchronization with Locks
- Atomic Operations
- Promises and Futures
- The Async Function
- Asynchronous Programming Using Coroutines
- Asynchronous Programming Using Boost.Asio
- Coroutines with Boost.Cobalt
- Logging and Debugging Asynchronous Software
- Sanitizing and Testing Asynchronous Software
- Improving Asynchronous Software Performance
使用 C++20 與 C++23 最現代的功能所提供的並行與非同步技術,設計並開發高效能軟體解決方案
主要特色:
- 學習使用 futures、promises、async 與 coroutines 等現代 C++ 功能,建構非同步解決方案
- 使用 Boost.Asio 開發跨平台網路與低階 I/O 專案
- 了解軟體如何適應機器硬體,掌握最佳化技術
- 購買紙本書或 Kindle 電子書,即可獲得免費 PDF 電子書
書籍介紹:
隨著硬體持續快速發展,記憶體容量不斷增加,CPU 核心數也越來越多,軟體必須持續演進,才能有效運用所有可用資源並減少 CPU 閒置週期。本書將由兩位資深軟體工程師共同授課,兩人合計擁有約 50 年的實務經驗,帶領你學習如何在 C++ 中實作並行與非同步解決方案。
你將全面了解各種平行程式設計典範,包括並行、非同步、平行、多執行緒、反應式(reactive)、事件驅動程式設計,以及資料流(dataflow),並了解執行緒、程序與服務之間的關係。進入並行處理的核心主題後,作者將引導你建立與管理執行緒,並探索 C++ 的執行緒安全機制,包括互斥、原子操作、semaphores、condition variables、latches 與 barriers。在這些紮實基礎之上,你將專注於純非同步程式設計,深入了解 futures、promises、async 函式與 coroutines。本書也會逐步帶領你使用 Boost.Asio 與 Boost.Cobalt 開發網路及低階 I/O 解決方案,學習經實證的效能與最佳化技術,以及如何測試與除錯非同步軟體。
完成本書後,你將能運用現代非同步 C++ 技術,實作高效能軟體。
你將學到:
- 探索不同的平行程式設計典範,並了解何時應採用各種典範
- 深入掌握執行緒管理與安全機制
- 了解 C++ 中的非同步程式設計,包括 coroutines
- 使用 Boost.Asio 與 Boost.Cobalt,善用網路非同步程式設計
- 將經實證的效能與最佳化技術納入你的工具箱
- 了解如何測試與除錯非同步軟體
適合讀者:
本書適合具備一些 C++ 使用經驗的開發人員,不限專業領域。如果你想提升 C++ 技能,並學習如何運用最新的現代 C++ 功能開發高效能軟體,本書非常適合你。
目錄
- 平行程式設計典範
- 程序、執行緒與服務
- 如何在 C++ 中建立與管理執行緒
- 使用鎖進行執行緒同步
- 原子操作
- Promises 與 Futures
- Async 函式
- 使用 Coroutines 進行非同步程式設計
- 使用 Boost.Asio 進行非同步程式設計
- 使用 Boost.Cobalt 的 Coroutines
- 非同步軟體的記錄與除錯
- 非同步軟體的 Sanitizing 與測試
- 提升非同步軟體效能