Selecting a country shows the courses available in your region.
⏱ 2h 48m📚 28 lessons🎧 Audio version
Modern C++ Concurrency: Cooperative Thread Interruption
Master the C++20 concurrency model to safely manage and interrupt long-running threads using std::jthread and the interruption API.
💬AI instructor Ask about any lesson and get a clear answer instantly, anytime.
🕐Start anytime No schedules or deadlines — learn at your own pace, whenever suits you.
🌐In English Lessons, tasks and certificate — all fully in your language.
About this course
Managing threads in concurrent C++ applications often introduces complexity, particularly when long-running tasks need to be gracefully shut down without causing resource leaks or race conditions. This course focuses on the modern, standardized approach introduced in C++20 to solve this critical problem.
By the end of this course, you will be able to design and implement robust concurrent programs where threads can be safely requested to stop, allowing for clean resource cleanup and predictable termination behavior.
What you'll learn:
* Understand the fundamental concepts of cooperative thread interruption versus forced termination and why cooperation is essential.
* Apply std::jthread as the modern, interruptible alternative to traditional thread management.
* Configure and use std::stop_source and std::stop_token to signal and check for interruption requests within a running thread.
* Practice registering cleanup actions using std::stop_callback for safe resource management during shutdown.
* Implement robust concurrent patterns ensuring RAII principles are maintained even when interruption occurs.
The course begins with foundational concepts of C++ concurrency and the inherent problems of traditional thread termination. It then systematically introduces the C++20 API components, providing detailed explanations and practical code examples demonstrating their correct usage.
This course is designed for beginner C++ developers who have basic programming knowledge but are new to modern concurrency features. No prior experience with the older std::thread API is required.
Start learning how to build faster, safer concurrent C++ applications today.
Course contents
What you'll get
📜Certificate of completion Add it to your LinkedIn profile
💬Personal AI tutor Stuck on a lesson? Ask your built-in tutor anything, any time.
🎧Audio version included Learn on the go — no screen needed
♾️Lifetime access Come back anytime, no expiry
📱Phone or computer Works anywhere, any device
💸14-day refund No questions asked
⚡Short & focused 2h 48m of practical content
Certificate of completion
Every course you complete on PickAClass issues a credential like this — original, with its own code, verifiable by URL, and detailed about what was actually demonstrated.
P
PickAClass
Skills profile · verifiable
Document
Certificate of Mastery
This certifies that
Name Surname
has successfully demonstrated mastery of
Modern C++ Concurrency: Cooperative Thread Interruption
Skills demonstrated
✓
Behavioral pattern analysis
Foundational
1.2 hrs
✓
Decision-architecture frameworks
Proficient
1.4 hrs
✓
A/B test design
Proficient
1.7 hrs
✓
Behavioral copywriting
Advanced
1.9 hrs
P
PickAClass — Name Surname
Modern C++ Concurrency: Cooperative Thread Interruption