Комментарии:
I have watched a few of your videos. I have to say... you explain things well, and you get to the nuts and bolts. Thank you and keep it up! =)
ОтветитьWhat does errno.h do?
ОтветитьThank you for this video, I am watching all your videos. May i know your name please..
Ответитьwhen mutex_lock was not successful, it can sleep(schedule for other thread). When mutex_trylock() fails, it does the same thing? What is the main difference when mutex_lock and mutex_trylock failed to get the lock?
ОтветитьIf trylock == 0 that means it was not locked, so it locks itself then enters the critical section?
ОтветитьCode vault coming in clutch again, thank you!
ОтветитьTHX
Ответитьslow down man god damn
ОтветитьGreat explaination thank you
ОтветитьWhy is there no warning, for reaches end of non-void function (routine)?
Ответитьthanks for the explanation!
ОтветитьIf I don't care what is executed when I don't get the lock or if I don't want anything to execute when I don't get it, would it be okay to just call trylock and not checking for it's value?
ОтветитьSo the reason to use trylock is make the waiting threads do something if else if the locked area is used, instead of just wait
Ответить