0:00 / 0:00
Back to Basics: Concurrency - Arthur O'Dwyer - CppCon 2020
CppCon
189K subscribers • 101 videos on Hallway • Conference channel
- One of the most-watched uploads on CppCon, a conference or university channel Hallway lists. Nobody has recommended it in the communities yet, so it ranks below community picks.
- Presented by Arthur O'Dwyer
- Linked in the descriptionCppCon/CppCon2020
Beginner. No background in the topic needed.
120K views6 years ago
Programming languagesSystems programmingC++Concurrency and parallelism
Arthur O'Dwyer explains the fundamentals of C++ concurrency, covering std::thread, synchronization primitives, and new C++20 features like semaphores.
cppcon.org/ github.com/CppCon/CppCon2020/blob/main/Presentations/back_to… --- One of C++11's flagship features was the introduction of std::thread, along with a complete suite of synchronization primitives and useful patterns such as thread-safe static initialization. In this session, we'll motivate C++11's threading model and explain how to use std::thread effectively. We'll compare and contrast the C++11 synchronization primitives (mutex, condition variable, reader-writer lock, and once-flag) as well as the primitives that are new in C++20 (semaphore, latch, and barrier). In particular, we'll show how to make a mutex and a condition variable work together. When using threads, it's important to avoid shared mutable state. We'll show how to tame that state via the "blue/green deployment" pattern, and briefly discuss how to use std::future and std::async to safely handle threads that produce answers. Attendees will leave this session with a strong grasp on "multithreading tactics" in C++11 and beyond. --- Arthur O'Dwyer is the author of "Mastering the C++17 STL" (Packt 2017) and of professional training courses such as "Intro to C++," "Classic STL: Algorithms, Containers, Iterators," and "The STL From Scratch." (Ask me about training your new hires!) Arthur is occasionally active on the C++ Standards Committee and has a blog mostly about C++. He is also the author of "Colossal Cave: The Board Game," an avid club juggler, and the recipient of four --- Work at Hudson River Trading (HRT): tinyurl.com/safxfctf --- Streamed & Edited by Digital Medium Ltd - events.digital-medium.co.ukevents@digital-medium.co.uk *-----* Register Now For CppCon 2022: cppcon.org/registration/ *-----*Why it's here
A top upload from a listed channelCppCon is on Hallway's list of conference and university channels, and this upload is one of its most-watched talks or lectures. Nobody has recommended it in the communities yet, so it ranks below community picks.