MENU

Fun & Interesting

Atomics - Part 1 - Atomics Basics (sync/atomic) (Concurrency in Go #5)

Steve Hook 7,958 4 years ago
Video Not Working? Fix It Now

In this video you'll learn everything about Atomics in Go. How to use atomic functions, atomic.Value and explore a bunch of examples & explanations alongside with issues & benchmarks. By the end of this video you'll confidently know everything about Atomics in Go. I've got tons of surprises for you, so go get that zip archive and I'll see you in the video. #steevehook #golang #concurrency #atomics Enjoy 🚀💻🚀 00:00 - Intro 01:06 - Atomicity 03:39 - CPU Registers 04:57 - Go Routines & CPU Registers 05:34 - Example 1 - Race Condition 07:45 - Atomics Intro 08:10 - Example 2 - Basic Counter 11:31 - Example 3 - Race Fixed 12:41 - atomic.Value Intro 13:07 - Example 4 - Reader/Writer 17:44 - Example 4 - Calculator 22:16 - Example 5 - atomic.Value - Panic 23:39 - Example 6 - atomic.Value - Not Atomic 27:38 - Benchmarks 30:31 - Outro ✍ RESOURCES: ► https://github.com/golang-basics/concurrency 💰 Support me on Patreon: ► http://patreon.com/steevehook 💰 Paypal Donation: ► http://paypal.me/steevehook 💰 Buy me a Coffee: ►https://www.buymeacoffee.com/steevehook 💬 Discord COMMUNITY: ► https://discord.gg/tprewQu 🐧 FEEDBACK: ► https://gophertuts.typeform.com/to/j2CJmC 💻 GITHUB: ► https://github.com/gophertuts ► https://github.com/steevehook 💻 Repl.it: ► https://repl.it/@steevehook 💻 Exercism: ► https://exercism.io/profiles/steevehook 📖 Medium: ► https://steevehook.medium.com/ 💬 TWITTER: ► https://twitter.com/@steevehook 💬 FACEBOOK: ► https://www.facebook.com/steevehookmd 💬 REDIT: ► https://www.reddit.com/user/steevehook 💬 INSTAGRAM: ► https://instagram.com/steevehook/ ✉️ EMAIL ► [email protected] ⚡ WEBSITE: ► https://www.steevehook.com 🎧 Music: ► https://www.epidemicsound.com/referral/rjj9hr/ ► https://artlist.io/Steve-411836 🎥 Gear used: ► Sony 𝛼7III ► Rode NTG-3 ► Golden Age Project Pre73-JR preamp ______________________________________________________________________________ Software engineering is one of the most accessible fields nowadays, but it's easy to get lost in the huge amount of technologies and ways to approach engineering problems. Lots of languages, frameworks, solutions and ways to be a productive engineer. I share my own experience on what is like to be a software engineer and the skills required to be a productive one. On this channel I share my thoughts, opinions and video tutorials about topics related to a certain technology, to make it easier for you to ultimately make a choice or just get better at software engineering by learning from my mistakes/experience. Make sure to also check out 5m Friday every Friday, where I share my thoughts and opinions about different engineering topics. I'll c you around 😎 Stay tuned! 🚀💻🚀

Comment