Amazing voice, comments on your file and examples that are simple. It's also good that the jargon explained before using it and that the videos are concise. If you haven't corrected it already, it could be even better if you managed to cut the mouse and keyboard sounds. Anyway, keep up the good work ! It helps me with my system classes.
again very easy to follow, but I think it may would've been nice to see how long the program takes with and without the lock (assuming the difference is visible here).
That's a neat idea! :-) The source code is available here if anyone wants to try this as a fun follow-up "exercise": github.com/portfoliocourses/c-example-code/tree/main/mutex.
Apart from the quality content. I also liked your minimalist style, you only use comments to make diagrams or text slide. I think that will take good effort but ultimately keeps things simple. This understanding only comes with experience.
Great content, but I'm never a fan of creating variables that look like keywords (ie: "mutex" in this case). Just adds more confusion. Maybe something like "acct_write_key", etc.
Hello Sir, i tried the same code in my Visual studio environment, some times it gives output as 500 and sometimes 200/300 (each run one value). I donot understand what is going wrong.Could you please help?
Hmm, I'm not sure what could be happening Vibhasree. :-( The code in the video is available here: github.com/portfoliocourses/c-example-code/tree/main/mutex. Maybe try using that exact code if you weren't already? Perhaps there is a small difference that is causing the bug. The other issue is that POSIX threads are a "Unix-like system" tool, on Windows different libraries are available for threads: www.reddit.com/r/C_Programming/comments/rpd2w3/is_there_a_way_to_use_posix_standard_in_visual/. So it may be due to the fact that you are trying to use POSIX on a Windows machine, though that said I believe there are ways to use POSIX on Windows as well.
@@PortfolioCourses Hello sir, thank you for your reply.I used the exact same code from your git already. Also included windows.h. Each run in Visual studio displays different answer and has different Process Ids. Will have a look once again at the link you shared. Also, thank you for the amazing explanation.You make it interesting to learn how to code. Thank you!😊
@@vibhashreehippargi8233 You're welcome! 🙂 And if that's the case it makes me wonder if it's a situation where the POSIX threads just aren't supported on Windows, because it should work on a Unix-like system.
@@PortfolioCourses Actually , Just before my comment i had give an interview for embedded c/c++ developer in UST Global ..and asked the question about semaphore..henceforth i asked you about semaphore.... thanks for comment ..and keep it up
i cannot emphasize enough on how helpful your entire channel is. thank you!!
I wish I had those videos a couple years ago when I was studying for my exams. Keep up the good work !
Thank you for the kind feedback! 😀
I'm watching these for my exams and they're so helpful
The YT algorithm just does a great work today, but I really wish I can use this video as my reference 2 years ago and complete my project at uni.
5 days overdue on an assignment. -10 points per day. I am only get 50 points credit but I am fighting through. Thanks for this video.
You're welcome! :-) And good for you for fighting through - you got this!
Amazing voice, comments on your file and examples that are simple. It's also good that the jargon explained before using it and that the videos are concise.
If you haven't corrected it already, it could be even better if you managed to cut the mouse and keyboard sounds.
Anyway, keep up the good work ! It helps me with my system classes.
Thank you, I'm glad you enjoy the video! Oddly enough, most people enjoy the keyboard and mouse sounds so I keep those in. :-)
@@PortfolioCourses Yeah, I found the video helpful as well. The keyboard and mouse sounds are kinda like a weird form of ASMR if that makes sense lol
again very easy to follow, but I think it may would've been nice to see how long the program takes with and without the lock (assuming the difference is visible here).
That's a neat idea! :-) The source code is available here if anyone wants to try this as a fun follow-up "exercise": github.com/portfoliocourses/c-example-code/tree/main/mutex.
thank you so much guys, this helped me to catch up with my OS class
You're very welcome, I'm glad to hear this video was able to help you out with your OS class! :-)
Excellent explanation of a tricky subject.
I’m glad you enjoyed the explanation, and thank you for the positive feedback! :-)
Great explanations, thank you for this tutorial! helping me a lot for my exam prep :).
Great video on thread handling, your the best :)
Thank you for the positive feedback, I’m very glad you enjoyed the video! :-)
you make it make so much sense!!!!
Apart from the quality content. I also liked your minimalist style, you only use comments to make diagrams or text slide. I think that will take good effort but ultimately keeps things simple. This understanding only comes with experience.
fantastic explination, thank you!
You're welcome Muhammad! :-)
This video really helped! Thanks a ton
You're welcome Abe! :-)
Great content, but I'm never a fan of creating variables that look like keywords (ie: "mutex" in this case). Just adds more confusion. Maybe something like "acct_write_key", etc.
Excellent explanation thanks 😅!
You're welcome Raj! 😀
At 9:38, should the read balance be 200?
Yes it should be 200.
Love it baby!
Hello Sir, i tried the same code in my Visual studio environment, some times it gives output as 500 and sometimes 200/300 (each run one value). I donot understand what is going wrong.Could you please help?
Hmm, I'm not sure what could be happening Vibhasree. :-( The code in the video is available here: github.com/portfoliocourses/c-example-code/tree/main/mutex. Maybe try using that exact code if you weren't already? Perhaps there is a small difference that is causing the bug. The other issue is that POSIX threads are a "Unix-like system" tool, on Windows different libraries are available for threads: www.reddit.com/r/C_Programming/comments/rpd2w3/is_there_a_way_to_use_posix_standard_in_visual/. So it may be due to the fact that you are trying to use POSIX on a Windows machine, though that said I believe there are ways to use POSIX on Windows as well.
@@PortfolioCourses Hello sir, thank you for your reply.I used the exact same code from your git already. Also included windows.h. Each run in Visual studio displays different answer and has different Process Ids.
Will have a look once again at the link you shared.
Also, thank you for the amazing explanation.You make it interesting to learn how to code. Thank you!😊
@@vibhashreehippargi8233 You're welcome! 🙂 And if that's the case it makes me wonder if it's a situation where the POSIX threads just aren't supported on Windows, because it should work on a Unix-like system.
may you give a tutorial about binary semaphore ..
I have added that to my list of video ideas Neeraj! :-)
@@PortfolioCourses okay I'll try
@@Ninja_Sh11 Good luck! 🙂
@@PortfolioCourses Actually , Just before my comment i had give an interview for embedded c/c++ developer in UST Global ..and asked the question about semaphore..henceforth i asked you about semaphore.... thanks for comment ..and keep it up
@@Ninja_Sh11 Cool, I hope you get the job!
thankyou verymuch i hope you get more subs and make more good contents.
You're very welcome, I'll definitely keep making more content! :-)
thank you so much man
You’re very welcome! :-D
very nice
Thank you! :-)