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 is iptabe on redhat linux?

3 Answers   CDAC,


what is cups and how to configure?

7 Answers   IBM,


what is sudo on linux?

3 Answers   IBM,


Port number is already in use .. how to fix for apache..?

1 Answers   Google,


What are system calls used for process management in linux?

0 Answers  






What do fork() internally call?

3 Answers  


How to create secured appeche web sever ?

1 Answers   HCL,


What does exec family return?

1 Answers  


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

2 Answers   NetApp,


if one of the critical section code (linked list) is under ISR & another one in kernel thread ? How you will synchronize for this critical section code ?

4 Answers   NetApp,


linux system its not booting up its showing groub error what i need to do?

4 Answers   Wipro,


why the kernel panic error was appering?

13 Answers   Air2Web, Allianz,


Categories