Русские видео

Сейчас в тренде

Иностранные видео




Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



Understanding Pessimistic Locking with Mutex

System Design for SDE-2 and above: https://arpitbhayani.me/masterclass System Design for Beginners: https://arpitbhayani.me/sys-design Redis Internals: https://arpitbhayani.me/redis Build Your Own Redis / DNS / BitTorrent / SQLite - with CodeCrafters. Sign up and get 40% off - https://app.codecrafters.io/join?via=... In the video, I explained how the standard count plus plus operation is not Atomic and demonstrated it using Go code with a global variable. I then implemented pessimistic locking using a mutex to ensure that count plus plus is executed by only one thread at a time, making the final value consistently 1 million. I highlighted the trade-off between correctness and performance in multi-threaded programming, emphasizing the importance of keeping critical sections minimal for optimal parallelism. Pessimistic locking is crucial for correct multi-threaded programs, even though it can impact performance. Recommended videos and playlists If you liked this video, you will find the following videos and playlists helpful System Design:    • PostgreSQL connection management and per-c...   Designing Microservices:    • Should You Adopt Microservices? Here’s Wha...   Database Engineering:    • How nested loop, hash, and merge joins work.   Concurrency In-depth:    • How to write efficient and fair multi-thre...   Research paper dissections:    • The Google File System - Paper Explained   Outage Dissections:    • Dissecting GitHub Outage and things to do ...   Hash Table Internals:    • Internal Structure of a Hash Table   Bittorrent Internals:    • Introduction to BitTorrent and the problem...   Things you will find amusing Knowledge Base: https://arpitbhayani.me/knowledge-base Bookshelf: https://arpitbhayani.me/bookshelf Papershelf: https://arpitbhayani.me/papershelf Other socials I keep writing and sharing my practical experience and learnings every day, so if you resonate then follow along. I keep it no fluff. LinkedIn:   / arpitbhayani   Twitter:   / arpit_bhayani   Weekly Newsletter: https://arpit.substack.com Thank you for watching and supporting! it means a ton. I am on a mission to bring out the best engineering stories from around the world and make you all fall in love with engineering. If you resonate with this then follow along, I always keep it no-fluff.

Comments