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!
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.
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
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
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.
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?
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?
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)
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?
+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.
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!
Yo Bach! Love your work!
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.
Thanks and Welcome to the channel.
Excellent! Thank you for the video and it is easy to understand this structure.
Good explanation. Thanks!
Awesome explaination !! Must watch
Thank you so much. You've improved the grade I'm going to get on my exam
excellent explanation of the concepts. exactly what I was looking for in preparation of my tute :)
thanks for your appreciations
welcome to the channel.
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
best video i have seen in this topic ,thanksssss
great video, explain things in a progressive manner and make the problem very clear.
Thanks for your application
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
Your explanation is so great. So clear. Keep up the good work!
Thnx for appreciating
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.
i dunno how to thank u
thank u very much sir u made my day👍
Thanks
i glad it was helpful for you.
Excellent Explanation!
+Waqar Arshad Welcome to the channel.
Thank you! Amazing and clear explanation
Thanks dear :-)
Thank you man. It makes so much more sense now! :)
+Sanchit Gupta Thanks
Welcome to the channel.
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.
someone always has to tear down good work ...
Really good one dude.
Good one. Thanks
Thank you for help!
you are welcome.
Makes sense, thank you.
You are welcome. :-)
If first reader lock resources and doesn't close it, how other readers can read?
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?
Yes that can be resolved with priority assignment
Hello,
Can you please do a video explaining the code for this problem?
Thank you for this video and for the clear explanation.
+Yousra M Readers Writers Problem Solution
ruclips.net/video/J60NK9F-c7A/видео.html
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?
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)
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?
Why do we open a lock for writers if there is one reader?
Thanx Bro... :-)
can you explain the final code line by line
+parakh agarwal ruclips.net/video/J60NK9F-c7A/видео.html
would it be Ok if i make "readers" atomic?
You can make them atomic but this solution will not be efficient bcoz you are allowing only one reader to read.
you didn't explain it properly like the sol to consumer producer one!
+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.
+HowTo ok
+parakh agarwal Solution to Readers Writers problem
ruclips.net/video/J60NK9F-c7A/видео.html
Nothing is clear.sorry.