From the course: Parallel and Concurrent Programming with C++ Part 2
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Communication - C++ Tutorial
From the course: Parallel and Concurrent Programming with C++ Part 2
Communication
- [Instructor] After decomposing the problem into separate tasks. The next step in our design process is to establish communication. Which involves figuring out how to coordinate execution and share data between the task. - Hang on a sec, do we always need communication? - Well my dear, communication is the foundation of a good relationship. - Yeah, yeah, but I was talking about data. Some problems can be decomposed in ways that do not require tasks to share data between them. Consider the job of frosting these cupcakes. If I'm tasked to add frosting to this one, and you're tasked to add frosting to that one. Even though we're operating on adjacent elements in this array. There's no need for us to communicate with each other. They're completely independent tasks. This is embarrassingly easy to make parallel. - Sure, we could spend our quality family time together in the kitchen not talking to each other. But what if…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.