Это видео недоступно.
Сожалеем об этом.
Optimistic Locking - What, When, Why, and How?
- Добавить в
- Мой плейлист
- Посмотреть позже
- Поделиться
Поделиться
HTML-код
Размер видео:
- Опубликовано: 15 авг 2024
Комментарии • 24
Следующие
Автовоспроизведение
Database Sharding and PartitioningArpit Bhayani
Просмотров 77 тыс.
Peeking into assembly code to understand why count++ is not atomicArpit Bhayani
Просмотров 8 тыс.
If I were to learn a new programming languageArpit Bhayani
Просмотров 22 тыс.
Sean Evans Eats His Last MealMythical Kitchen
Просмотров 1,3 млн
The Firefighters said I was LUCKY TO BE ALIVE after this stupid MISTAKE!!!Al Bladez
Просмотров 635 тыс.
We Became Parents For 24 Hours😳Nadia J
Просмотров 286 тыс.
Dragon Age: The Veilguard | Official Release Date TrailerDragon Age
Просмотров 522 тыс.
Optimistic Locking vs Pessimistic Locking With EF CoreMilan Jovanović
Просмотров 16 тыс.
How to write deadlock free code?Arpit Bhayani
Просмотров 8 тыс.
what is OPTIMISTIC LOCK?Tech Dummies Narendra L
Просмотров 58 тыс.
Why thread pools even exist? and how to implement them?Arpit Bhayani
Просмотров 34 тыс.
Java ForkJoinPoolJakob Jenkov
Просмотров 4,4 тыс.
CAP Theorem - From the First PrinciplesArpit Bhayani
Просмотров 26 тыс.
21: Distributed Locking | Systems Design Interview Questions With Ex-Google SWEJordan has no life
Просмотров 11 тыс.
How Airbnb designed and scaled its central authorization system - HimejiArpit Bhayani
Просмотров 20 тыс.
how does a Mutex even work? (atoms in the computer??)Low Level Learning
Просмотров 59 тыс.
ЕДЕМ в ДОМЕ на КОЛЕСАХ ВЛАДИВОСТОК - МОСКВА! 10000 км с Габаром и Никитосом, Волков, ДубровскийАлексей Столяров
Просмотров 336 тыс.
Qora GelikMirjalol Nematov
Просмотров 543 тыс.
Мелл хочешь сына от ДиларыMORE EMOCIY
Просмотров 28 тыс.
Плач дорослих та дітей біля труни полеглого українського воїна #warСуспільне Полтава
Просмотров 336 тыс.
SCHOOLBOY RUNAWAY В РЕАЛЬНОЙ ЖИЗНИ 📚🔔 #schoolboy #runaway #schoolboyrunaway #shorts YOUNGYOUNG
Просмотров 274 тыс.
Gelik yoki Velik?Mirjalol Nematov
Просмотров 549 тыс.
女孩妒忌小丑女? #小丑#shorts好人小丑
Просмотров 8 млн
Чёрная ДЫРА 🕳️ | WICSUR #shortsБискас
Просмотров 1,5 млн
This channel has enough content to become a senior backend engineer who are at beginner or mid senior level. Thank you Arpit so much
My goal is Staff is so this has been great , even for references to modeling what already is out there rather than re inventng the wheel. Thanks!
Hey Abdul, can you please tell me where to start. Right now I have just passed out in 2023, and joined a company as a backend developer.
This is really awesome. Got satisfying answers for the doubts I had on contention for CAS operation by two threads. If one wants to be like him your thinking should be like DFS graph traversal, keep digging the problem deeper until all your doubts are resolved.
Great teaching technique. Awesome videos. There lot of senior engineers but very few of them has such great teaching skill like arpit
In optimistic locking there is a concept of Time-of-check to time-of-use
when we are checking the old value to be old value => so that we can write it to the new value.
there can be another thread which will actually update it in the time being of this checking and updating.
and current thread might be a case of also picking up old value = old value.
here the race condition might occur
Please help me in this scenario,
If my app is load balanced and I have 2 nodes running under it.
When 2 requests arrived to update the same resouce. How can Optimistic Locking works?
There will be 2 machines and each can execute compare_and_swap or (TOC and TOU) same time.
Quick question around cpu context switch.
Most CPU’s have multiple cores and this comparison function would be running on a single core.
Does that mean other cores are also at halt for the time being or they can execute a parallel thread?
It depends on the architecture. Some block the cores, while other block the memory location.
@@AsliEngineering had this question in mind, thanks for clarifying
Great Video !!! I wonder how do you choose your content and what resources you used to learn fundamental concepts in multithreading ? Really Great Work and I look forward to every new video.
Nice! But example is misleading, if goal is to just increase the count, then atomic increment is a better choice, better example for compare and exchange would be implementing mutex itself or spinlock, correct me if I am wrong :)
Amazing content, these internals are very interesting, thank you so much arpit
Today, I realised going through the content only once is not enough, as a human we loses many important points, finally completing this series for the 2nd time 😍😍 and what I am feeling right now I can't even express, feeling like I can be a TEAM LEAD 😅 at this time by knowing these little little minute details
Amazing bro, learned a lot
Please help me in this scenario,
If my app is load balanced and I have 2 nodes running under it.
When 2 requests arrived to update the same resouce. How can Optimistic Locking works?
There will be 2 machines and each can execute compare_and_swap or (TOC and TOU) same time or a race condition may be.
arpit bhaiya ji please recommend a book to learn all of these CPU instructions and also linux commands for accessing process control blocks
Why loading the count variable is atomic?
I have one question, you mentioned pessimistic locking might become a bottleneck in your multithreaded application if the number of cofilicts (threads) to aquire a lock is very high. How does optimistic locking help here in increasing the throughput, as you mentioned during the same situation optimistic locking will also not perform well?
Good tutorial Arpit sir.
Thanks a ton, it was quite clear!!
This CaS operation is used in lmax disruptor too
Using complex variable name.
Bro Hindi mein Bana sakti ho ,agar ATI ho to
English mein content bhaut hai youtube par
Par Hindi mein kam😅