This reminded me of my Microprocessor practiclas where we would code using JMP for loops on a set of keyboard and small monitor. Amazing though, hard to find such deapth for any of the concurrency lectures.
Why do we need 2 mov micro instructions? Why couldn't we just use something like addl $1, %rdi as a single micro instruction? Also, adding just 1 to a number "binarily" is extremely efficient right? It's much faster than adding any other number, so why couldn't we handle this as a special case?
Hi Arpit, Thank you for this explanation. It was really helpful. Could you please also provide an explanation of how the count++ and ++count expressions execute in the context of multithreading?
I pay my internet bill for this type of content
You have a real gift for teaching mate. Thanks so much!
Very nicely explained. Love it when when ppl use pens and drawings to teach. The internet needs this type of content
Awesome explanation of such a building block concept.
I learned this coming from non cse background. So amazing content
Superb video, thanks.
I am watching the series the second time, and I can't explain how much clarity in my brain these concepts are getting injected, amazing arpit sir ❤
Thanks for the video, bro 🙌
This reminded me of my Microprocessor practiclas where we would code using JMP for loops on a set of keyboard and small monitor. Amazing though, hard to find such deapth for any of the concurrency lectures.
Why do we need 2 mov micro instructions? Why couldn't we just use something like
addl $1, %rdi
as a single micro instruction?
Also, adding just 1 to a number "binarily" is extremely efficient right? It's much faster than adding any other number, so why couldn't we handle this as a special case?
Hi Arpit,
Thank you for this explanation. It was really helpful. Could you please also provide an explanation of how the count++ and ++count expressions execute in the context of multithreading?
The name 'Asli Engineering' truly reflects the content on this channel.
awesome
I wish one day I could be as smart as Arpit Bhayani
So whats the solution to make it safe
Locking - optimistic and pessimistic. Videos on those topics are already out on my channel.
std::atomic count; count++;