C++ Multi Threading Part 3: Atomic Variables and Memory Models

preview_player
Показать описание
I explain what atomic variables (std::atomic) and how to use them in modern C++. I describe methods of the atomic template provided by STL in details. In particular: load, store, exchange, compare_exchange_strong, compare_exchange_weak.

Also, I cover C++ memory orders such as:

- memory_order_seq_cst
- memory_order_acquire
- memory_order_release
- memory_order_relaxed

I use modern C++11, C++14, and C++17 constructs.

This is my second video on C++ Multithreading.

You can download and code with me using this link:

You can run the code either using Bazel or gcc/g++.

Check my other video on using Bazel to build C++ files in Visual Studio Code:

More details on Bazel:

-----------------------------------------------------
See my other videos on:
-----------------------------------------------------
Keep in touch with me:

I'm the founder of BitcoinCrazyness app, the Most Advanced Cryptocurrency mobile APP for alerts, Check it out:

Рекомендации по теме
Комментарии
Автор

No matter how many times...I keep listening to this lecture, it feels fresh and engaging. Kudos to you!!

jeevanreddy
Автор

Mad respect for this lecture and tackling such a hard topic. Super helpful!

deckarep
Автор

Wow, that was great. I finally had that AHA moment after wasting hours watching other lectures. You have this special gift of explaining such intricate topics in an intuitive and beginner-friendly way. We're all eagerly waiting for your new content on C++. Please keep moving forward.

amaama
Автор

This was the best lesson on atomics I've stumbled on! Fantastic!

There is only one way to explain those, and it is by doing it fully from beginning to end. Very, very well done! It's a very confusing subject, but the lesson flew fast without being boring at all. Thanks! Subscribed :)

maurovvi
Автор

I enjoyed your videos. Cleared up some confusion I had with the cpp reference materials. Thanks for taking the time to make this.

debugsec
Автор

Very pedagogical, much clearer than cppcon videos. Thanks!

mamahuhu_one
Автор

for me, after watching and reading through many sources, this video offered about the most understandable explanation... thanks friend :)

rezafathi
Автор

the best explanation on Youtube on this hard topic. Thank you!!!

danmarian
Автор

This is the best explanation on the internet about the subject! Thanks a lot for your hard work! I watched every second of the video and it helped fathom all the seemingly complicated subjects

thomashashem
Автор

Omo this man is the beast techer i have seen teching c++
*explanation=100℅
*breaking down=100℅
*everthing =100℅
God bless u sir

CletuseOwan
Автор

Excellent teaching and great hardwork. So thankful to you.

AshishKumar-glur
Автор

just started watching but I LOVE the pictures you use they're amazing, really
good old Clippy is especially cool

postdisc
Автор

The way you explain just makes things a piece of cake.
Looking forward for further videos on Multi-threading

BishnuKushwaha
Автор

Ari, this was truly amazing! I'm a complete beginner to multi-threading, and you gave such a seamless and easy introduction to the topic. I watched all three videos, and they were very well thought out and with progressive complexity. I'm looking to get my first C++ developer job and can't thank you enough for explaining this mammoth of a topic so beautifully! Keep up the great work 👏

hamzarashid
Автор

Really helpful. Thanks a ton. Looking forward to more such videos on multithreading.

byynee
Автор

Thanks for this tutorial... waiting for the next episode of cpp multithreading😄

gbdropper
Автор

This is really helpful. Keep uploading All c++ part.

umashankarmishra
Автор

Really Helpful. Honestly speaking this is the best video I have come across to understand Atomic Var & Memory Models. eagerly Waiting for new videos.
Thanks for making this video

siddeshparmar
Автор

great explanation with nice subtle humor. Very easy and fun to follow :D

jelenavalo
Автор

Excellent !!! You explained very hard to understand topic with great presentation. Thanks A Lot for making such videos !

kanhaglobal
welcome to shbcf.ru