Mate, you're the next Ben Awad at the rate your going. Your vids picked up on my algorithm today and I'm really impressed with the quality and content you are putting out.
Thank you very much for this comprehensible quick start on concurrency patterns. I'd love to see a deep dive on concurreny in combination with HTTP servers, context deadlines etc.!
Hey can somebody explain why in the mutex loop if i becomes 0 and then 1 the map isn't unblocked? Is it because the goroutine gets started and the loop continues and starts the next one? But shouldn't the first routine be the first one to lock and the value always ends up with 0?
It does not know that. Basically a Mutex only ensures that the code between the Lock and Unlock call has to finish before another goroutine can enter this codeblock. If another goroutine wants to enter this codeblock it has to ´wait´ until the lock is lifted
Topic you covered is good. But the speed in which you are explaining is difficult for Non-native listeners. You may need to slow down a little. I felt that you are super duper fast.