hi - very nice and clearly explained video. What is test and lock? how it works? What is the assembly instruction equivalent to test and lock in x86 or ARM controller?
To give a real world example of an x86 code sequence: movb $1, %dl .L8: movl %edx, %eax xchgb Get_Lock(%rip), %al testb %al, %al jne .L8 It is important to know that xchg is an atomic instruction, which can not be interrupted.
Nice explanation. Can you please add more details on when exactly one should use spin lock or mutex. And why spinlocks are preferred over mutex in interrupt context ?
Thank you very much.... will you please make video on " Thread Synchronisation Vs Process Synchronisation with an example " ..... I have seen your other videos on process and threads, but this will add more clarity to it..... Eagerly awaiting for your reply
I don't like reading a text from google. If you wrote example of little simple programs and discussed them while applying those concepts would be a lot better to explain to people!
Congratulations. I solve meny problens about my ADS curse watching your videos. thanks.
Explained in a very easy to understand manner. Good video
Thanks brother
Finally someone explained clearly, simply, fully.
Glad u liked
Can you give me a realtime example where the spin lock will be used ?
Hello Sir, thanks for this video. Could you explain lockdep?
Thanks a lot, very clear explanation.
Glad you liked
hi - very nice and clearly explained video. What is test and lock? how it works? What is the assembly instruction equivalent to test and lock in x86 or ARM controller?
To give a real world example of an x86 code sequence:
movb $1, %dl
.L8:
movl %edx, %eax
xchgb Get_Lock(%rip), %al
testb %al, %al
jne .L8
It is important to know that xchg is an atomic instruction, which can not be interrupted.
Fabulous explanation Sir.
Thanks
understands it finally, thanks a lot.
Glad it was useful
Very nicely explained
Please do programing in detail for all the ipcs
Nice explanation
Thanks n glad u liked
Hello sir,
It will be good if you covered semaphore as well
Will do that as a quick video semaphore vs mutex vs spin lock
Well explained
Thanks
Nice explanation. Can you please add more details on when exactly one should use spin lock or mutex. And why spinlocks are preferred over mutex in interrupt context ?
Sure will be done..
Thank you
Welcome
Sir i bought book written by u on IOT is that enought to learn about IOT sir ?
Yes it is
@@ShriramVasudevan thanks sir
Thank you very much.... will you please make video on " Thread Synchronisation Vs Process Synchronisation with an example " ..... I have seen your other videos on process and threads, but this will add more clarity to it..... Eagerly awaiting for your reply
That's a good note..we shall do it shortly. May be within 24 hours you can expect a video
Spinlocks are indeed busy wait but with preemption being enabled if the lock is unavailable
so spin lock is indefinte...?
Yes.
Thanks
Welcome
you asked for subscribe. I have subscribed and additionally sending you my respect as well.
Thank you:)
Nice sirg
线程 sleep 了, CPU 此时,能做别的事情吗?
I don't like reading a text from google. If you wrote example of little simple programs and discussed them while applying those concepts would be a lot better to explain to people!
👍👍
好啊