Reader - Writer Problem : Classical Problems on Process Synchronization

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

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

  • @johannsebastianbach3411
    @johannsebastianbach3411 4 года назад +10

    Wow man, this was a great explanation, I wish my textbook had it like this :D Most textbook authors just throw cs jargon at the students just to prove that they are smart, which confuses the students of course. Thank you!

  • @has4tis
    @has4tis 8 лет назад +5

    Excellent explanation. Beautifully done. The way you broken down the concepts and add one solution at a time really helpful for beginners to grasp the concept.

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

    Excellent! Thank you for the video and it is easy to understand this structure.

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

    Good explanation. Thanks!

  • @tushar5426
    @tushar5426 3 года назад

    Awesome explaination !! Must watch

  • @dp-mason
    @dp-mason 4 года назад

    Thank you so much. You've improved the grade I'm going to get on my exam

  • @PaulMiller_Muaddib
    @PaulMiller_Muaddib 8 лет назад +1

    excellent explanation of the concepts. exactly what I was looking for in preparation of my tute :)

    • @HowTomakeitdone
      @HowTomakeitdone  8 лет назад

      thanks for your appreciations
      welcome to the channel.

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

    a side note : according to the textbook, the video covered is refers to the "first" readers-writers problems. There is a "second" one not covered in the video

  • @peimanfarshbaf7522
    @peimanfarshbaf7522 4 года назад

    best video i have seen in this topic ,thanksssss

  • @alexyu2851
    @alexyu2851 7 лет назад

    great video, explain things in a progressive manner and make the problem very clear.

  • @FracsoMehdi
    @FracsoMehdi 5 лет назад +1

    Recommended video, must be the first video for the reader writer problem keywords instead of that guy that combines between English and Hindi at the same time

  • @inyoungcho6610
    @inyoungcho6610 7 лет назад

    Your explanation is so great. So clear. Keep up the good work!

  • @austcse8180
    @austcse8180 8 лет назад +1

    Well explained. but it will be a great help If demo code is provided as I am very new to this. Cant figure out the right syntax to write a code for wait(wrmutex) and signal(wrmutex) and the other signals.

  • @pranaytanniru7764
    @pranaytanniru7764 7 лет назад

    i dunno how to thank u
    thank u very much sir u made my day👍

  • @waqararshad27
    @waqararshad27 8 лет назад

    Excellent Explanation!

  • @ale7sani
    @ale7sani 6 лет назад

    Thank you! Amazing and clear explanation

  • @sanchitgupta157
    @sanchitgupta157 8 лет назад

    Thank you man. It makes so much more sense now! :)

  • @jayantbh
    @jayantbh 8 лет назад +10

    This is a fine video, but damn this makes me fall asleep in seconds. Even 1.5x feels slightly slow. Again, apart from this, the video is well made.

  • @yyliu0623
    @yyliu0623 6 лет назад

    Really good one dude.

  • @mustafaturk6870
    @mustafaturk6870 6 лет назад

    Good one. Thanks

  • @realmoismail
    @realmoismail 7 лет назад

    Thank you for help!

  • @ThefamousMrcroissant
    @ThefamousMrcroissant 6 лет назад

    Makes sense, thank you.

  • @DonaldFranciszekTusk
    @DonaldFranciszekTusk 4 года назад

    If first reader lock resources and doesn't close it, how other readers can read?

  • @ryanr9193
    @ryanr9193 8 лет назад

    Great explanation, have a much better understanding of this now. For the last solution, is there any way to ensure that the writer doesn't end up starving? That is, that it gets to write even though a large number of readers may keep coming up?

    • @HowTomakeitdone
      @HowTomakeitdone  8 лет назад

      Yes that can be resolved with priority assignment

  • @yousram8890
    @yousram8890 8 лет назад

    Hello,
    Can you please do a video explaining the code for this problem?
    Thank you for this video and for the clear explanation.

    • @HowTomakeitdone
      @HowTomakeitdone  8 лет назад

      +Yousra M Readers Writers Problem Solution
      ruclips.net/video/J60NK9F-c7A/видео.html

  • @hsli9003tube
    @hsli9003tube 8 лет назад

    Great explanation. I almost understood it but have one question though :) When count == 1 then Reader 1 is calling down(wrmutex) so it will be blocked if Writer is already writing since wrmutex will be negative then. But at that point if Reader 2 comes in how will it be blocked too since it is not calling the down the wrmutex?

    • @HowTomakeitdone
      @HowTomakeitdone  8 лет назад

      if Reader 1 is blocked
      wait(mutex)
      reader++
      if(reader==1)
      wait(wrmutex)
      .....
      signal(mutex)
      Reader 1 blocked in wait(wrmutex) statement. Now if another reader will come that reader won't able to enter in following block because reader 1 has not executed completely.
      wait(mutex)
      .
      .
      .
      signal(mutex)

    • @nikolakarakas3019
      @nikolakarakas3019 6 лет назад

      Hello I have also a qustion. In first reader varieable reader++ will be 1. But when second reader comes it will not read anything because reader++ = 2. So how then 2 readers could read both at the time? 2nd reader needs to wait 1st reader to finish reading to decremen variable reader?

  • @vincentcrescente6548
    @vincentcrescente6548 6 лет назад

    Why do we open a lock for writers if there is one reader?

  • @ashishkumar678
    @ashishkumar678 8 лет назад

    Thanx Bro... :-)

  • @parakhagarwal1737
    @parakhagarwal1737 8 лет назад

    can you explain the final code line by line

    • @HowTomakeitdone
      @HowTomakeitdone  8 лет назад

      +parakh agarwal ruclips.net/video/J60NK9F-c7A/видео.html

  • @scorch2386
    @scorch2386 7 лет назад

    would it be Ok if i make "readers" atomic?

    • @HowTomakeitdone
      @HowTomakeitdone  7 лет назад

      You can make them atomic but this solution will not be efficient bcoz you are allowing only one reader to read.

  • @parakhagarwal1737
    @parakhagarwal1737 8 лет назад

    you didn't explain it properly like the sol to consumer producer one!

    • @HowTomakeitdone
      @HowTomakeitdone  8 лет назад

      +parakh agarwal Sorry for that Actually this video is only to provide basics of reader writer problem.
      For solution another video will be uploaded very soon.

    • @parakhagarwal1737
      @parakhagarwal1737 8 лет назад

      +HowTo ok

    • @HowTomakeitdone
      @HowTomakeitdone  8 лет назад

      +parakh agarwal Solution to Readers Writers problem
      ruclips.net/video/J60NK9F-c7A/видео.html

  • @MrPradeepchannagiri
    @MrPradeepchannagiri 7 лет назад +5

    Nothing is clear.sorry.