Тёмный

L-3.13: Dining philosophers Problem and Solution using Semaphore in Operating System 

Gate Smashers
Подписаться 2 млн
Просмотров 650 тыс.
50% 1

👉Subscribe to our new channel: / @varunainashots
Dining Philosophers Problem in OS is a classical synchronization problem in the operating system. With the presence of more than one process and limited resources in the system the synchronization problem arises. If one resource is shared between more than one process at the same time then it may lead to data inconsistency.
0:00 - Dining philosophers Problem
2:31 - Case 1
5:43 - Case 2
7:23 - Solution using Semaphore
22:33 - Deadlock
25:38 - Remove Deadlock
►Operating System (Complete Playlist):
• Operating System (Comp...
Other subject-wise playlist Links:
--------------------------------------------------------------------------------------------------------------------------------------
►Design and Analysis of algorithms (DAA):
• Design and Analysis of...
►Database Management System:
• DBMS (Database Managem...
► Theory of Computation
• TOC(Theory of Computat...
►Artificial Intelligence:
• Artificial Intelligenc...
►Computer Networks (Complete Playlist):
• Computer Networks (Com...
►Computer Architecture (Complete Playlist):
• Computer Organization ...
►Structured Query Language (SQL):
• Structured Query Langu...
►Discrete Mathematics:
• Discrete Mathematics
►Compiler Design:
• Compiler Design (Compl...
►Number System:
• Number system
►Cloud Computing & BIG Data:
• Cloud Computing & BIG ...
►Software Engineering:
• Software Engineering
►Data Structure:
• Data Structure
►Graph Theory:
• Graph Theory
►Programming in C:
• C Programming
►Digital Logic:
• Digital Logic (Complet...
---------------------------------------------------------------------------------------------------------------------------------------
Our social media Links:
► Subscribe to us on RU-vid: / gatesmashers
►Subscribe to our new channel: / @varunainashots
► Like our page on Facebook: / gatesmashers
► Follow us on Instagram: / gate.smashers
► Follow us on Instagram: / varunainashots
► Follow us on Telegram: t.me/gatesmashersofficial
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Email us at: gatesmashers2018@gmail.com
►Be a Member & Give your Support on the below link: / @gatesmashers

Опубликовано:

 

20 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 723   
@malamsingh1944
@malamsingh1944 5 лет назад
for Dining-Philosopher problem, no better explanation is possible than this. Thanks a lot
@YashPokharel
@YashPokharel 4 года назад
but the occourance of deadlock was not explained properly, it shold be like: if P4 takes S4 and is preempted, then eventually all the processes woul be in deadlock state without the need to be preempted.
@YashPokharel
@YashPokharel 4 года назад
or if if u start with P0, the deadlock starts like p0,p4,p3,p2,p1
@YashPokharel
@YashPokharel 4 года назад
I apologize, even while commenting, I made mistake, you are making hundreds of videos, some mistakes, were bound to happen. Well done, I am preparing my exams from here.
@akshitarora470
@akshitarora470 4 года назад
@@YashPokharel Dude you just confused me after I had a clear understanding of the concept, either explain in a proper way, or kindly delete this series of confusing comments, it would be better for other viewers.
@matteofalso555
@matteofalso555 3 года назад
Wait i didn't even understand if he is speaking english or hindi
@nitishbharti4729
@nitishbharti4729 4 года назад
Me messaging to crush... cursh to me : 22:52 BTW..loved your content..
@koushik_majhi
@koushik_majhi 4 года назад
lol
@sakthi4272
@sakthi4272 4 года назад
😂😂😂
@mayankpatel8278
@mayankpatel8278 4 года назад
hahahahahahahahaha tagda bro.. video dekhte dekhte bhi bakchodi...
@swatantrachoudhary3511
@swatantrachoudhary3511 4 года назад
Lol
@HARIHaran-ks7wp
@HARIHaran-ks7wp 4 года назад
hahaahah nice one dude
@lazeezbiryanii
@lazeezbiryanii 3 года назад
"Khane pe dihan mat dena problem pe dihan dena " was lit 😂😂 Really understood thank you for this lecture sir .
@nightingale180
@nightingale180 Год назад
😂
@S3aw0lf
@S3aw0lf Год назад
@jainamparikh5827
@jainamparikh5827 5 лет назад
When I was in class, I didn't understand a single thing in this dining philosophy problem but after watching you Sir, I can now even teach my professor in a better way. It's the best explanation I have ever heard of. Respect. Thanks.
@learnwithfun7184
@learnwithfun7184 4 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-LBUn8-X05AA.html
@anidiotsandwich2132
@anidiotsandwich2132 10 месяцев назад
My professor took 2 classes to explain this but even the class toppers could not understand anything. The number of views channels like these have speaks volumes of the education system students are trapped in. We also need to understand that our professors are also victims of this rot-learning system. It's a vicious cycle. Only teachers like you are the power that will break this cycle and bring enjoyment, joy and curiosity into learning. Thank you so much, sir! From adding subtitles to being precise yet clear, you are very VERY inspiring. Sending prayers from our side. 🙏🙏
@alankritsingh5222
@alankritsingh5222 2 месяца назад
are wo class me bakchodi krte h isliye smjte nhi ata agr dhyan se padhe to smj aa jata h
@iEntertainmentFunShorts
@iEntertainmentFunShorts 5 лет назад
It takes 35 mins but if we kept patience then its a perfect explanation and at the end of video it is look like very interesting. Thank you sir for grt effort for such classical IPC Problems. After watching it i recommend viewrs to watch the andrew tanenbaum book for process synchronisation its awesome.
@subhankardutta6054
@subhankardutta6054 5 лет назад
we can watch it at 1.5x.. no problem at all
@GodOfFaith
@GodOfFaith 11 месяцев назад
2x please
@bigboss5433
@bigboss5433 5 лет назад
Gate Smashers...... Your Explanation Is Mind Blowing ❤❤❤
@sayonislam7222
@sayonislam7222 2 года назад
Hath se kha leta, itna jhamela hi nhi hota 😅😅
@_Prit_Patel_
@_Prit_Patel_ 3 месяца назад
Lekin sare hi eksath kha sakte hai , hum jaise school me khate the😕
@TOXIC-SPAMMER
@TOXIC-SPAMMER 2 месяца назад
Mutual exclusion and independence bhi toh chahiye 😅
@harsh81086
@harsh81086 2 месяца назад
Angrej ki aulad h Bhai 😂
@satwinderkaur2664
@satwinderkaur2664 2 месяца назад
Shi baat h angrezzo ke chochale😂
@akankshachoudhary6456
@akankshachoudhary6456 Месяц назад
😂😂😂
@asmaliaquat2593
@asmaliaquat2593 6 лет назад
Such a great explanation...!! i can do my Assignment now ...Thanks Alot
@shoebahmadkhan8178
@shoebahmadkhan8178 2 года назад
hello asma how are you
@srijitanitamajumdar5904
@srijitanitamajumdar5904 4 года назад
That was as smooth as butter flow!! You Rock, as usual, Sir! Hands down!
@sheikhraisulislam4483
@sheikhraisulislam4483 11 месяцев назад
Its really rare , such deep lectures free of cost in RU-vid
@manglamtripathi5613
@manglamtripathi5613 3 года назад
This is the best video and explantion possible on internet. Believe me as after reading many articles and watching many videos I came to this conclusion.
@nirajkc224
@nirajkc224 3 года назад
This video is gem for me.You covered what couldn't have been in 2hrs lecture in my College.Thanks !!
@saadmanahmed860
@saadmanahmed860 3 года назад
just marvelous lecture. I was stuck with this philosophers problem. i searched a lot on youtube, but not found any clear illustration. but after watching yours i am happy now. thanks a lot
@Vikashpoonia.ExamsABC
@Vikashpoonia.ExamsABC 5 лет назад
Efforts put by you in your videos are commendable. Nice explanation. God bless you.
@ShivAdiShakti108
@ShivAdiShakti108 5 лет назад
The best explanation for Dining -philosopher problem. Thank You
@apurvakirdat5897
@apurvakirdat5897 3 года назад
This is one of the most amazing video lectures I have seen so far! I have already referred to the dbms playlist and here I am for OS. Thank you for so much for detailed and easy explanation :)
@GateSmashers
@GateSmashers 3 года назад
Wow, thank you!
@rahul5959able
@rahul5959able 4 года назад
Happy Teachers Day sir, love the amount of efforts you put in making videos
@GateSmashers
@GateSmashers 4 года назад
Thank you so much..Bless you
@soniaaish4876
@soniaaish4876 3 года назад
@@GateSmashers 👍
@devanshmesson2777
@devanshmesson2777 2 года назад
The best lecture for deadlock on the internet! Thank you so much!
@koushikghosh6986
@koushikghosh6986 5 лет назад
Everyone explain it by simple saying.But U explain it with explain.Love programming and ur explain also.Now I can write it in my exam.Thank u sir a lot.
@thedeafchannel7538
@thedeafchannel7538 4 года назад
Such an impressive teaching style....thanks a lot Varun Sir!
@MohanRaj-vp1zt
@MohanRaj-vp1zt 3 года назад
One of the best explanations of dinning philosophers problem! Thanks a lot !
@rinjakundu
@rinjakundu 4 года назад
This is the best explanation ... no one could explain it this better !
@sssaumya2069
@sssaumya2069 4 года назад
thank you so much for making OS interesting....such a relief....keep going
@shivani_raul
@shivani_raul 5 лет назад
Great explaination 🙌🏻All your videos are so much helpful
@yatharthdholakia5803
@yatharthdholakia5803 6 лет назад
Awesome sirji....I haven't seen a better explanation for this topic....thank you so much
@insideentrepreneur7904
@insideentrepreneur7904 4 года назад
54 dislikes from private college teachers
@sauravsingh-sg6vl
@sauravsingh-sg6vl 4 года назад
govt. professor too
@iamright5818
@iamright5818 2 года назад
True.... And now your comment has 54 likes😆
@neerajl.5945
@neerajl.5945 2 года назад
Including AB sir 🤣
@vekariyadharmik7776
@vekariyadharmik7776 2 года назад
yes 😂😂😂😂😂
@ashishkumarsharma9606
@ashishkumarsharma9606 2 года назад
@@iamright5818 lol
@RaiyadRaad
@RaiyadRaad 6 лет назад
Best ever explanation. 35minutes is so long but finally I understood it fully. Thank you so much. Keep making awesome lectures.
@learnwithfun7184
@learnwithfun7184 4 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-LBUn8-X05AA.html
@ishanpand3y
@ishanpand3y 5 лет назад
Your explanations are so damn good. Sir you just saved me 😃 thanks a lot.
@nvjrane
@nvjrane 5 лет назад
Thank you very much...it made dining philosopher's problem so easy. Keep it up.
@tovideo100
@tovideo100 4 года назад
Very clearly expressed with different cases. Thank you, sir.
@edin1256
@edin1256 2 года назад
Thank you for this video, it is one of the best ones in this playlist. Too good.
@tanishqvyas8387
@tanishqvyas8387 3 года назад
A really nice explanation covering all valid points. thanks a lot sir. binge watching your videos to prepare for exams. Great content.
@udaysaiphanindra3138
@udaysaiphanindra3138 5 лет назад
you are a very patient teacher sir.. hats off to your patience sir.
@prasuntiwari4291
@prasuntiwari4291 4 года назад
This is probably the best explanation available on the internet on this topic.
@kashinathlambe1950
@kashinathlambe1950 6 лет назад
Thank you so much sir.. For better understanding concept
@dvamshi8639
@dvamshi8639 3 года назад
your lectures helped me a lot with in shot period of time for me inorder to grasp concepts very easy and thanks for explaning each and every example clearly hope we recommand some other courses to be explained by you and thank you sir
@sadasiva7398
@sadasiva7398 3 года назад
Thank you sir for explaining such a complicated topic in a simple manner.
@Jeetu0301
@Jeetu0301 4 года назад
Man you really know how to teach. Legend!!
@vaishnavijha5742
@vaishnavijha5742 4 года назад
Sir, this topic is really very interesting and you explained it very well. KEEP IT UP.
@manalisamani6729
@manalisamani6729 4 года назад
Best ever explanation 👍😊 I actually got it what's this problem is .... Thank you for this perfect explanation 😊
@hackytech7494
@hackytech7494 3 года назад
Thank you so much for such deep and complete explanation. It was fantastic
@mayuribhandari2224
@mayuribhandari2224 5 лет назад
Outstanding explanation of Dining Philosopher Problem. Was unable to understand it from book.thank you so much!
@poojachauhan2709
@poojachauhan2709 4 года назад
Excellent explanation in all OS videos.. Thank you sir
@vigneshsaikrishnamallya5777
@vigneshsaikrishnamallya5777 4 года назад
Best lectures for GATE . Thanks a lot sir . Never thought operating systems will be so much fun .
@myqalb123
@myqalb123 3 года назад
You are a magician, sir!!......can't thank you enough.🙏🙏
@nirjharbiswal876
@nirjharbiswal876 4 года назад
Really so simplified explanation. Ek baar is video Ko dekhkar in sure dining philosopher concept Koi nahin Bholegaa. Thank you sir
@gargseema1
@gargseema1 5 лет назад
Ur really the best teacher i've ever met and from whom I learned
@AFNCompany
@AFNCompany 5 лет назад
Exceptional Talent of Teaching.
@M.A.H.I.R
@M.A.H.I.R 5 лет назад
thank you SIr, much love from Malaysia. preparing for my Operating system exam and this came so handy, alhamdulillah :D
@samudraganguly6711
@samudraganguly6711 3 года назад
Sir: Khane pe dhyaan mat dena Me thinking: How can they eat Rice with Forks? Your videos are absolutely wonderful... Fan of you sir
@tausal1
@tausal1 6 лет назад
Amazing explanation. Thank you so much!
@prateekkumar3183
@prateekkumar3183 3 года назад
I have so much doubt in this particular problem..Thanks a lot sir for making it so clear to me....As usual u explained it fabulously...
@ananyaroy9466
@ananyaroy9466 5 лет назад
Sir I just loved your explanation...it made my concept so clear..thank u so much sir
@medyenglish
@medyenglish 4 года назад
Sir u are the best teacher, the way of teaching and examples u use are perfect i understood each and every thing thnk u soo much.
@brindas9044
@brindas9044 3 года назад
Thank you so much sir!🙏🙏 Very well explained!! Hats off to your efforts!
@roopa4610
@roopa4610 3 года назад
I don't understand hindi but I'm still able to understand this video just because the way you teach is beyond words❤️ great work 😊🔥 How can we solve this problem using monitors ?
@saraswatikumari1227
@saraswatikumari1227 2 года назад
Thank you so much, sir for helping, really you are a good explainer for every subject . we easily understand your teaching technique.
@nsandeep7574
@nsandeep7574 3 года назад
One word you are great explanation India needs you :)
@SALMANKHAN-vp6hk
@SALMANKHAN-vp6hk 5 лет назад
you do grate job, your explanations is goods and covers all point.
@aakankshabaijal
@aakankshabaijal Год назад
Very well explained, the part on how to remove deadlock was also explained so clearly!
@SkRimSd9
@SkRimSd9 4 года назад
Thank u Sir. Thank u Soo Much. I wish I had a teacher like u. Best explanation.
@manishkarmakar3927
@manishkarmakar3927 3 года назад
sir you are great...loved your explanation...Thank You soo much
@deepakjose9889
@deepakjose9889 4 года назад
I don't even know Hindi still, I have understood the concept better than it was taught in class. Very good sir. Can't wait to watch more of your videos
@neharoshan2371
@neharoshan2371 4 года назад
Excellent Explanation of Dinning Philosopher! In 6 years of engineering does not get such a best explanation.. thank you so much..😊
@amanrai8010
@amanrai8010 4 года назад
I think you did not get anything in Engineering because a person who takes 6 years to do Engineering is dumb
@ramapragadakomal7648
@ramapragadakomal7648 2 года назад
@@amanrai8010 Btech plus Mtech (4 years + 2 years= 6 years...)
@RanjeetSingh-xt5sh
@RanjeetSingh-xt5sh 6 лет назад
Very Helpful.... Clearly explained....
@anuragpandey8165
@anuragpandey8165 2 года назад
I can't imagine any better video on dining-philosopher problem.
@vishalsnsingh
@vishalsnsingh 3 года назад
wonderful lovely explaination, seems like pure crystal.
@kaleemurrehman7951
@kaleemurrehman7951 3 года назад
Bilkul sir.. Not go for food.. Apse hi seekha h concept..... Thank u very much for such videos..
@arihantjammar8888
@arihantjammar8888 4 года назад
Completely DEADLOCKED on watching and engrossed on understanding the concept!!!
@ahsanhussain1782
@ahsanhussain1782 5 лет назад
Much thanks sir... loved your way of teaching
@suryaajha5953
@suryaajha5953 5 лет назад
Best Explanation Chumesh!!
@tanmaithungathurthy1536
@tanmaithungathurthy1536 10 месяцев назад
Crystal clear!! Highly recommended
@mohanvamsikrishna2811
@mohanvamsikrishna2811 3 года назад
It became interesting concept for me because of you Thank you so much sir..🙏🙏🙏
@sathyasreegunda
@sathyasreegunda 3 года назад
Thank you so much sir . It helped me very much and everything is clearly explained. So that I can write my exam directly without preparing before exam....
@vaisul9373
@vaisul9373 4 года назад
Such a clear explanation. How can we have doubts sir. Even a commoner can understand.
@avinashkhara2405
@avinashkhara2405 5 лет назад
Thank you sir,u are teaching very well
@shivateja7574
@shivateja7574 3 года назад
I saw your videos just one hour before my exam. I wrote it well.Great explanation.
@priyanshu_dwivedi1733
@priyanshu_dwivedi1733 3 года назад
Sir your lectures are amazing it's help me lot when I study the way of explanation is superb 👍 thankyou very much sir
@gauravsrivastava5589
@gauravsrivastava5589 3 года назад
Woww sir your teaching methods are phenomenal!! Thanks a ton!!!
@saptarshibose9718
@saptarshibose9718 3 года назад
At the beginning I guessed it might be in deadlock for some cases. And at last you are discussing about it
@mansinauni
@mansinauni 3 года назад
The way u teaches clears...whole.. concept.
@mohdabdulazeem1054
@mohdabdulazeem1054 3 года назад
I would be very happy to pay to watch the videos. Awesome. Great explaination.
@byteapps
@byteapps 11 месяцев назад
I can not find a better explanation than this. Thank you!
@abhiroopnray
@abhiroopnray 5 лет назад
Very nice and clear explanation!! great job ! Thank you !!
@AllinOneMedia_Monk-Official
@AllinOneMedia_Monk-Official 3 года назад
Such a great explanation sir hats off 🙏🙏🙏
@dipakraut6058
@dipakraut6058 5 лет назад
Seriously just Awesome Thanks 😊.
@ektasutariya9294
@ektasutariya9294 5 лет назад
you do grate job, your explanations is uninstallable and covers all point.
@anuragpandey8165
@anuragpandey8165 2 года назад
35 min feels like 2 min with varun bhaiya
@chandandastanti7557
@chandandastanti7557 5 лет назад
Asm sir your explanation is awesome 🌟 that makes my concept very clear please upload more videos. Regarding cse papers
@nileshsrivastava1507
@nileshsrivastava1507 2 года назад
Great explanation, you made tough problem very easy. Thank you.
@faisalkhan-ve1vk
@faisalkhan-ve1vk 4 года назад
sir , i am your big fan...... watch your all video related operating system and dbms. hands off to you sir...
@sahar9001
@sahar9001 4 года назад
impeccable explanation
@newtrends72
@newtrends72 5 лет назад
its mind blowing....yoy did a great job ,thanks alot Sir
@honeyboiii5317
@honeyboiii5317 2 года назад
yeah exactly no need of any other explanation. Amazing explained>>>>>>> superb
@manishtirkey7112
@manishtirkey7112 4 года назад
Bs maja aa gya. No words for your explanation.
@azanaslam552
@azanaslam552 6 лет назад
Outstanding explantion sir ... keep it up sir
@filmforeverofficial
@filmforeverofficial 6 месяцев назад
Your videos are very helpful to me. You are a very good teacher. Thank you Sir.
@prafulrane9037
@prafulrane9037 5 лет назад
hats off to your hardwork. may god bless you i want to learn android app development need help need your videos for it.plz try to make
@jayeshjadhav5575
@jayeshjadhav5575 3 года назад
Such a good explaination... I enjoyed this lec
Далее
His reaction 😳 (via @kaitlyn.b0506/TT) #shorts
00:10
Monitors
13:46
Просмотров 184 тыс.
The Dining Philosophers Problem
20:16
Просмотров 311 тыс.
The Bounded Buffer Problem
15:48
Просмотров 269 тыс.