I'm learnign pthreads now after joinig the company and watching your videos, still I found your videos more useful then others available in the YT. Thanks a lot man!
i dont know why this dislike is pressed? on the internet there are some people dont like anything just themselves. to much insane. Again nice video and new things to learn, thx from heart
@@CodeVault too bad :) do you have an idea what you can use in this situation? i mean.. first try.. if try did not work throw a message (or do anythin) then sem_wait?
I'm learnign pthreads now after joinig the company and watching your videos, still I found your videos more useful then others available in the YT. Thanks a lot man!
You made this concept so simple to understand!
Kudos to you man, thanks a ton!
Iti multumesc foarte mult pentru explicatiile simple, concrete si clare! Acest playlist m-a facut sa inteleg mai bine thread-urie in unix.
e smecher baiatu
Thank you so much, great explanation. I have an exam tomorrow about c programming and operating systems. You are helping me so much.
Bro, this kinds of parallel programming topics was seemed to me as a taboo. But you made it very easy to understand. Thank you for sharing.
I'm learning programming now and your videos help a lot, thank you very much!
Well done explaining in 9 minutes what my professor failed to explain in an hour.
God Bless you my man!!!
Thank you very much for your lessons!
U made my life much better. Thank u
Very good example… thanks
your are doing a very good job. your are a good teacher
Thanks man you are amazing! Your videos have helped me a ton with my University excersises !!
Thanks for the video and also for the understandable explanation.
good exemple!
Thanks for this! You are great!!
You are amazing bro! May Allah bless you :)
i dont know why this dislike is pressed? on the internet there are some people dont like anything just themselves. to much insane. Again nice video and new things to learn, thx from heart
Thank you very much !!!
Is there anywhere you explain sem_open and using semaphores with multiple processes? :)
Not yet, I will note this down, thanks for the recommendation
So race conditions can still happen if we have a semaphore with a counter greater than 1?
Is printf atomic? I was expecting the printout from threads inside the semaphore to be not readable because of race condition
pthread should be thread-safe and, as long as you pass in the
with each string, the buffer always gets emptied and shown on the screen
I want to ask what is the different bewteen semathores and barriers? Thanks a lot for the help
Barriers allows threads to continue execution only after ALL threads have called barrier_wait whereas, semaphores don't have such a capability
During the waiting period I want to execute functions with threads which are waiting, how can I implement that?
I don't think you can do it with the current architecture. Just create separate threads for that work
Thanks a lot for this video
thanks that was very helpful
to add here maybe, instead of immediately printing waiting we might could use sem_trywait instead couldnt we?
It won't work... you'd just end up wasting resources. You should give it a try and come back with the code!
@@CodeVault too bad :) do you have an idea what you can use in this situation? i mean.. first try.. if try did not work throw a message (or do anythin) then sem_wait?
Thank you...
thanks!!!