We are paying high fees in gate coaching for all these knowledge. But in this channel , it is available in free of cost... Thank you so much sir. Really this is non profit RUclips channel.🙏🙏🙏🙏
@@aryaman_godara Yaa sir earn more than gate coaching teacher via Add on youtube ..He won't understand it because he see he is not palyinlg anything .I am not saying that sir should not run adds but he sould understand that its not free , Add = Money , much more money ...
I am govt. employee again starting preparation for CS after 5 years of graduation. Your channel has been a great help for me!!! I wish all the success to you in life. My best wishes. Keep it up sir.
20:38 oh ho now I get it Good job sir And those who are saying sir don't know how to program in c well let me tell you he is showing a snapshot of how it works just like pseudo code , if you are so good at programming why wasting time here go to google or microsoft if you are big coder He is providing free lectures doesn't mean you will trash talk with him He is a human and every human makes mistakes so if he makes mistakes doesn't mean you need behave rudely that why did you make mistakes, ask politely Show some respect 🙏🙏🙏🙏
Bhai galat code galat code hota hai. Aur galat code ko point out karne pe koi apne aap ko bada programmer nahi samajh raha hai jo bewajah Google or Microsoft le aa rahe ho. Creator ko sahi code (ya pseudocode) Comments mein add kar dena chahiye ya isi video mein hi edit kar dena chahiye.
@@JAJAJAJA-el5li ok bhrata. Baat ko 1 saal ho gaye. Main ye video wapas nahi dekh raha kyunki ab mujhe zarurat nahi hai par inka content achcha rehta hai. Aap comments se distract hoke apna samay zaya mat kijiye. Aap jis bhi exam/interview ke liye padh rahe hain uspe dhyan dijiye. All the best
One of the best explanations I have ever witnessed, dude you have have got some great teaching skills. Please continue with the kind of work you are doing. :) All the best!
My daily internet quota was exhausted but I recharged it with data addon just to watch this lecture , coz I know this lecture really worth it !!! lots of love from Maharashtra Sir!!
Varun sir, you play a crucial role in my life. You have helped me in clearing all my stupid to real effort bearing doubts. I am so so thankful to you. your efforts won't go vain. May God bless you with happy and healthy life so that you can give life to students. Your student
I watched your tutorials and prepared process sychronization topic and i cleared my Demo (Alhamdulillah) and now i got Job 💖☺️ Still im preparing my daily OS topics from your Channel🌟 Love and respect from PAK🌺
do you know why hes so effective? when he emphasize on small details like buffer is memory space in ram that is my friend very important.....that small information gives you ability to picture things in your head lot of good teacher forget that. thanks you anyway
Dear Sir , You explain the theories very well and it would be a very pleasure if you can do the lectures in English as much as possible now from 2021 so the people from world wide can understand and by the way I am a Sri Lankan IT Undergraduate :)
Bro instead of asking for English, understand the problem in India here many college try to make communication better instead of enriching the knowledge of students, so in Hindi we understand the concept clearly
Bro i am from Pakistan Your lecture and teaching method is amazing.... ❤️❤️❤️ Bas end py ap thora sa side py ho jaya karain taky hum pory white board ka screenshot la sakain... Thanks
preemption can occur anywhere if we do not use sempahores/mutex or any other synchronization technique, but for concept it is easier to assume that preemption occurs only at some points.
Sir,your expalnation is really good. I have a suggestion when you do any small mistakes in the video like in the above video you have taken in as 4 instead of 3 please give a message while editing that it is 3 . because I stopped the video and thinking how in is 4 instead of 3 , I thought it was bit time taking so please look into it ..... This is a small request.
On the consumer side, I think the count should be initialized to -1 since the 0th index has a value stored in it and if count == 0 then the while loop will run infinite times even when we are having data stored
Count is just used to know how many indexes are there ..like the total data As you said he there is data stored in 0th index count will be incremented right in producer's code?
Those who are disliking the lecture , why you people even come here? If you are envious about his channel growth then let me clear you one thing, those who put effort in his work will definitely go ahead. Rest is your wish "like or dislike" RUclips has given you option you can use it in either way.
Sir while explaining case 1 you said that producer will check while condition if condition is true then producer will be in infinite loop. The question is that if producer enters in infinite loop then how it would came out from loop?
thankyou so much sir.....i have really learned a lot......from u.....nd u are doing amazing job nd your lectures are really very knowledgable...nd interesting.....thanks a lot sir for putting so much efforts for us.
Funny enough some of the explanation is in Hindi and I don't understand Hindi but the teacher is too good I understand the concept. well explained and well presented
The producer consumer problem involves two parallel processes sharing resources or memory. A producer produces an item and a consumer consumes it from a buffer. They share a global variable and local variables for incrementing and decrementing the buffer size. This example explores a simple case of the producer producing an item X1 in a buffer size of 8. [00:01](ruclips.net/video/iMD1Z3f9ioI/видео.html) Producer-consumer problem is a standard problem of multi-process synchronization [03:14](ruclips.net/video/iMD1Z3f9ioI/видео.html94) Explanation of the producer code functionality [06:51](ruclips.net/video/iMD1Z3f9ioI/видео.html) CPU converts instructions into micro instructions [10:05](ruclips.net/video/iMD1Z3f9ioI/видео.html) Updating out variable to track consumer consumption [13:10](ruclips.net/video/iMD1Z3f9ioI/видео.html) Process synchronization in producer-consumer problem [16:31](ruclips.net/video/iMD1Z3f9ioI/видео.html) Producer-Consumer Code Execution Flow [19:54](ruclips.net/video/iMD1Z3f9ioI/видео.html194) Explanation of the execution flow of a program consisting of multiple instructions [23:29](ruclips.net/video/iMD1Z3f9ioI/видео.html409) Race condition causing wrong value in buffer count --------------------------------- Detailed Summary for [L-3.2: Producer Consumer Problem | Process Synchronization Problem in Operating System](ruclips.net/video/iMD1Z3f9ioI/видео.html) by [Merlin](merlin.foyer.work/) [00:01](ruclips.net/video/iMD1Z3f9ioI/видео.html) Producer-consumer problem is a standard problem of multi-process synchronization - Cooperative processes share something common between them, it could be code, resources, memory, or some variable - The producer produces an item and places it in the buffer, the consumer consumes the item and brings it out from the buffer to process [03:14](ruclips.net/video/iMD1Z3f9ioI/видео.html94) Explanation of the producer code functionality - Producer code produces items and adds it to the buffer. If the buffer is full, producer gets stuck in an infinite loop. - Count variable is used by both producer and consumer to keep track of the number of items in the buffer. [06:51](ruclips.net/video/iMD1Z3f9ioI/видео.html) CPU converts instructions into micro instructions - Instructions are first loaded into register for efficiency - An example of incrementing and storing count in memory is explained [10:05](ruclips.net/video/iMD1Z3f9ioI/видео.html) Updating out variable to track consumer consumption - Out variable shows the next value in buffer where consumer can consume - When consumer consumes an item, out is incremented from 0 to 1 and count variable is decreased by 1 [13:10](ruclips.net/video/iMD1Z3f9ioI/видео.html) Process synchronization in producer-consumer problem - Producer and consumer can work without synchronization - In case of unsynchronized processes, buffer can cause issues with slot tracking. [16:31](ruclips.net/video/iMD1Z3f9ioI/видео.html) Producer-Consumer Code Execution Flow - Producer inserts X4 into buffer IN at position 3 and increments IN and count - Producer code gets preempted before executing its 3rd instruction and consumer consumes X1 from buffer out [19:54](ruclips.net/video/iMD1Z3f9ioI/видео.html194) Explanation of the execution flow of a program consisting of multiple instructions - Instructions are executed partially before the process is pre-empted - The process resumes from where it left off [23:29](ruclips.net/video/iMD1Z3f9ioI/видео.html409) Race condition causing wrong value in buffer count - Race condition occurs when wrong values compete - Process synchronization is necessary to avoid this problem
My HOD skipped this topic saying its a silly topic, now I know what exactly is RACE CONDITION. Holy crap it blew my mind when it all came together at 25:29!! 🤕
"This is the kind of content i pay my internet bill for"💲❤
same
Saviour he is ❤️
Sach kaha❤
We are paying high fees in gate coaching for all these knowledge. But in this channel , it is available in free of cost... Thank you so much sir. Really this is non profit RUclips channel.🙏🙏🙏🙏
nice channel . i like your method of teaching sir.
Yes sahi bol rahe hai aap.....mai video me itana achha se nahi bataya bhai jitana chha ye video me bataya gaya.....thanx sir by heart ❤️🥰
not for profti kaise hua?... pani marne ki aadat chod do mitar
budhwa bhatar
@@aryaman_godara Yaa sir earn more than gate coaching teacher via Add on youtube ..He won't understand it because he see he is not palyinlg anything .I am not saying that sir should not run adds but he sould understand that its not free , Add = Money , much more money ...
If you want to crack Gate and don't want to spend money on coaching, Become Varun Sir's cameraman!
Hahaha..
@@GateSmashers true😂
🤣🤣🤣
@Torin Garrett spammer
Sir's father helped him on video part
These videos are "gems". I salute this guy for making Computer fundamentals more interesting which is where our colleges always fail.
OMG 😭😭😭 you're toooooooo good thank you for existing 😭😭❤❤
Thank you..keep learning and sharing..
I completed my engineering in 2017 and now m understanding all the concept 😆
What are u doing now
Same here
😂😂😂👌👌👌
Same here
It mean You have completed your engineering in 2017 and till now you did not get any job so you are learning everything from first??? right??
woah.. if I were u I would never have touched books… I’m just waiting to graduate😂
I am govt. employee again starting preparation for CS after 5 years of graduation. Your channel has been a great help for me!!! I wish all the success to you in life. My best wishes. Keep it up sir.
How is the prep going on brother?
Did you crack gate'?
Government job mein jyda kam kara raha hai kya bhai 😅😅😅
Saare topics me inta clear concept , imagine sir ne kitni mehnat ki hai😮😮😮😮
Not all heros wear cap.Great job for many students who cannot afford coaching.
cape*
Allah will give you more than you deserve one day inshaAllah
Both varun singla sir & sanchit jain sir r my best mentor! Thanks fr having ur vdos helped alot job lagne k bad aapko mithai khilaunga... 😘
mila ki nhi job??
@@samridhup lol !!!
Bhai lagi job ki nahi, waiting......
@@samridhup Ha bhai batao...
Great teacher ...each and every step explained very well ..
20:38 oh ho now I get it
Good job sir
And those who are saying sir don't know how to program in c well let me tell you he is showing a snapshot of how it works just like pseudo code , if you are so good at programming why wasting time here go to google or microsoft if you are big coder
He is providing free lectures doesn't mean you will trash talk with him
He is a human and every human makes mistakes so if he makes mistakes doesn't mean you need behave rudely that why did you make mistakes, ask politely
Show some respect 🙏🙏🙏🙏
Bhai galat code galat code hota hai. Aur galat code ko point out karne pe koi apne aap ko bada programmer nahi samajh raha hai jo bewajah Google or Microsoft le aa rahe ho. Creator ko sahi code (ya pseudocode) Comments mein add kar dena chahiye ya isi video mein hi edit kar dena chahiye.
@@bhaveshkumar6842ja pehle pseudocode ka matlab pta karke aa
@@JAJAJAJA-el5li ok bhrata. Baat ko 1 saal ho gaye. Main ye video wapas nahi dekh raha kyunki ab mujhe zarurat nahi hai par inka content achcha rehta hai. Aap comments se distract hoke apna samay zaya mat kijiye. Aap jis bhi exam/interview ke liye padh rahe hain uspe dhyan dijiye. All the best
one day before my final exams and completing the entire syllabus here today .... God bless u Sir.
Happy Teacher's Day to the Best teacher 😊
Happy happy
So clear explanation...quite helpful for me to teach my students...
One of the best explanations I have ever witnessed, dude you have have got some great teaching skills. Please continue with the kind of work you are doing. :) All the best!
My daily internet quota was exhausted but I recharged it with data addon just to watch this lecture , coz I know this lecture really worth it !!! lots of love from Maharashtra Sir!!
Uu6ů
are to agle din dekh leta, fekoon
@@namangupta4190 Kyun Nahi ho rhi padhayi..!!!
@@manaspatil4316 teri ka pata nahi bhai😂
Varun sir, you play a crucial role in my life. You have helped me in clearing all my stupid to real effort bearing doubts.
I am so so thankful to you.
your efforts won't go vain.
May God bless you with happy and healthy life so that you can give life to students.
Your student
I watched your tutorials and prepared process sychronization topic and i cleared my Demo (Alhamdulillah) and now i got Job 💖☺️
Still im preparing my daily OS topics from your Channel🌟
Love and respect from PAK🌺
Congratulations 👏
Toba shahid, Congrats which job ?🤔
Your videos are really really helpful sir. Please keep up the good work. We really appreciate it
Yes sahi bol rahe hai aap.....mai video me itana achha se nahi bataya bhai jitana chha ye video me bataya gaya.....thanx sir by heart ❤️🥰
do you know why hes so effective? when he emphasize on small details like buffer is memory space in ram that is my friend very important.....that small information gives you ability to picture things in your head lot of good teacher forget that.
thanks you anyway
You're an angel.. Thanks for saving me man! Keep going, you're an amazing person to help lakhs of students.
Your all videos are just awesome.. Never get bored, God bless you!!!
Thank you so much 😀
we had never seen teacher like u and way of teaching provide us.....brilliant
shukr h smj aya finally :) #thanks_forever
Nice Explanation!!!!!!!!!!!!!!!
Your service to the society is truly un-matchable.Thank you so much sir
Vry nice xplanation topic sir great going .....keep it up sir😊
Best after Balkrishna Veerala Sir... Thank You
Hii Saket..Thanku... Keep learning and sharing
Your explanation is too good, thank you so much, it help a lot
i think while(count!=n) will be in the producer code and (count!=0 ) since then only the loop will terminate else there will be segmentation error
Very Informative, really Useful
merci beaucoup Monsieur, malgré que je ne maitrise ni l'Anglais ,ni Hindi mais j'ai bien compris votre explication. Merci infiniment
J'aime la façon dont tu m'apprécies. C'est un gros complément pour moi. Dieu vous protège.
Merci beaucoup
@@GateSmashers sir you know this language 🧐
@@ishanpand3y google translation 😜😜😜😂
Mind blowing explanation . thank u so much sir
Dear Sir , You explain the theories very well and it would be a very pleasure if you can do the lectures in English as much as possible now from 2021 so the people from world wide can understand and by the way I am a Sri Lankan IT Undergraduate :)
Sure..will try
Bro instead of asking for English, understand the problem in India here many college try to make communication better instead of enriching the knowledge of students, so in Hindi we understand the concept clearly
V nice ....first time i have understood this problem
Osm video... Heartly Thanku so much sir for your great work...
Thanks diksha
Very good & clear explanation efforts really appreciable 🎉🎉
Excellent explanation....
Bro i am from Pakistan
Your lecture and teaching method is amazing.... ❤️❤️❤️
Bas end py ap thora sa side py ho jaya karain taky hum pory white board ka screenshot la sakain...
Thanks
Sir plz make a video on Peterson algorithm
Bahut acha samajh aa gaya..thanku
you are awesome......❤
Very nice explanation. Thankyou sir.
I am very lucky that i am in 2024 and watching your lecture to do best in my semester 🎉
preemption can occur anywhere if we do not use sempahores/mutex or any other synchronization technique, but for concept it is easier to assume that preemption occurs only at some points.
Sir,your expalnation is really good.
I have a suggestion when you do any small mistakes in the video like in the above video you have taken in as 4 instead of 3 please give a message while editing that it is 3 .
because I stopped the video and thinking how in is 4 instead of 3 , I thought it was bit time taking so please look into it ..... This is a small request.
Salute you sir ji!
Mashallah very helpful video no one teach like this on you
Tube
Awesome explanation
Thank You Soo Much Sir Ji🙌
Thanks sir 🎉❤
On the consumer side, I think the count should be initialized to -1 since the 0th index has a value stored in it and if count == 0 then the while loop will run infinite times even when we are having data stored
Count is just used to know how many indexes are there ..like the total data
As you said he there is data stored in 0th index count will be incremented right in producer's code?
U r my best teacher in my life thank you so much sir .❤
best video of sir i have ever seen.. untill now
Sir aapke Vidoes , se semester nikaal paa rha hu. Please keep doing what you do !
Thanks a lot bhaiya❤
Bahut achha method hai ..sir ..samjh aa gaya hai ab..
Pura Playlist he download karlia 😃
Those who are disliking the lecture , why you people even come here? If you are envious about his channel growth then let me clear you one thing, those who put effort in his work will definitely go ahead. Rest is your wish "like or dislike" RUclips has given you option you can use it in either way.
we feel blessed varun sir..god blesss you with peace and prosperity
Your explanation is amazing. Thank you so much
sir plz its a humble request to u to upload of automata and data structure ,,,,mindblowing teacher guider u re thnkuu fr such nice video
Done my full exam preparation from you and got passed thank you sir ❤🎉
Thank You Sir .....You are doing a great Job ....
I was trying to escape from os until I found this channel.
great sir
Sir while explaining case 1 you said that producer will check while condition if condition is true then producer will be in infinite loop. The question is that if producer enters in infinite loop then how it would came out from loop?
thankyou so much sir.....i have really learned a lot......from u.....nd u are doing amazing job nd your lectures are really very knowledgable...nd interesting.....thanks a lot sir for putting so much efforts for us.
Nice
BEST EXplanation
Understood every bit of this video.Thanks sir.
thnx a lot
Thanks alot 😀
sir g apko 2x pe sunany ki aadat hugye he hamy respect from pakistan
Funny enough some of the explanation is in Hindi and I don't understand Hindi but the teacher is too good I understand the concept. well explained and well presented
The producer consumer problem involves two parallel processes sharing resources or memory. A producer produces an item and a consumer consumes it from a buffer. They share a global variable and local variables for incrementing and decrementing the buffer size. This example explores a simple case of the producer producing an item X1 in a buffer size of 8.
[00:01](ruclips.net/video/iMD1Z3f9ioI/видео.html) Producer-consumer problem is a standard problem of multi-process synchronization
[03:14](ruclips.net/video/iMD1Z3f9ioI/видео.html94) Explanation of the producer code functionality
[06:51](ruclips.net/video/iMD1Z3f9ioI/видео.html) CPU converts instructions into micro instructions
[10:05](ruclips.net/video/iMD1Z3f9ioI/видео.html) Updating out variable to track consumer consumption
[13:10](ruclips.net/video/iMD1Z3f9ioI/видео.html) Process synchronization in producer-consumer problem
[16:31](ruclips.net/video/iMD1Z3f9ioI/видео.html) Producer-Consumer Code Execution Flow
[19:54](ruclips.net/video/iMD1Z3f9ioI/видео.html194) Explanation of the execution flow of a program consisting of multiple instructions
[23:29](ruclips.net/video/iMD1Z3f9ioI/видео.html409) Race condition causing wrong value in buffer count
---------------------------------
Detailed Summary for [L-3.2: Producer Consumer Problem | Process Synchronization Problem in Operating System](ruclips.net/video/iMD1Z3f9ioI/видео.html) by [Merlin](merlin.foyer.work/)
[00:01](ruclips.net/video/iMD1Z3f9ioI/видео.html) Producer-consumer problem is a standard problem of multi-process synchronization
- Cooperative processes share something common between them, it could be code, resources, memory, or some variable
- The producer produces an item and places it in the buffer, the consumer consumes the item and brings it out from the buffer to process
[03:14](ruclips.net/video/iMD1Z3f9ioI/видео.html94) Explanation of the producer code functionality
- Producer code produces items and adds it to the buffer. If the buffer is full, producer gets stuck in an infinite loop.
- Count variable is used by both producer and consumer to keep track of the number of items in the buffer.
[06:51](ruclips.net/video/iMD1Z3f9ioI/видео.html) CPU converts instructions into micro instructions
- Instructions are first loaded into register for efficiency
- An example of incrementing and storing count in memory is explained
[10:05](ruclips.net/video/iMD1Z3f9ioI/видео.html) Updating out variable to track consumer consumption
- Out variable shows the next value in buffer where consumer can consume
- When consumer consumes an item, out is incremented from 0 to 1 and count variable is decreased by 1
[13:10](ruclips.net/video/iMD1Z3f9ioI/видео.html) Process synchronization in producer-consumer problem
- Producer and consumer can work without synchronization
- In case of unsynchronized processes, buffer can cause issues with slot tracking.
[16:31](ruclips.net/video/iMD1Z3f9ioI/видео.html) Producer-Consumer Code Execution Flow
- Producer inserts X4 into buffer IN at position 3 and increments IN and count
- Producer code gets preempted before executing its 3rd instruction and consumer consumes X1 from buffer out
[19:54](ruclips.net/video/iMD1Z3f9ioI/видео.html194) Explanation of the execution flow of a program consisting of multiple instructions
- Instructions are executed partially before the process is pre-empted
- The process resumes from where it left off
[23:29](ruclips.net/video/iMD1Z3f9ioI/видео.html409) Race condition causing wrong value in buffer count
- Race condition occurs when wrong values compete
- Process synchronization is necessary to avoid this problem
You are the only hope in my life. Mai prti hi apki videos dekhne k liye hu... 😂😂😂
Thank you Sir for such distinctive content.... I am very grateful to you!!!
Thank you so much sir..🙏🙏 sir one request to you pls mention video number also so that we'll able to watch video in serially manner..
My HOD skipped this topic saying its a silly topic, now I know what exactly is RACE CONDITION. Holy crap it blew my mind when it all came together at 25:29!! 🤕
Very awesome explanation sir. thanks
excellent explanation
Awesome sir🤩
Great 😍
Brilliant explanation
Wow!!
Thankyou so much sir!!!❤
bhaiyaaaaa 6 hona chahiye, meri gf ney bola, 1+2+3=6 and she's smart!!!
Thankyou!
Well done sir 💯
This guy is way better than college. I think they should play videos from gate smashers instead of those boring lectures.
Thank you 🙏
Absolutely interesting
thank sir good lecture
Thank You Sir
loads and loads of thanks to you. :)
very good sir ji
U are very good teacher♥️♥️♥️ may Allah bless u...... ameen
Thank you so much
awesome! explanation and case