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 TH-cam 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
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!!
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!
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
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
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🌺
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 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
sir, you are really a blessing. thankyou so much for your dedication and devotion. God bless you. also please keep motivating students in your videos. sometimes, students like me get demotivated when we cant understand something.
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" TH-cam has given you option you can use it in either way.
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!! 🤕
Sir please make a video series on SYSTEM PROGRAMMING (based on IBM 360) (Ref.Book: J J Donovan). There are no other books available than the mentioned one and also no one on youtube has uploaded perfect video series for it. The subject is based on 60% numerics and 40% theoretical. Near about 40 to 45 Universities in India have this subject in their syllabus and the students are getting difficulties in this subject.
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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html) Producer-consumer problem is a standard problem of multi-process synchronization [03:14](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html94) Explanation of the producer code functionality [06:51](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html) CPU converts instructions into micro instructions [10:05](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html) Updating out variable to track consumer consumption [13:10](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html) Process synchronization in producer-consumer problem [16:31](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html) Producer-Consumer Code Execution Flow [19:54](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html194) Explanation of the execution flow of a program consisting of multiple instructions [23:29](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html409) Race condition causing wrong value in buffer count --------------------------------- Detailed Summary for [L-3.2: Producer Consumer Problem | Process Synchronization Problem in Operating System](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html) by [Merlin](merlin.foyer.work/) [00:01](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html409) Race condition causing wrong value in buffer count - Race condition occurs when wrong values compete - Process synchronization is necessary to avoid this problem
"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 TH-cam 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.
Saare topics me inta clear concept , imagine sir ne kitni mehnat ki hai😮😮😮😮
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 😅😅😅
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😂
Allah will give you more than you deserve one day inshaAllah
Not all heros wear cap.Great job for many students who cannot afford coaching.
cape*
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...
Happy Teacher's Day to the Best teacher 😊
Happy happy
one day before my final exams and completing the entire syllabus here today .... God bless u 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.
@@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
Great teacher ...each and every step explained very well ..
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😂
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!
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
So clear explanation...quite helpful for me to teach my students...
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
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
You're an angel.. Thanks for saving me man! Keep going, you're an amazing person to help lakhs of students.
shukr h smj aya finally :) #thanks_forever
Your service to the society is truly un-matchable.Thank you so much 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 ❤️🥰
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
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
Nice Explanation!!!!!!!!!!!!!!!
Your explanation is too good, thank you so much, it help a lot
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
Very good & clear explanation efforts really appreciable 🎉🎉
Best after Balkrishna Veerala Sir... Thank You
Hii Saket..Thanku... Keep learning and sharing
Very Informative, really Useful
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
Vry nice xplanation topic sir great going .....keep it up sir😊
I was trying to escape from os until I found this channel.
V nice ....first time i have understood this problem
Osm video... Heartly Thanku so much sir for your great work...
Thanks diksha
Sir plz make a video on Peterson algorithm
I am very lucky that i am in 2024 and watching your lecture to do best in my semester 🎉
Excellent explanation....
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 😜😜😜😂
Sir aapke Vidoes , se semester nikaal paa rha hu. Please keep doing what you do !
Mind blowing explanation . thank u so much sir
we feel blessed varun sir..god blesss you with peace and prosperity
Very nice explanation. Thankyou sir.
Salute you sir ji!
you are awesome......❤
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 plz its a humble request to u to upload of automata and data structure ,,,,mindblowing teacher guider u re thnkuu fr such nice video
Pura Playlist he download karlia 😃
Mashallah very helpful video no one teach like this on you
Tube
Awesome explanation
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?
You are the only hope in my life. Mai prti hi apki videos dekhne k liye hu... 😂😂😂
Bahut acha samajh aa gaya..thanku
Done my full exam preparation from you and got passed thank you sir ❤🎉
best video of sir i have ever seen.. untill now
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.
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..
Your explanation is amazing. Thank you so much
Thank You Soo Much Sir Ji🙌
U r my best teacher in my life thank you so much sir .❤
Thanks sir 🎉❤
really helpful, your each video is awesome, teching way, content all is outstanding. thanks for your effort.
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
sir, you are really a blessing. thankyou so much for your dedication and devotion. God bless you. also please keep motivating students in your videos. sometimes, students like me get demotivated when we cant understand something.
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?
Bahut achha method hai ..sir ..samjh aa gaya hai ab..
sir g apko 2x pe sunany ki aadat hugye he hamy respect from pakistan
bhaiyaaaaa 6 hona chahiye, meri gf ney bola, 1+2+3=6 and she's smart!!!
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" TH-cam has given you option you can use it in either way.
Thank You Sir .....You are doing a great Job ....
Thanks a lot bhaiya❤
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!! 🤕
Understood every bit of this video.Thanks sir.
Thank you Sir for such distinctive content.... I am very grateful to you!!!
great sir
BEST EXplanation
Nice
sir never came across any teacher like you ...absolutely amazing ..thank you
Brilliant explanation
Awesome sir🤩
No one teaching like you ❤❤❤ thnks sir
excellent explanation
Sirji moj krdi ap ne..😍😍😍
Thanks alot 😀
Such a good channel
Well done sir 💯
Great 😍
Very awesome explanation sir. thanks
Sir please make a video series on SYSTEM PROGRAMMING (based on IBM 360) (Ref.Book: J J Donovan). There are no other books available than the mentioned one and also no one on youtube has uploaded perfect video series for it. The subject is based on 60% numerics and 40% theoretical. Near about 40 to 45 Universities in India have this subject in their syllabus and the students are getting difficulties in this subject.
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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html) Producer-consumer problem is a standard problem of multi-process synchronization
[03:14](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html94) Explanation of the producer code functionality
[06:51](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html) CPU converts instructions into micro instructions
[10:05](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html) Updating out variable to track consumer consumption
[13:10](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html) Process synchronization in producer-consumer problem
[16:31](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html) Producer-Consumer Code Execution Flow
[19:54](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html194) Explanation of the execution flow of a program consisting of multiple instructions
[23:29](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html409) Race condition causing wrong value in buffer count
---------------------------------
Detailed Summary for [L-3.2: Producer Consumer Problem | Process Synchronization Problem in Operating System](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html) by [Merlin](merlin.foyer.work/)
[00:01](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.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](th-cam.com/video/iMD1Z3f9ioI/w-d-xo.html409) Race condition causing wrong value in buffer count
- Race condition occurs when wrong values compete
- Process synchronization is necessary to avoid this problem
thnx a lot
Absolutely interesting
In the consumer code the "out" after "buffer" should be enclosed in square brackets and not round brackets.
Wow!!
Thankyou so much sir!!!❤
awesome! explanation and case