Understanding False Sharing with Your First Concurrent C++ Program Learn about cache lines and false sharing—the hidden performance trap in concurrent programming. Discover why direct updates to shared arrays can kill performance.
Module 1 — Lesson 2: Why Do We Need Concurrency? Learn why modern programs use concurrency; how concurrency actually makes things faster; where speed improvements come from (and where they don’t); and when concurrency won’t help
Module 1 — Lesson 1: What Is Concurrency? What “concurrency” means. Why it’s different from “doing things faster”. How concurrency shows up in real life. How computers use concurrency to handle many tasks at the same time.
Race Conditions and Basic Protection with a Mutex Learn about C++ race conditions and how to prevent them when updating shared data. Use std::mutex and the RAII-style std::lock_guard for thread safety.
Your First Concurrent C++ Program - Parallel Sum with std::thread Build a parallel sum function using std::thread and analyze performance. Discover the thread overhead and the optimal number of threads for massive speedup.