Reader - Writer Problem : Classical Problems on Process Synchronization

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 53

  • @johannsebastianbach3411
    @johannsebastianbach3411 5 років тому +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!

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

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

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

    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

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

    Good explanation. Thanks!

  • @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.

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

    Awesome explaination !! Must watch

  • @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.

  • @dp-mason
    @dp-mason 5 років тому

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

  • @alexyu2851
    @alexyu2851 7 років тому

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

  • @peimanfarshbaf7522
    @peimanfarshbaf7522 4 роки тому

    best video i have seen in this topic ,thanksssss

  • @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.

  • @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

  • @inyoungcho6610
    @inyoungcho6610 8 років тому

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

  • @DonaldFranciszekTusk
    @DonaldFranciszekTusk 4 роки тому

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

  • @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
      ua-cam.com/video/J60NK9F-c7A/v-deo.html

  • @pranaytanniru7764
    @pranaytanniru7764 7 років тому

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

  • @waqararshad27
    @waqararshad27 8 років тому

    Excellent Explanation!

  • @FracsoMehdi
    @FracsoMehdi 6 років тому +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

  • @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 7 років тому

      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?

  • @sanchitgupta157
    @sanchitgupta157 8 років тому

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

    • @HowTomakeitdone
      @HowTomakeitdone  8 років тому

      +Sanchit Gupta Thanks
      Welcome to the channel.

  • @vincentcrescente6548
    @vincentcrescente6548 7 років тому

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

  • @ale7sani
    @ale7sani 7 років тому

    Thank you! Amazing and clear explanation

  • @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.

  • @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 років тому

    can you explain the final code line by line

    • @HowTomakeitdone
      @HowTomakeitdone  8 років тому

      +parakh agarwal ua-cam.com/video/J60NK9F-c7A/v-deo.html

  • @yyliu0623
    @yyliu0623 7 років тому

    Really good one dude.

  • @ThefamousMrcroissant
    @ThefamousMrcroissant 7 років тому

    Makes sense, thank you.

  • @mustafaturk6870
    @mustafaturk6870 7 років тому

    Good one. Thanks

  • @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
      ua-cam.com/video/J60NK9F-c7A/v-deo.html

  • @ashishkumar678
    @ashishkumar678 8 років тому

    Thanx Bro... :-)

  • @MrPradeepchannagiri
    @MrPradeepchannagiri 7 років тому +5

    Nothing is clear.sorry.