Тёмный

The Bounded Buffer Problem 

Neso Academy
Подписаться 2,6 млн
Просмотров 270 тыс.
50% 1

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

Опубликовано:

 

8 июл 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 61   
@harekrishna4584
@harekrishna4584 Год назад
our teacher recommends ur channel as she herself learns here lmaooo
@Lyricverse116
@Lyricverse116 7 месяцев назад
😂😂😂
@yashaswininag3783
@yashaswininag3783 7 месяцев назад
Because it is recommended in VTU syllabus.. You people are unbelievable.. No gratitude towards anyone
@ChandanKSwain
@ChandanKSwain Год назад
Explanation level is outstanding. It makes too easy to grasp...
@aquadap219
@aquadap219 7 месяцев назад
i watched the past 6 videos of process synchronization and theyre amazing videos thank you!
@mamathaav4627
@mamathaav4627 Год назад
Your teaching method is really good.keep on going sir.😊
@DrJALAGHARI
@DrJALAGHARI 3 года назад
A very good way of explanation. Keep it up.
@venkateshpatil7109
@venkateshpatil7109 4 месяца назад
Thanks
@TheEkimjeet
@TheEkimjeet 2 года назад
great presentation and slides! love the content
@ganesh_hulagur
@ganesh_hulagur 3 года назад
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
@adelgado0723
@adelgado0723 2 года назад
Thank you for the excellent content!
@ghaziabadw3494
@ghaziabadw3494 Год назад
thank you so so much for saving me at this last moment
@maanyamuthamma3577
@maanyamuthamma3577 4 месяца назад
You deserve an award for doing this 🎉🎉
@zuhal6900
@zuhal6900 5 месяцев назад
That's what i've been looking for!!!! just perfect!!
@rupambiswas953
@rupambiswas953 Год назад
Thanks for saving my semester exam 🙏🙏💙💙
@PythonisLove
@PythonisLove 2 года назад
great content as always
@user-ytuser
@user-ytuser Год назад
thanks you explained an important topic in a easy manner
@habibaadawi22
@habibaadawi22 6 месяцев назад
u are a life saver . thank u so much sir
@kenzakhelkhal7931
@kenzakhelkhal7931 Год назад
Thank u so much it was very helpful appreciate ur efforts
@mrymzrzr4741
@mrymzrzr4741 2 года назад
Thank you was really helpful
@darshil-oh2le
@darshil-oh2le 8 месяцев назад
Awesome explaination ✌✌
@Lyricverse116
@Lyricverse116 7 месяцев назад
Great videos 💯
@advithgowda620
@advithgowda620 Год назад
Brooo u r a life changer 😘
@jameysiddiqui6910
@jameysiddiqui6910 2 года назад
This is basic discussion which is good, please can you explain the scenario where producer and consumer can work in paralell.
@kayakMike1000
@kayakMike1000 Год назад
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 Год назад
Just make 2 thread functions for each producer and consumer and then run both the threads and join it with main thread
@arvinhipolito157
@arvinhipolito157 2 года назад
One of the best explanation. Thank you very much
@ith3r7
@ith3r7 Месяц назад
Well explained !!
@tasnimsart3430
@tasnimsart3430 2 года назад
Thanks so much
@snehasharma3041
@snehasharma3041 7 месяцев назад
Amazing explanation 🥹
@aryansharma9933
@aryansharma9933 2 года назад
Thank you!
@putrescentvermin
@putrescentvermin 2 года назад
This was basically my OS project.
@Jamie-fj8dn
@Jamie-fj8dn Год назад
Thxxx sirr
@ayahamad5931
@ayahamad5931 7 месяцев назад
Thanks sir❤❤
@sanathkumarshenoy9955
@sanathkumarshenoy9955 2 года назад
Nice one
@rasikannanl3476
@rasikannanl3476 Год назад
Fantastic
@farahmohamed2104
@farahmohamed2104 8 месяцев назад
precise
@liorlivyatan
@liorlivyatan 2 года назад
Why performing signal(mutex) before signal(full)? If a context switch happens in between, won't it cause problems?
@kayakMike1000
@kayakMike1000 Год назад
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 года назад
can you please upload the remaining topics like deadlocks :)
@kayakMike1000
@kayakMike1000 Год назад
I don't think you really need mutex or semaphores if you only have one producer for one consumer...
@marcustam4387
@marcustam4387 Год назад
I wonder if semaphores can solve this problem
@baraaabuasal5626
@baraaabuasal5626 3 года назад
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 3 года назад
the language used for the implementation of the solution is C
@modemharikumar9232
@modemharikumar9232 3 года назад
1st comment good lecture
@FarmanOfficial777
@FarmanOfficial777 2 года назад
this is called teaching....
@adityamishrasc2579
@adityamishrasc2579 Год назад
🙏🙏🙏
@pranavmuthige427
@pranavmuthige427 Год назад
Bhai Tu bhagwaan hai bhagwaan!!!
@hmanmusic3908
@hmanmusic3908 Год назад
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!
@hmanmusic3908
@hmanmusic3908 Год назад
😄
@hmanmusic3908
@hmanmusic3908 Год назад
your presentations are great keep it up!!
@hombdr.pathakkshetri8893
@hombdr.pathakkshetri8893 4 месяца назад
wawwwaaaaa
@johndoe3092
@johndoe3092 3 года назад
Too many semaphores ! Can we do with just 1 ?
@michaelcenzoprano8173
@michaelcenzoprano8173 3 года назад
i agree, you should only need a mutex lock. You can just maintain a count of elements in the buffer.
@brahamaggarwal1800
@brahamaggarwal1800 2 года назад
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 6 месяцев назад
I haven't listened anything before
@sricharan8575
@sricharan8575 11 месяцев назад
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?????
@satioOeinas
@satioOeinas 7 месяцев назад
i dont think this is the correct implementation
@bash541
@bash541 2 года назад
I LOVE YOU HABIBI