Hands down the best explanation of Peter's Solution. The concept of 'humbly giving the other turn' made it much more clear.
@amasaadi382Күн бұрын
%100 agree
@ishvendra33953 жыл бұрын
I am doing a paid course and I couldn't understand their explanation so I came here and wow this explanation is soo better xD .. Neso academy rocks!!
@mArjunyadav3 жыл бұрын
what is the course for? Can u share it?
@srishylesh29353 жыл бұрын
yes. same qn
@anonymousguy92632 жыл бұрын
@@mArjunyadav doesn't matter Neso academy has far good content for a free cost.. We like everything free if it is available anywhere..
@ChaitanyaRacharla2 жыл бұрын
@@anonymousguy9263 Lol no bro it ain't free, you gotta pay for the chapters further
@anonymousguy92632 жыл бұрын
@@ChaitanyaRacharla yes ı know and ı paıd for ıt.. It ıs very nominal..
@chandrachurmukherjeejucse5816 Жыл бұрын
The best lecture on Peterson's solution that I have watched till now 🔥
@gatecseaspirant-dk9ze2 ай бұрын
then you had watched all the wrong lectures till now..... Man did not explain how to check M.E., progress and B.W... he just read the code
@GTBBwastaken2 жыл бұрын
I was sceptic about watching this video due to its length. However, very good and thorough explanation. I came up with this real life example when both processes want to enter their critical section: 1. You and your friend both want to enter a bus. 2. You insist your friend that he/she enters first. 3. But your friend is insisting that you enter first. 4. Not to cause any delay, you enter first. 5. Your friend enters after you. P.S. Happens to me many times in real life. I want to let people go first and they insist that I go first. So, to not delay any further I go first.
@aniketkulkarni3013Ай бұрын
No one has been able to explain this algorithm in depth. Thank you so much; I am truly grateful for your help.🙌🙏
@mostafatarekadam88612 жыл бұрын
Thank you I understand it clearly now, the key is to draw the two processes and trace the instructions
@TheRkmutube2 жыл бұрын
Your videos are amazingly simple and easy to understand and most importantly your humble variable 😀 first of its own kind man!!
@AyaNori Жыл бұрын
I think the while loop is supposed to be while(flag[j] && turn=j); instead of turn=[j] since j is an int, not an array. but anyway, I agree with everyone! you're videos have helped me so much!!
@franklinmaradiaga24014 ай бұрын
WOWWWW, what can i say... This is hands down the absolute best explanation of Peterson's Solution!!! My book was def not enough to get it, and I just didn't even try to understand it, but with ur video, I feel like I understood all of the algorithm!
@Oberon6212 жыл бұрын
These videos are excellent. I like to watch these first and then glide through the textbook after.
@sayonislam72223 жыл бұрын
Peterson's solution be like - "Pehle aap jaiye, nhi nhi pehle aap, " 😅😂
@Emaaaaaas Жыл бұрын
😂🎁
@Mr_ll_7o7_llАй бұрын
Quick understanding: as both process wants to enter first turn value is set to j in left hand part And in the right hand part turn is set to I So now turn has i value Left hand part becomes false (left hand while loop become false) So p0 Is executed and the right hand part the while condition is true(as turn is set to I)it keeps on looping and doesn't let p1 (pj) enter the critical section after completing p1 in the LHS part i = false is set Then now in the RHS the while condition becomes false and j can enter critical section
@begumonal Жыл бұрын
well explained, made me pass my exam. thank you so much for the great content.
@SonuGupta-wj6dg3 жыл бұрын
it's 3:30 am . I've exam at 11 and this video can't be more awesome than it is😎
@radaefilms31503 жыл бұрын
I'm in the same position dude
@SonuGupta-wj6dg3 жыл бұрын
@@radaefilms3150 hold on 😂
@areejaasna3 жыл бұрын
@@SonuGupta-wj6dg lol guess who join the squad :"")
@heutras3 жыл бұрын
bois you forgot about me
@radaefilms31503 жыл бұрын
@@heutras 😂😂😂 na were in this together how'd ur exam go
@akshatsrivastava2007 Жыл бұрын
Thankyou Very much Clear and lucid Explanation Able to understand easily..😊
@kubraoztiryaki5876 Жыл бұрын
the best video i've ever watched about peterson's solution. i think you used feynman technique in a good way :)
@darshilvshah3 жыл бұрын
The explanation is simply fabulous
@srisangeeth4131 Жыл бұрын
Most clear explanation of Peterson solution ,Thanks for the video👍👍
@sameensultana17372 жыл бұрын
The topics are explained so well.
@shashankh32 жыл бұрын
the explanation!!! truly amazing
@prakhar266 Жыл бұрын
this was the best video on Peerson's Solution. Thanks man
@meghanareddy21973 жыл бұрын
So well explained 👏👏
@wizardop2100 Жыл бұрын
Best explanation ❤. Thank you sir
@TamilazhaganS-x7v Жыл бұрын
Very much satisfied with the answer. Thanks for the flawless explanation.
@Anuparna_Gangopadhyay11 ай бұрын
Your explanation is very good sir❤ & it's very much helpful
@sakshisomani75582 жыл бұрын
Your teaching is next level
@rohitkandula8493 Жыл бұрын
💫💫✨✨Better explnation than our college🔥🔥🔥🔥🔥🔥
@rayvinlai72682 жыл бұрын
Thanks,the explanation of semicolon after while helps me a lot
@mich19708 ай бұрын
This is so well made, ty so much. I understood it perfectly
@wendymcdonald7351 Жыл бұрын
Thank you for the OS save! Could not understand this via the textbook.
@AbhishekRaj-on3xi Жыл бұрын
Thank you Neso Academy for the amazing explanation ❤️
@tanvirhasanmonir16273 жыл бұрын
Very well explanation, easy to understand
@Haleemasultan1Күн бұрын
loved the explanation .
@learning_new Жыл бұрын
Well explanation sir... really you are God gifted one❤️
@taniyabhagat4315 Жыл бұрын
bestest explanation ever on youtube🤩
@rohitkandula8493 Жыл бұрын
From 12:42 watch for detail explanation ~~~🫶🔥🔥
@datanerden105728 күн бұрын
Great video! But there is a mistake in the example of the solution. In the while loop, it says turn == [i], but it should be turn == i. The same for process i, where it should be turn == j, not turn == [j].
@twoPointers1232 ай бұрын
maturity when you realise it is not humble just pretend to be humble 💀💀💀💀💀💀💀💀💀💀💀💀💀💀🥲🥲🥲🥲🥲🥲🥲🥲🥲🥲
@swadheenta.957VBTS8 ай бұрын
you are amazing sir really . thank you soo much. you deserve to be honoured by best teacher of india. i really want to recommend for this honour . thank you 💜💜
@SkyV778 ай бұрын
@iovewhalien2191 Жыл бұрын
thank you so much for this video, I could not understand my textbook at all. you explained this so clearly, I understood it right away!
@rumiNITPatna2 ай бұрын
thank u so much for such a wonderful explanation.
@msatyabhaskarasrinivasacha58745 ай бұрын
Neso academy zindabad....long live neso academy🎉🎉🎉
@cloudjumper725Ай бұрын
The problem I can see with this is that it is uses critical section to solve cs problem itself. By defenition: cs - segment of code, which is present in every process, in which the process may be changing data stored in shared memory. turn variable is shared, so, by defenition it is a critical section and executing them concurently leads to race condition but it does not affect it because value is assigned anyway so one of the procesess will enter and pass execution to the next one after exiting cs
@CodeMode9313 Жыл бұрын
its the best explaination ...to the exceution ..thank u so much
@arthiannamalla50283 жыл бұрын
I was literally waiting for this....thank you so much
@elijahparker1789 Жыл бұрын
Thank you so much for this video. It's amazing how bad college professors can be at explaining something
@yashraikwar54128 ай бұрын
Nicely explained 💯🙏🏻❤️
@kavyakavya7258 Жыл бұрын
Really awesome class thank you so much sir for this good class 🙏😊
@paragggoyal15522 ай бұрын
i cried during the video, it should have required 5 minutes not 20 minutes. sorry this might not be the popular opinion but it is true for me. also, telling the process vs telling the proof are completely different things.
@zishuning Жыл бұрын
Very clear, thank u
@reenaantony4984 Жыл бұрын
Thank you ❤ for the beautiful lecture
@sreegeeta5897Ай бұрын
thanks for the explanation
@ShravanthiK-wj3vb3 ай бұрын
I'm hving exm after 3hours I'm seeing urs i grt understood
@장현정-x8f7 ай бұрын
Thank you for making me understand ! Even in Korea, I'm watching this ~~ ;)
@sanjuvikasini1598 Жыл бұрын
Thank you so much for the informative video!
@btcdivine8 ай бұрын
Excellent explanation
@dinushachathuranga7657 Жыл бұрын
Thanks a lot for the clear explanation
@manthankhandale239 ай бұрын
Well Explained. Thanks a lot!
@danielleananga774311 ай бұрын
you guys are life savers😭😭
@iosifpuha61148 ай бұрын
Neso Academy: a name, a guarantee
@peterlearnsCS8 ай бұрын
Thank you, well-explained! Be humble! 😅
@lydiaarabi4811 Жыл бұрын
tré tré bonne explication😍😍
@kautukraj2 жыл бұрын
Very helpful, thank you.
@divyaagarwal30912 жыл бұрын
Awesome Explanation
@fiona26783 жыл бұрын
Awesome explanation sir.
@anaranyabose2 жыл бұрын
Best explanation than the book 😍
@michelecorc2 жыл бұрын
omg finally i understand, thx neso
@laluyadav1828 Жыл бұрын
Really helpful thanks bro
@saurabhbhargava62902 жыл бұрын
"flag(j/I)" is sufficient. " turn == " is redundant. Also both processes can get stuck at while if both flags are true which can happen when both processes execute simultaneously. It works only when P1 and P2 are in queue.
@sameermeshram30623 жыл бұрын
Sir upload the video of control system
@l6e6i6n2 жыл бұрын
when Pi writes its flag value it is possible that Pj could also be attempting to read from that value in that instant of execution if Pi's write is not atomic then could'nt this cause another race condition on Pi's flag value such that Pj reads a half written/corrupt value
@thongtranlequoc688 Жыл бұрын
I prefer "interested" instead of "flag"
@bpravalika-29243 жыл бұрын
amazing explanation sir
@nojoodothmanal-ghamdi10263 жыл бұрын
OMG I understood it! Thank you!
@ankushladani4962 жыл бұрын
Awesome explaination..
@muhidshaikh64462 жыл бұрын
well explained👍👍👍
@Asim_Usama2 жыл бұрын
JazakAllah😇
@nileshtiwari74992 жыл бұрын
awesome explanation !!
@divyaagarwal30912 жыл бұрын
Thankyou so much sir
@Hutero Жыл бұрын
holy this is amazing, THANKS ALOT
@siddiquabegum-l2v Жыл бұрын
tq soooooooooooooooooooooooooooooooooooooooooooooooooooo much you helped me lot
@pawloaspaja2892 жыл бұрын
Thank you so much. Well explained.
@wassup1022 жыл бұрын
Thank you sir
@ShmuelIntayeb9 ай бұрын
but how can i know who is the last one to modify the turn variable? (who will be the first one to enter the critical section) does the processor just choose one of them randomly?
@कशिशदीक्षित7 ай бұрын
Thankyou so much...
@ankursharma8973 Жыл бұрын
my teacher took 4 hours of lectures and i didn't get crap. she must watch this video
@chitradey3708 Жыл бұрын
Thanks ❤❤
@stockoverflowrecursive Жыл бұрын
I want to ask that how can you make sure the updation of variable flag[] and turn is synchronized? If they are not been synchronized, this solution doesn't work right? Anyone can explain this?
@ajaykumarmodugu91553 жыл бұрын
Thank you very much
@ahmetkarakartal9563 Жыл бұрын
Allah sizden razı olsun
@ninjanape2 жыл бұрын
beautiful, thank you!
@MinakshiBiradar-m7s Жыл бұрын
Just amazing one
@__.solitary Жыл бұрын
Thanks ❣️
@diwang45723 жыл бұрын
Thank you sir!!
@dianafarhat9479 Жыл бұрын
Can you please explain why the solution doesn't work on modern computer architectures?
@AlanSchooll Жыл бұрын
This algorithm is strange, providing the solution that shared resources cannot access by more then one process at a time, based on variables that are shared and accessed by both processes at the same time, variables such as flag and turn.