No video

The Bounded Buffer Problem

  Рет қаралды 274,327

Neso Academy

Neso Academy

Күн бұрын

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.nesoacadem...
Memberships: bit.ly/2U7YSPI
Books: www.nesoacadem...
Website ► www.nesoacadem...
Forum ► forum.nesoacad...
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#OperatingSystemByNeso #OperatingSystem #ProcessSynchronization #BoundedBufferProblem

Пікірлер: 61
@harekrishna4584
@harekrishna4584 Жыл бұрын
our teacher recommends ur channel as she herself learns here lmaooo
@Lyricverse116
@Lyricverse116 8 ай бұрын
😂😂😂
@yashaswininag3783
@yashaswininag3783 8 ай бұрын
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...
@venkateshpatil7109
@venkateshpatil7109 5 ай бұрын
Thanks
@aquadap219
@aquadap219 8 ай бұрын
i watched the past 6 videos of process synchronization and theyre amazing videos thank you!
@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
@maanyamuthamma3577
@maanyamuthamma3577 5 ай бұрын
You deserve an award for doing this 🎉🎉
@mamathaav4627
@mamathaav4627 Жыл бұрын
Your teaching method is really good.keep on going sir.😊
@rupambiswas953
@rupambiswas953 Жыл бұрын
Thanks for saving my semester exam 🙏🙏💙💙
@ghaziabadw3494
@ghaziabadw3494 2 жыл бұрын
thank you so so much for saving me at this last moment
@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
@habibaadawi22
@habibaadawi22 7 ай бұрын
u are a life saver . thank u so much sir
@zuhal6900
@zuhal6900 7 ай бұрын
That's what i've been looking for!!!! just perfect!!
@TheEkimjeet
@TheEkimjeet 2 жыл бұрын
great presentation and slides! love the content
@user-ytuser
@user-ytuser Жыл бұрын
thanks you explained an important topic in a easy manner
@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
@putrescentvermin
@putrescentvermin 2 жыл бұрын
This was basically my OS project.
@Lyricverse116
@Lyricverse116 8 ай бұрын
Great videos 💯
@ith3r7
@ith3r7 3 ай бұрын
Well explained !!
@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 .
@DrJALAGHARI
@DrJALAGHARI 3 жыл бұрын
A very good way of explanation. Keep it up.
@advithgowda620
@advithgowda620 Жыл бұрын
Brooo u r a life changer 😘
@snehasharma3041
@snehasharma3041 8 ай бұрын
Amazing explanation 🥹
@tasnimsart3430
@tasnimsart3430 2 жыл бұрын
Thanks so much
@adelgado0723
@adelgado0723 2 жыл бұрын
Thank you for the excellent content!
@darshil-oh2le
@darshil-oh2le 9 ай бұрын
Awesome explaination ✌✌
@PythonisLove
@PythonisLove 2 жыл бұрын
great content as always
@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!!
@arvinhipolito157
@arvinhipolito157 2 жыл бұрын
One of the best explanation. Thank you very much
@kayakMike1000
@kayakMike1000 Жыл бұрын
I don't think you really need mutex or semaphores if you only have one producer for one consumer...
@mrymzrzr4741
@mrymzrzr4741 2 жыл бұрын
Thank you was really helpful
@kenzakhelkhal7931
@kenzakhelkhal7931 Жыл бұрын
Thank u so much it was very helpful appreciate ur efforts
@pranavmuthige427
@pranavmuthige427 2 жыл бұрын
Bhai Tu bhagwaan hai bhagwaan!!!
@aryansharma9933
@aryansharma9933 2 жыл бұрын
Thank you!
@ayahamad5931
@ayahamad5931 8 ай бұрын
Thanks sir❤❤
@FarmanOfficial777
@FarmanOfficial777 2 жыл бұрын
this is called teaching....
@marcustam4387
@marcustam4387 Жыл бұрын
I wonder if semaphores can solve this problem
@sanathkumarshenoy9955
@sanathkumarshenoy9955 2 жыл бұрын
Nice one
@bellaajaziz7204
@bellaajaziz7204 2 жыл бұрын
can you please upload the remaining topics like deadlocks :)
@rasikannanl3476
@rasikannanl3476 Жыл бұрын
Fantastic
@farahmohamed2104
@farahmohamed2104 9 ай бұрын
precise
@Jamie-fj8dn
@Jamie-fj8dn 2 жыл бұрын
Thxxx sirr
@hombdr.pathakkshetri8893
@hombdr.pathakkshetri8893 5 ай бұрын
wawwwaaaaa
@kswethakumari412
@kswethakumari412 7 ай бұрын
I haven't listened anything before
@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.
@modemharikumar9232
@modemharikumar9232 3 жыл бұрын
1st comment good lecture
@satioOeinas
@satioOeinas 8 ай бұрын
i dont think this is the correct implementation
@sricharan8575
@sricharan8575 Жыл бұрын
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?????
@adityamishrasc2579
@adityamishrasc2579 Жыл бұрын
🙏🙏🙏
@bash541
@bash541 2 жыл бұрын
I LOVE YOU HABIBI
The Readers Writers Problem
15:32
Neso Academy
Рет қаралды 244 М.
The Dining Philosophers Problem
20:16
Neso Academy
Рет қаралды 317 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 110 МЛН
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 9 МЛН
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 47 МЛН
How He Got $600,000 Data Engineer Job
19:08
Sundas Khalid
Рет қаралды 26 М.
My Honest College Advice for Computer Science Majors
14:06
Sayhyun (세현)
Рет қаралды 124 М.
Test and Set Lock
19:01
Neso Academy
Рет қаралды 222 М.
Semaphores
22:51
Neso Academy
Рет қаралды 457 М.
Producer - Consumer Problem in Multi-Threading
25:18
CodeVault
Рет қаралды 111 М.
The TRUTH About Computer Science Degrees in 2024
17:25
Tech With Tim
Рет қаралды 90 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 825 М.
Strange File in Downloads Folder? Gootloader Malware Analysis
30:20
John Hammond
Рет қаралды 726 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 110 МЛН