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

Answers were Sorted based on User's Feedback



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

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

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

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

Post New Answer

More Linux System Calls Interview Questions

what happens when we do insmod & rmmod in Linux Device Drivers ?

2 Answers  


what kind of information the linux driver modules (.ko ) files has ?

2 Answers   NetApp,


linux file defaults permition

8 Answers  


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

2 Answers   Intel,


What do fork() internally call?

3 Answers  


what are the different ways the Linux can swich from User Space to Kernel Space & vice-versa ?

2 Answers   NetApp,


what is sudo on linux?

3 Answers   IBM,


What are the signals we have in Linux

3 Answers   HCL, NetApp,


what is segmentation fault?

11 Answers   AdTel, NetApp,


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

0 Answers   IBM,


what is stored in /proc ? what is significance of /proc in linux ?

3 Answers   NetApp,


What is the Diffrent between Redhat linux And suse linux

2 Answers   Wipro,


Categories