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
our teacher recommends ur channel as she herself learns here lmaooo
😂😂😂
Because it is recommended in VTU syllabus.. You people are unbelievable.. No gratitude towards anyone
Explanation level is outstanding. It makes too easy to grasp...
i watched the past 6 videos of process synchronization and theyre amazing videos thank you!
Your teaching method is really good.keep on going sir.😊
Thanks
A very good way of explanation. Keep it up.
You deserve an award for doing this 🎉🎉
thank you so so much for saving me at this last moment
great presentation and slides! love the content
Thank you for the excellent content!
thanks you explained an important topic in a easy manner
Thanks for saving my semester exam 🙏🙏💙💙
That's what i've been looking for!!!! just perfect!!
great content as always
u are a life saver . thank u so much sir
Thank you was really helpful
Well explained !!
Bruh your videos are really help full
Plzz do upload remaining topics like
*The reader -writer problem
*The Dining philosophers problems
#monitors etc🙏
I think this is a version of the reader-writer problem
Thank u so much it was very helpful
appreciate ur efforts
Awesome explaination ✌✌
Amazing explanation 🥹
Thanks so much
This is basic discussion which is good, please can you explain the scenario where producer and consumer can work in paralell.
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..
Just make 2 thread functions for each producer and consumer and then run both the threads and join it with main thread
Thank you!
Great videos 💯
Brooo u r a life changer 😘
This was basically my OS project.
One of the best explanation. Thank you very much
Thanks sir❤❤
Thxxx sirr
Fantastic
Nice one
precise
Why performing signal(mutex) before signal(full)? If a context switch happens in between, won't it cause problems?
Why are they using mutexes and semaphores in the first place?
yeah , empty should be called before and then the lock must be released .
can you please upload the remaining topics like deadlocks :)
I don't think you really need mutex or semaphores if you only have one producer for one consumer...
I wonder if semaphores can solve this problem
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?
the language used for the implementation of the solution is C
1st comment good lecture
Bhai Tu bhagwaan hai bhagwaan!!!
🙏🙏🙏
this is called teaching....
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?????
wawwwaaaaa
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!
😄
your presentations are great keep it up!!
Too many semaphores ! Can we do with just 1 ?
i agree, you should only need a mutex lock. You can just maintain a count of elements in the buffer.
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.
I haven't listened anything before
I LOVE YOU HABIBI
i dont think this is the correct implementation