C++ Multithreading Part 2: Mutexes and Lock_Guard
Channel:
Subscribers:
2,650
Published on ● Video Link: https://www.youtube.com/watch?v=pi9536nwgK8
Today we finished our introduction to multithreading in C++, with the ability to restrict access to a global data structure via two steps:
1) Moving it inside of a function and making it static
2) Adding two lines of code for a mutex and a lock_guard to restrict the body of the function to just one thread at a time
Other Videos By Bill Kerney
2024-12-01 | The Basics of Python in 45 Minutes |
2024-09-09 | CURE - Course Based Undergraduate Research Experience |
2024-05-10 | Final Review - All our Data Structures in a Nutshell |
2024-05-08 | C++: Dynamic Programming |
2024-05-06 | Final Project: Alcatraz-41 |
2024-05-06 | Debugging C++ Programs |
2024-05-03 | Graph Theory |
2024-05-01 | C++: TCP Streams Networking in 5 minutes (+25 minutes of discussion) |
2024-05-01 | C++: Dear ImGUI in 5 Minutes (+25 minutes of discussion) |
2024-05-01 | Making a Thread Safe version of a data structure |
2024-04-26 | C++ Multithreading Part 2: Mutexes and Lock_Guard |
2024-04-26 | RPG42: Project Guidelines |
2024-04-25 | C++ Multithreading: OpenMP, Atomics, Threads |
2024-04-22 | C++ Error Handling: Exceptions |
2024-04-22 | Unix and Vim Quiz #3 |
2024-04-19 | Vim Macros |
2024-04-19 | C++ Bitwise Part 2 |
2024-04-17 | C++ Bitwise |
2024-04-15 | Huffman Coding (Conceptual) |
2024-04-12 | Tries, and inspiring words |
2024-04-10 | C++: Hash Tables |