The Bounded Buffer Problem

Поделиться
HTML-код
  • Опубликовано: 8 июл 2021
  • Operating System: The Bounded Buffer Problem
    Topics discussed:
    Classic Problems of Synchronization:
    1. The Bounded Buffer Problem.
    2. Solution to the Bounded Buffer Problem using Semaphores.
    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 #BoundedBufferProblem

Комментарии • 61

  • @harekrishna4584
    @harekrishna4584 Год назад +60

    our teacher recommends ur channel as she herself learns here lmaooo

    • @Lyricverse116
      @Lyricverse116 6 месяцев назад +2

      😂😂😂

    • @yashaswininag3783
      @yashaswininag3783 6 месяцев назад +9

      Because it is recommended in VTU syllabus.. You people are unbelievable.. No gratitude towards anyone

  • @ChandanKSwain
    @ChandanKSwain Год назад +21

    Explanation level is outstanding. It makes too easy to grasp...

  • @aquadap219
    @aquadap219 6 месяцев назад +7

    i watched the past 6 videos of process synchronization and theyre amazing videos thank you!

  • @mamathaav4627
    @mamathaav4627 Год назад +8

    Your teaching method is really good.keep on going sir.😊

  • @venkateshpatil7109
    @venkateshpatil7109 3 месяца назад +5

    Thanks

  • @DrJALAGHARI
    @DrJALAGHARI 2 года назад

    A very good way of explanation. Keep it up.

  • @maanyamuthamma3577
    @maanyamuthamma3577 2 месяца назад +2

    You deserve an award for doing this 🎉🎉

  • @ghaziabadw3494
    @ghaziabadw3494 Год назад +2

    thank you so so much for saving me at this last moment

  • @TheEkimjeet
    @TheEkimjeet 2 года назад +6

    great presentation and slides! love the content

  • @adelgado0723
    @adelgado0723 2 года назад

    Thank you for the excellent content!

  • @user-ytuser
    @user-ytuser Год назад

    thanks you explained an important topic in a easy manner

  • @rupambiswas953
    @rupambiswas953 Год назад +7

    Thanks for saving my semester exam 🙏🙏💙💙

  • @zuhal6900
    @zuhal6900 4 месяца назад

    That's what i've been looking for!!!! just perfect!!

  • @PythonisLove
    @PythonisLove 2 года назад

    great content as always

  • @habibaadawi22
    @habibaadawi22 5 месяцев назад +1

    u are a life saver . thank u so much sir

  • @mrymzrzr4741
    @mrymzrzr4741 2 года назад

    Thank you was really helpful

  • @ith3r7
    @ith3r7 24 дня назад

    Well explained !!

  • @ganesh_hulagur
    @ganesh_hulagur 2 года назад +31

    Bruh your videos are really help full
    Plzz do upload remaining topics like
    *The reader -writer problem
    *The Dining philosophers problems
    #monitors etc🙏

    • @adelgado0723
      @adelgado0723 2 года назад

      I think this is a version of the reader-writer problem

  • @kenzakhelkhal7931
    @kenzakhelkhal7931 Год назад

    Thank u so much it was very helpful
    appreciate ur efforts

  • @darshil-oh2le
    @darshil-oh2le 7 месяцев назад

    Awesome explaination ✌✌

  • @snehasharma3041
    @snehasharma3041 6 месяцев назад

    Amazing explanation 🥹

  • @tasnimsart3430
    @tasnimsart3430 2 года назад +1

    Thanks so much

  • @jameysiddiqui6910
    @jameysiddiqui6910 2 года назад +8

    This is basic discussion which is good, please can you explain the scenario where producer and consumer can work in paralell.

    • @kayakMike1000
      @kayakMike1000 Год назад +3

      I don't think you really need semaphores and mutexes for this. The producer and consumer could be operating in parallel through some threading mechanism. Assuming there's only one consumer and one producer, we could have a read pointer "chase" the "writer" pointer. the consumer thread isn't allowed to change anything other than it's own read pointer, and we also assume that if the previous element in the buffer has already been consumed. If the consumer measures the read and write pointers to be identical, then the consumer doesn't use that value untill the write pointer is different. If the read and write pointers are different, the consumer consumes the data, then increments its read pointer to point at the next element in the buffer. Now the producer has a write pointer that will increment if the next element in the buffer is not where the read pointer is pointing to. The idea here is the read pointer always chases the write pointer, you could even do this with a ring buffer... With this scheme, the buffer is "empty" when everything has been read, and the read pointer and write pointer point at the same thing. The buffer is full if the write pointer can't advance because the next pointer is where the read pointer actually is..

    • @j4jeev678
      @j4jeev678 Год назад +1

      Just make 2 thread functions for each producer and consumer and then run both the threads and join it with main thread

  • @aryansharma9933
    @aryansharma9933 Год назад

    Thank you!

  • @Lyricverse116
    @Lyricverse116 6 месяцев назад +1

    Great videos 💯

  • @advithgowda620
    @advithgowda620 Год назад +1

    Brooo u r a life changer 😘

  • @bryannguyen1260
    @bryannguyen1260 Год назад +1

    This was basically my OS project.

  • @arvinhipolito157
    @arvinhipolito157 Год назад

    One of the best explanation. Thank you very much

  • @ayahamad5931
    @ayahamad5931 6 месяцев назад

    Thanks sir❤❤

  • @Jamie-fj8dn
    @Jamie-fj8dn Год назад

    Thxxx sirr

  • @rasikannanl3476
    @rasikannanl3476 Год назад

    Fantastic

  • @sanathkumarshenoy9955
    @sanathkumarshenoy9955 2 года назад

    Nice one

  • @farahmohamed2104
    @farahmohamed2104 6 месяцев назад

    precise

  • @liorlivyatan
    @liorlivyatan Год назад +4

    Why performing signal(mutex) before signal(full)? If a context switch happens in between, won't it cause problems?

    • @kayakMike1000
      @kayakMike1000 Год назад +1

      Why are they using mutexes and semaphores in the first place?

    • @-shultz
      @-shultz Год назад

      yeah , empty should be called before and then the lock must be released .

  • @bellaajaziz7204
    @bellaajaziz7204 2 года назад +3

    can you please upload the remaining topics like deadlocks :)

  • @kayakMike1000
    @kayakMike1000 Год назад +1

    I don't think you really need mutex or semaphores if you only have one producer for one consumer...

  • @marcustam4387
    @marcustam4387 Год назад +1

    I wonder if semaphores can solve this problem

  • @baraaabuasal5626
    @baraaabuasal5626 2 года назад +7

    i am an electrical engineer i dont know anything about cs but i saw the video, i clicked, i am now studying this problem with you and i understand everything. thank you
    but may i ask, what is this programming language?

    • @pranavvenkata475
      @pranavvenkata475 2 года назад +5

      the language used for the implementation of the solution is C

  • @modemharikumar9232
    @modemharikumar9232 2 года назад +9

    1st comment good lecture

  • @pranavmuthige427
    @pranavmuthige427 Год назад +1

    Bhai Tu bhagwaan hai bhagwaan!!!

  • @adityamishrasc2579
    @adityamishrasc2579 Год назад

    🙏🙏🙏

  • @FarmanOfficial777
    @FarmanOfficial777 2 года назад +1

    this is called teaching....

  • @sricharan8575
    @sricharan8575 9 месяцев назад

    how semaphores solve bounded waiting since u said test.and.set.lock cant solve bounded waiting..coz new process may enter critica.sec while old one was preempted so called the unlucky process?????

  • @hombdr.pathakkshetri8893
    @hombdr.pathakkshetri8893 3 месяца назад +1

    wawwwaaaaa

  • @hmanmusic3908
    @hmanmusic3908 Год назад +2

    hi neso academy,
    a copyright thing is happening in our college.
    our college lecuturer is using your content by taking screen shots and using it to teach our classes.
    please raise a compliant and remove him from our college as fast as possible
    thanks in advance!

  • @johndoe3092
    @johndoe3092 2 года назад

    Too many semaphores ! Can we do with just 1 ?

    • @michaelcenzoprano8173
      @michaelcenzoprano8173 2 года назад +1

      i agree, you should only need a mutex lock. You can just maintain a count of elements in the buffer.

    • @brahamaggarwal1800
      @brahamaggarwal1800 2 года назад +3

      The thing is when you are dealing with multiple processes that are sharing data then simple if-else statements fail to synchronize our processes that's why it is necessary to use these many semaphores here.

  • @kswethakumari412
    @kswethakumari412 5 месяцев назад

    I haven't listened anything before

  • @bash541
    @bash541 2 года назад

    I LOVE YOU HABIBI

  • @satioOeinas
    @satioOeinas 6 месяцев назад +1

    i dont think this is the correct implementation