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 |
Explain process management system calls in linux?
what are the different ways the Linux can swich from User Space to Kernel Space & vice-versa ?
why the kernel panic error was appering?
what is mean by raid and what are all raids available even in software and hardware?
if root user forget the password how to change it?
What are the signals we have in Linux
how to configure sendmail server on red hat linux version 4 and what and all we Require?
linux system its not booting up its showing groub error what i need to do?
what is iptabe on redhat linux?
how to configure http server on red hat linux4.0?
How to get microseconds of system time from Redhat Linux 4.0
what is cups and how to configure?