Movatterモバイル変換


[0]ホーム

URL:


Packt
Search iconClose icon
Search icon CANCEL
Subscription
0
Cart icon
Your Cart(0 item)
Close icon
You have no products in your basket yet
Save more on your purchases!discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Profile icon
Account
Close icon

Change country

Modal Close icon
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timerSALE ENDS IN
0Days
:
00Hours
:
00Minutes
:
00Seconds
Home> Programming> Programming Language> Asynchronous Programming with C++
Asynchronous Programming with C++
Asynchronous Programming with C++

Asynchronous Programming with C++: Build blazing-fast software with multithreading and asynchronous programming for ultimate efficiency

Arrow left icon
Profile Icon Javier Reguera-SalgadoProfile Icon Juan Antonio Rufes
Arrow right icon
$29.99$33.99
Full star iconFull star iconFull star iconFull star iconFull star icon5(1 Ratings)
eBookNov 2024424 pages1st Edition
eBook
$29.99 $33.99
Paperback
$41.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Javier Reguera-SalgadoProfile Icon Juan Antonio Rufes
Arrow right icon
$29.99$33.99
Full star iconFull star iconFull star iconFull star iconFull star icon5(1 Ratings)
eBookNov 2024424 pages1st Edition
eBook
$29.99 $33.99
Paperback
$41.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$29.99 $33.99
Paperback
$41.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature iconInstant access to your Digital eBook purchase
Product feature icon Download this book inEPUB andPDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature iconDRM FREE - Read whenever, wherever and however you want
Product feature iconAI Assistant (beta) to help accelerate your learning
OR

Contact Details

Modal Close icon
Payment Processing...
tickCompleted

Billing Address

Table of content iconView table of contentsPreview book icon Preview Book

Asynchronous Programming with C++

Part 1:Foundations of Parallel Programming and Process Management

In this part, we delve into the fundamental concepts and paradigms that form the foundation of parallel programming and process management. You will gain a deep understanding of the architectures used to build parallel systems and explore the various programming paradigms available for developing efficient parallel, multithreading, and asynchronous software. Additionally, we will cover critical concepts related to processes, threads, and services, highlighting their importance in operating systems, especially in the context of process life cycle, performance, andresource management.

This part has thefollowing chapters:

Left arrow icon

Page1 of 1

Right arrow icon
Download code iconDownload Code

Key benefits

  • 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

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.

Who is this book 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.

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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date :Nov 29, 2024
Length:424 pages
Edition :1st
Language :English
ISBN-13 :9781835884256
Category :
Languages :

What do you get with eBook?

Product feature iconInstant access to your Digital eBook purchase
Product feature icon Download this book inEPUB andPDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature iconDRM FREE - Read whenever, wherever and however you want
Product feature iconAI Assistant (beta) to help accelerate your learning
OR

Contact Details

Modal Close icon
Payment Processing...
tickCompleted

Billing Address

Product Details

Publication date :Nov 29, 2024
Length:424 pages
Edition :1st
Language :English
ISBN-13 :9781835884256
Category :
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99billed monthly
Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
Feature tick iconConstantly refreshed with 50+ new titles a month
Feature tick iconExclusive Early access to books as they're written
Feature tick iconSolve problems while you work with advanced search and reference features
Feature tick iconOffline reading on the mobile app
Feature tick iconSimple pricing, no contract
$199.99billed annually
Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
Feature tick iconConstantly refreshed with 50+ new titles a month
Feature tick iconExclusive Early access to books as they're written
Feature tick iconSolve problems while you work with advanced search and reference features
Feature tick iconOffline reading on the mobile app
Feature tick iconChoose a DRM-free eBook or Video every month to keep
Feature tick iconPLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick iconExclusive print discounts
$279.99billed in 18 months
Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
Feature tick iconConstantly refreshed with 50+ new titles a month
Feature tick iconExclusive Early access to books as they're written
Feature tick iconSolve problems while you work with advanced search and reference features
Feature tick iconOffline reading on the mobile app
Feature tick iconChoose a DRM-free eBook or Video every month to keep
Feature tick iconPLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick iconExclusive print discounts

Table of Contents

20 Chapters
Part 1:Foundations of Parallel Programming and Process ManagementChevron down iconChevron up icon
Part 1:Foundations of Parallel Programming and Process Management
Chapter 1: Parallel Programming ParadigmsChevron down iconChevron up icon
Chapter 1: Parallel Programming Paradigms
Technical requirements
Getting to know classifications, techniques, and models
Understanding various parallel programming paradigms
Exploring the metrics to assess parallelism
Summary
Further reading
Chapter 2: Processes, Threads, and ServicesChevron down iconChevron up icon
Chapter 2: Processes, Threads, and Services
Processes in Linux
Services and daemons in Linux
Threads
Synchronization primitives
Common problems when using multiple threads
Strategies for effective thread management
Summary
Further reading
Part 2: Advanced Thread Management and Synchronization TechniquesChevron down iconChevron up icon
Part 2: Advanced Thread Management and Synchronization Techniques
Chapter 3: How to Create and Manage Threads in C++Chevron down iconChevron up icon
Chapter 3: How to Create and Manage Threads in C++
Technical requirements
The thread library – an introduction
Thread operations
Thread-local storage
Implementing a timer
Summary
Further reading
Chapter 4: Thread Synchronization with LocksChevron down iconChevron up icon
Chapter 4: Thread Synchronization with Locks
Technical requirements
Understanding race conditions
Why do we need mutual exclusion?
Generic lock management
Condition variables
Implementing a multithreaded safe queue
Semaphores
Barriers and latches
Performing a task only once
Summary
Further reading
Chapter 5: Atomic OperationsChevron down iconChevron up icon
Chapter 5: Atomic Operations
Technical requirements
Introduction to atomic operations
Non-blocking data structures
The C++ memory model
C++ Standard Library atomic types and operations
SPSC lock-free queue
Summary
Further reading
Part 3: Asynchronous Programming with Promises, Futures, and CoroutinesChevron down iconChevron up icon
Part 3: Asynchronous Programming with Promises, Futures, and Coroutines
Chapter 6: Promises and FuturesChevron down iconChevron up icon
Chapter 6: Promises and Futures
Technical requirements
Exploring promises and futures
The benefits and drawbacks of promises and futures
Examples of real-life scenarios and solutions
Summary
Further reading
Chapter 7: The Async FunctionChevron down iconChevron up icon
Chapter 7: The Async Function
Technical requirements
What is std::async?
Launch policies
Handling exceptions
Async futures and performance
Limiting the number of threads
When not to use std::async
Practical examples
Summary
Further reading
Chapter 8: Asynchronous Programming Using CoroutinesChevron down iconChevron up icon
Chapter 8: Asynchronous Programming Using Coroutines
Technical requirements
Coroutines
C++ coroutines
Implementing basic coroutines
Coroutine generators
Simple coroutine string parser
Coroutines and exceptions
Summary
Further reading
Part 4: Advanced Asynchronous Programming with Boost LibrariesChevron down iconChevron up icon
Part 4: Advanced Asynchronous Programming with Boost Libraries
Chapter 9: Asynchronous Programming Using Boost.AsioChevron down iconChevron up icon
Chapter 9: Asynchronous Programming Using Boost.Asio
Technical requirements
What is Boost.Asio?
Interacting with the OS
The Reactor and Proactor design patterns
Threading with Boost.Asio
Managing objects’ lifetime
Transferring data using buffers
Signal handling
Canceling operations
Serializing workload with strands
Coroutines
Summary
Further reading
Chapter 10: Coroutines with Boost.CobaltChevron down iconChevron up icon
Chapter 10: Coroutines with Boost.Cobalt
Technical requirements
Introducing the Boost.Cobalt library
Boost.Cobalt generators
Boost.Cobalt tasks and promises
Boost.Cobalt channels
Boost.Cobalt synchronization functions
Summary
Further reading
Part 5: Debugging, Testing, and Performance Optimization in Asynchronous ProgrammingChevron down iconChevron up icon
Part 5: Debugging, Testing, and Performance Optimization in Asynchronous Programming
Chapter 11: Logging and Debugging Asynchronous SoftwareChevron down iconChevron up icon
Chapter 11: Logging and Debugging Asynchronous Software
Technical requirements
How to use logging to spot bugs
How to debug asynchronous software
Summary
Further reading
Chapter 12: Sanitizing and Testing Asynchronous SoftwareChevron down iconChevron up icon
Chapter 12: Sanitizing and Testing Asynchronous Software
Technical requirements
Sanitizing code to analyze the software and find potential issues
Testing asynchronous code
Summary
Further reading
Chapter 13: Improving Asynchronous Software PerformanceChevron down iconChevron up icon
Chapter 13: Improving Asynchronous Software Performance
Technical requirements
Performance measurement tools
False sharing
CPU memory cache
SPSC lock-free queue
Summary
Further reading
IndexChevron down iconChevron up icon
Index
Why subscribe?
Other Books You May EnjoyChevron down iconChevron up icon
Other Books You May Enjoy
Packt is searching for authors like you
Share Your Thoughts
Download a free PDF copy of this book

Recommendations for you

Left arrow icon
Debunking C++ Myths
Debunking C++ Myths
Read more
Dec 2024226 pages
Full star icon5 (1)
eBook
eBook
$27.99$31.99
$39.99
Go Recipes for Developers
Go Recipes for Developers
Read more
Dec 2024350 pages
eBook
eBook
$27.99$31.99
$39.99
50 Algorithms Every Programmer Should Know
50 Algorithms Every Programmer Should Know
Read more
Sep 2023538 pages
Full star icon4.5 (68)
eBook
eBook
$35.98$39.99
$49.99
$49.99
Asynchronous Programming with C++
Asynchronous Programming with C++
Read more
Nov 2024424 pages
Full star icon5 (1)
eBook
eBook
$29.99$33.99
$41.99
Modern CMake for C++
Modern CMake for C++
Read more
May 2024504 pages
Full star icon4.7 (12)
eBook
eBook
$35.98$39.99
$49.99
Learn Python Programming
Learn Python Programming
Read more
Nov 2024616 pages
Full star icon5 (1)
eBook
eBook
$31.99$35.99
$39.99
Learn to Code with Rust
Learn to Code with Rust
Read more
Nov 202457hrs 40mins
Video
Video
$74.99
Modern Python Cookbook
Modern Python Cookbook
Read more
Jul 2024818 pages
Full star icon4.9 (21)
eBook
eBook
$38.99$43.99
$54.99
Right arrow icon

Customer reviews

Rating distribution
Full star iconFull star iconFull star iconFull star iconFull star icon5
(1 Ratings)
5 star100%
4 star0%
3 star0%
2 star0%
1 star0%
AyoubApr 02, 2025
Full star iconFull star iconFull star iconFull star iconFull star icon5
Fantastic book, if you are new to multithreading and you want a master introduction, this is your friend. Great work.
Subscriber reviewPackt

About the authors

Left arrow icon
Profile icon Javier Reguera-Salgado
Javier Reguera-Salgado
LinkedIn iconGithub icon
Javier Reguera-Salgado is a seasoned software engineer with 19+ years of experience, specializing in high-performance computing, real-time data processing, and communication protocols. Skilled in C++, Python, and a variety of other programming languages and technologies, his work spans low-latency distributed systems, mobile apps, web solutions, and enterprise products. He has contributed to research centers, start-ups, blue-chip companies, and quantitative investment firms in Spain and the UK. Javier holds a PhD cum laude in high-performance computing from the University of Vigo, Spain.
Read more
See other products by Javier Reguera-Salgado
Profile icon Juan Antonio Rufes
Juan Antonio Rufes
LinkedIn icon
Juan Antonio Rufes is a software engineer with 30 years of experience, specializing in low-level and systems programming, primarily in C, C++, 0x86 assembly, and Python. His expertise includes Windows and Linux optimization, Windows kernel drivers for antivirus and encryption, TCP/IP protocol analysis, and low-latency financial systems such as smart order routing and FPGA-based trading systems. He has worked with software companies, investment banks, and hedge funds. Juan holds an MSc in electrical engineering from the Polytechnic University of Valencia, Spain.
Read more
See other products by Juan Antonio Rufes
Right arrow icon
Getfree access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook?Chevron down iconChevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website?Chevron down iconChevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook?Chevron down iconChevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support?Chevron down iconChevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks?Chevron down iconChevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook?Chevron down iconChevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.


[8]ページ先頭

©2009-2025 Movatter.jp