diff b/w spinlock, seamaphores and mutex and where to use it.

Answer Posted / kapil thakar

Spin lock used in kernel context. It will not allow the
process or thread to sleep.

While mutux and semaphore can go into sleep.

So this make the spin lock can be used in interrupt context
or interrupt.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are different ways the context switch happens from user to kernel space or vice-versa ?

2141


What are system calls used for process management in linux?

585


I would like to know whether Simado and Setu products are they EPBX or not ?

1933


Explain process management system calls in linux?

550