Peterson’s Solution

Поділитися
Вставка
  • Опубліковано 8 сер 2024
  • Operating System: Peterson’s Solution
    Topics discussed:
    1. Peterson’s solution to The Critical-Section Problem.
    Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
    Follow me on Instagram: @jaiz_itech (bit.ly/2M3xyOa)
    Contribute: www.nesoacademy.org/donate
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacademy.org/recommend...
    Website ► www.nesoacademy.org/
    Forum ► forum.nesoacademy.org/
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #OperatingSystemByNeso #OperatingSystem #ProcessSynchronization #PetersonsSolution

КОМЕНТАРІ • 165

  • @ishvendra3395
    @ishvendra3395 3 роки тому +326

    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!!

    • @mArjunyadav
      @mArjunyadav 2 роки тому +2

      what is the course for? Can u share it?

    • @srishylesh2935
      @srishylesh2935 2 роки тому +2

      yes. same qn

    • @anonymousguy9263
      @anonymousguy9263 2 роки тому +3

      @@mArjunyadav doesn't matter
      Neso academy has far good content for a free cost..
      We like everything free if it is available anywhere..

    • @ChaitanyaRacharla
      @ChaitanyaRacharla 2 роки тому +4

      @@anonymousguy9263 Lol no bro it ain't free, you gotta pay for the chapters further

    • @anonymousguy9263
      @anonymousguy9263 2 роки тому +4

      @@ChaitanyaRacharla yes ı know and ı paıd for ıt..
      It ıs very nominal..

  • @anirudh7137
    @anirudh7137 2 роки тому +93

    Hands down the best explanation of Peter's Solution. The concept of 'humbly giving the other turn' made it much more clear.

  • @TheRkmutube
    @TheRkmutube 2 роки тому +28

    Your videos are amazingly simple and easy to understand and most importantly your humble variable 😀 first of its own kind man!!

  • @sayonislam7222
    @sayonislam7222 2 роки тому +33

    Peterson's solution be like - "Pehle aap jaiye, nhi nhi pehle aap, " 😅😂

  • @chandrachurmukherjeejucse5816
    @chandrachurmukherjeejucse5816 11 місяців тому +18

    The best lecture on Peterson's solution that I have watched till now 🔥

  • @mostafatarekadam8861
    @mostafatarekadam8861 Рік тому +7

    Thank you I understand it clearly now, the key is to draw the two processes and trace the instructions

  • @DroopNasty
    @DroopNasty 2 роки тому +3

    These videos are excellent. I like to watch these first and then glide through the textbook after.

  • @AyaNori
    @AyaNori Рік тому +12

    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!!

  • @iovewhalien2191
    @iovewhalien2191 Рік тому +1

    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!

  • @begumonal
    @begumonal Рік тому +3

    well explained, made me pass my exam. thank you so much for the great content.

  • @avantikabisht9848
    @avantikabisht9848 Рік тому +1

    best tutorials..loved watching them...extremely helpful.

  • @darshilvshah
    @darshilvshah 3 роки тому +5

    The explanation is simply fabulous

  • @akshatsrivastava2007
    @akshatsrivastava2007 Рік тому +1

    Thankyou Very much
    Clear and lucid Explanation
    Able to understand easily..😊

  • @tanvirhasanmonir1627
    @tanvirhasanmonir1627 2 роки тому +4

    Very well explanation, easy to understand

  • @AbhishekRaj-on3xi
    @AbhishekRaj-on3xi Рік тому +1

    Thank you Neso Academy for the amazing explanation ❤️

  • @GTBBwastaken
    @GTBBwastaken 2 роки тому +9

    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.

  • @sameensultana1737
    @sameensultana1737 2 роки тому +3

    The topics are explained so well.

  • @SonuGupta-wj6dg
    @SonuGupta-wj6dg 3 роки тому +13

    it's 3:30 am . I've exam at 11 and this video can't be more awesome than it is😎

    • @radaefilms3150
      @radaefilms3150 2 роки тому +3

      I'm in the same position dude

    • @SonuGupta-wj6dg
      @SonuGupta-wj6dg 2 роки тому

      @@radaefilms3150 hold on 😂

    • @ariz9381
      @ariz9381 2 роки тому +1

      @@SonuGupta-wj6dg lol guess who join the squad :"")

    • @heutras
      @heutras 2 роки тому

      bois you forgot about me

    • @radaefilms3150
      @radaefilms3150 2 роки тому

      @@heutras 😂😂😂 na were in this together how'd ur exam go

  • @meghanareddy2197
    @meghanareddy2197 3 роки тому +7

    So well explained 👏👏

  • @kavyakavya7258
    @kavyakavya7258 Рік тому

    Really awesome class thank you so much sir for this good class 🙏😊

  • @user-ez6tt2vh3m
    @user-ez6tt2vh3m 9 місяців тому

    Very much satisfied with the answer. Thanks for the flawless explanation.

  • @arthiannamalla5028
    @arthiannamalla5028 3 роки тому +1

    I was literally waiting for this....thank you so much

  • @sanjuvikasini1598
    @sanjuvikasini1598 11 місяців тому

    Thank you so much for the informative video!

  • @kubraoztiryaki5876
    @kubraoztiryaki5876 Рік тому +2

    the best video i've ever watched about peterson's solution. i think you used feynman technique in a good way :)

  • @shashankh3
    @shashankh3 2 роки тому +3

    the explanation!!! truly amazing

  • @wendymcdonald7351
    @wendymcdonald7351 9 місяців тому

    Thank you for the OS save! Could not understand this via the textbook.

  • @wizardop2100
    @wizardop2100 Рік тому +1

    Best explanation ❤. Thank you sir

  • @mich1970
    @mich1970 3 місяці тому

    This is so well made, ty so much. I understood it perfectly

  • @rayvinlai7268
    @rayvinlai7268 Рік тому +1

    Thanks,the explanation of semicolon after while helps me a lot

  • @srisangeeth4131
    @srisangeeth4131 10 місяців тому

    Most clear explanation of Peterson solution ,Thanks for the video👍👍

  • @Anuparna_Gangopadhyay
    @Anuparna_Gangopadhyay 6 місяців тому

    Your explanation is very good sir❤ & it's very much helpful

  • @CodeMode9313
    @CodeMode9313 10 місяців тому

    its the best explaination ...to the exceution ..thank u so much

  • @dinushachathuranga7657
    @dinushachathuranga7657 10 місяців тому

    Thanks a lot for the clear explanation

  • @fiona2678
    @fiona2678 2 роки тому

    Awesome explanation sir.

  • @reenaantony4984
    @reenaantony4984 10 місяців тому

    Thank you ❤ for the beautiful lecture

  • @kautukraj
    @kautukraj 2 роки тому +1

    Very helpful, thank you.

  • @zishuning
    @zishuning 10 місяців тому +1

    Very clear, thank u

  • @learning_new
    @learning_new 9 місяців тому

    Well explanation sir... really you are God gifted one❤️

  • @franklinmaradiaga2401
    @franklinmaradiaga2401 2 дні тому

    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!

  • @yashraikwar5412
    @yashraikwar5412 3 місяці тому

    Nicely explained 💯🙏🏻❤️

  • @btcdivine
    @btcdivine 3 місяці тому

    Excellent explanation

  • @pawloaspaja289
    @pawloaspaja289 2 роки тому

    Thank you so much. Well explained.

  • @manthankhandale23
    @manthankhandale23 4 місяці тому

    Well Explained. Thanks a lot!

  • @daipayanhore3726
    @daipayanhore3726 Рік тому

    Thank you so much

  • @bpravalika-2924
    @bpravalika-2924 3 роки тому

    amazing explanation sir

  • @kashishdixit2671
    @kashishdixit2671 2 місяці тому

    Thankyou so much...

  • @elijahparker1789
    @elijahparker1789 Рік тому +2

    Thank you so much for this video. It's amazing how bad college professors can be at explaining something

  • @ajaykumarmodugu9155
    @ajaykumarmodugu9155 3 роки тому

    Thank you very much

  • @sakshisomani7558
    @sakshisomani7558 2 роки тому

    Your teaching is next level

  • @nileshtiwari7499
    @nileshtiwari7499 2 роки тому

    awesome explanation !!

  • @divyaagarwal3091
    @divyaagarwal3091 Рік тому

    Thankyou so much sir

  • @prakhar266
    @prakhar266 Рік тому

    this was the best video on Peerson's Solution. Thanks man

  • @nishithagalla2211
    @nishithagalla2211 2 роки тому

    Thank you very much 🙏

  • @user-ql7tr2dn5b
    @user-ql7tr2dn5b 11 місяців тому

    tq soooooooooooooooooooooooooooooooooooooooooooooooooooo much you helped me lot

  • @laluyadav1828
    @laluyadav1828 Рік тому

    Really helpful thanks bro

  • @diwang4572
    @diwang4572 2 роки тому

    Thank you sir!!

  • @divyaagarwal3091
    @divyaagarwal3091 Рік тому

    Awesome Explanation

  • @lydiaarabi4811
    @lydiaarabi4811 11 місяців тому

    tré tré bonne explication😍😍

  • @Asim_Usama
    @Asim_Usama 2 роки тому +1

    JazakAllah😇

  • @wassup102
    @wassup102 Рік тому

    Thank you sir

  • @sameermeshram3062
    @sameermeshram3062 3 роки тому +1

    Sir upload the video of control system

  • @ankushladani496
    @ankushladani496 2 роки тому

    Awesome explaination..

  • @ninjanape
    @ninjanape Рік тому

    beautiful, thank you!

  • @sathvikreddy4807
    @sathvikreddy4807 Рік тому

    thanks

  • @tomdapchai
    @tomdapchai 3 місяці тому

    tks alot

  • @konscomputertutorials7473
    @konscomputertutorials7473 2 роки тому

    what a clear explanation

  • @__.solitary
    @__.solitary Рік тому

    Thanks ❣️

  • @samerbehery7799
    @samerbehery7799 2 роки тому

    Thank You

  • @chitradey3708
    @chitradey3708 9 місяців тому

    Thanks ❤❤

  • @rashidibrahim979
    @rashidibrahim979 Рік тому

    Thank you!

  • @rohitkandula8493
    @rohitkandula8493 9 місяців тому

    💫💫✨✨Better explnation than our college🔥🔥🔥🔥🔥🔥

  • @muhidshaikh6446
    @muhidshaikh6446 Рік тому

    well explained👍👍👍

  • @aravindv936
    @aravindv936 3 роки тому +1

    Will neso academy upload electrical machines topic?

  • @swadheenta.9521VBTS
    @swadheenta.9521VBTS 3 місяці тому

    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
    💜💜

  • @syedhabeebuddin101
    @syedhabeebuddin101 3 роки тому +1

    thanks man !

  • @ShmuelIntayeb
    @ShmuelIntayeb 4 місяці тому

    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?

  • @Hutero
    @Hutero Рік тому

    holy this is amazing, THANKS ALOT

  • @anantadebnath1831
    @anantadebnath1831 2 роки тому

    well explained !

  • @ahmetkarakartal9563
    @ahmetkarakartal9563 Рік тому

    Allah sizden razı olsun

  • @michelecorc
    @michelecorc Рік тому +1

    omg finally i understand, thx neso

  • @user-vn3qx9tt4u
    @user-vn3qx9tt4u 2 місяці тому

    Thank you for making me understand ! Even in Korea, I'm watching this ~~ ;)

  • @danielleananga7743
    @danielleananga7743 7 місяців тому

    you guys are life savers😭😭

  • @chandramouli297
    @chandramouli297 Місяць тому

    Wonder explanation...

  • @anaranyabose
    @anaranyabose 2 роки тому

    Best explanation than the book 😍

  • @user-kh7yw7ux7o
    @user-kh7yw7ux7o Рік тому

    thanks a lot ❤

  • @l6e6i6n
    @l6e6i6n 2 роки тому +2

    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

  • @user-vm7ve9oi5s
    @user-vm7ve9oi5s Рік тому

    Just amazing one

  • @ahmetkarakartal9563
    @ahmetkarakartal9563 Рік тому

    thank you so muchhhhh

  • @nojoodothmanal-ghamdi1026
    @nojoodothmanal-ghamdi1026 2 роки тому +3

    OMG I understood it! Thank you!

  • @dianafarhat9479
    @dianafarhat9479 Рік тому

    Can you please explain why the solution doesn't work on modern computer architectures?

  • @thongtranlequoc688
    @thongtranlequoc688 Рік тому +2

    I prefer "interested" instead of "flag"

  • @bobroccoli1289
    @bobroccoli1289 8 місяців тому

    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?

  • @peterlearnsCS
    @peterlearnsCS 3 місяці тому

    Thank you, well-explained!
    Be humble! 😅

  • @bumblebore_13
    @bumblebore_13 Рік тому

    Mind blowing!!!!

  • @taniyabhagat4315
    @taniyabhagat4315 Рік тому

    bestest explanation ever on youtube🤩

  • @rohitkandula8493
    @rohitkandula8493 9 місяців тому

    From 12:42 watch for detail explanation ~~~🫶🔥🔥

  • @vamshireddy5370
    @vamshireddy5370 3 роки тому

    Superb

  • @nehasv7913
    @nehasv7913 2 роки тому

    really awesomeee...

  • @madhavarao1840
    @madhavarao1840 6 місяців тому

    Is it use ful Msc CS students

  • @lmkne3124
    @lmkne3124 2 роки тому

    so great