MUTEX and Data Racing | Advanced C++: Multithreading & Multiprocessing for Firmware Systems #3

MUTEX and Data Racing | Advanced C++: Multithreading & Multiprocessing for Firmware Systems #3

πŸ”΄ Subscribe for more videos on C++
πŸ‘ Smash that like button, in case you find this tutorial useful.
πŸ‘‍πŸ—¨ Speak up and comment, I am all ears.

In the third lecture of this series entitled "Advanced C++ Programming: Multithreading & Multiprocessing for Firmware and Embedded Systems and Applications", we talk about race conditions, such as data races, and ways to avoid them through the usage of Mutex. Also, we give best practice techniques for safe threading environment. The lecture is outlined as follows

00:00 Intro
00:20 Data racing for common resource
02:11 Race Condition Solution 1: Mutex
05:28 Race Condition Solution 2: lock_guard the Mutex
06:38 Race Condition Solution 3: Bundling Mutex with Resource
10:36 Thread safe coding
14:59 Summary


Lecture 1: Threads & Processes https://youtu.be/ZROGScvpGrs
Lecture 2: Thread Management https://youtu.be/6KQMFv-hfbE



* Need to brush up your C++ skills, the following two tutorials are important: *
Lecture 1: Essentials of C++ Programming https://youtu.be/lpSzoP0hngM
_C++ Datatypes_
_Arithmetic operations_
_Casting_
_Postfix operators_
_Prefix operators_
_Conditionals (if/else statements)_
_Statements vs Assignments_
_Switch statements_
_Logical expressions_
_Ternary operators_
_for loops_
_User input_
_Strings_
_Vectors_
_Functions_
_Recursive functions_
_FileIO_

Lecture 2: Pointers and Object Oriented Programming on C++ https://youtu.be/kMXH25eSZoA where you will learn about
_Pointers_
_Structures_
_Classes_
_Constructors_
_Destructors_
_Method overloading_
_Static variables_
_Class inheritance_
_Important notes_
_Virtual methods_

mathcodingprogramming

Post a Comment

0 Comments