Asynchronous Programming with C++
eBook Details:
- Paperback: 424 pages
- Publisher: WOW! eBook (November 29, 2024)
- Language: English
- ISBN-10: 1835884253
- ISBN-13: 978-1835884249
eBook Description:
Asynchronous Programming with C++: Build blazing-fast software with multithreading and asynchronous programming for ultimate efficiency. 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.
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 Asynchronous Programming with C++ 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.
- 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
By the end of this Asynchronous Programming with C++ book, you’ll be able to implement high-performance software using modern asynchronous C++ techniques.