diff b/w spinlock, seamaphores and mutex and where to use it.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / raghava
mainly spinlock used in threads to avoid synchronization,where as semaphore and mutex used to avoid process synchronization.
1.spinlock is something like polling.it spins for resouce until aloocated resouce releases.
2.binary semaphore and mutex are similar.
| Is This Answer Correct ? | 1 Yes | 2 No |
what is the diff b/w MUTEX and semaphore?
if root user forget the password how to change it?
how to configure ftp server on redhat linux?
what kind of information the linux driver modules (.ko ) files has ?
how to create samba server in fedora linux 9 ?
what is the difference between user APIs and kernel system calls ?
What will happen when we invoke a system call and say with an example of invoking a system call ?read? for a device?
How to get microseconds of system time from Redhat Linux 4.0
What is the use of proc structure?
What is atomic function / atomic variable ?
How to create secured appeche web sever ?
I would like to know whether Simado and Setu products are they EPBX or not ?