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.
💬مدرب ذكاء اصطناعي اسأل عن أي درس واحصل على إجابة واضحة فورًا، في أي وقت.
🕐ابدأ في أي وقت بلا جداول أو مواعيد نهائية — تعلّم بوتيرتك، وقتما يناسبك.
🌐بالعربية الدروس والمهام والشهادة — كل ذلك بلغتك بالكامل.
حول هذه الدورة
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.
محتوى الدورة
ما الذي ستحصل عليه
📜شهادة إتمام أضفها إلى ملفك على LinkedIn
💬مدرّس AI شخصي عالق في دورة؟ اسأل مدرّسك المدمج أي شيء، في أي وقت.
🎧النسخة الصوتية مضمَّنة تعلَّم أثناء تنقُّلك — دون شاشة
♾️وصول مدى الحياة عُد متى شئت، بلا انتهاء
📱الهاتف أو الكمبيوتر يعمل في أي مكان وعلى أي جهاز
💸استرداد خلال 14 يومًا دون أسئلة
⚡قصير ومركَّز 2 ساعة 48 دقيقة من المحتوى التطبيقي
شهادة إتمام
كل دورة تكملها على PickAClass تُصدر شهادة كهذه — أصلية، بكودها الخاص، قابلة للتحقّق عبر الرابط، ومفصّلة عمّا أُثبت فعلًا.
P
PickAClass
ملف المهارات · قابل للتحقّق
وثيقة
شهادة إتقان
تشهد هذه الوثيقة بأن
الاسم واللقب
أثبت بنجاح إتقان
Modern C++ Concurrency: Cooperative Thread Interruption
المهارات المُثبَتة
✓
تحليل أنماط السلوك
تأسيسي
1.2 ساعة
✓
أطر معمارية لاتخاذ القرارات
متمكّن
1.4 ساعة
✓
تصميم اختبار A/B
متمكّن
1.7 ساعة
✓
كتابة نصوص سلوكية
متقدّم
1.9 ساعة
P
PickAClass — الاسم واللقب
Modern C++ Concurrency: Cooperative Thread Interruption