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 bus trap.

1 Answers   NetApp,


1.Diff between Active and passive FTP? 2.What is anacron? 3.Diff between yum update and yum install while doing for kernel? 4.root_squash and no_root_squash does what? 5.What are the commands will you execute to find a new hardware? 6.How will you find out a lun allocated from SAN? 7.What is the main diff in CaT5 and CAT6 cable, except the 1/100 and 1/1000? 8.What is stale NFS and How will you fix it? 9.What is kernel panic error? 10.How will you recover password and shadow file, in case both got deleted. Explain the steps? 11.Explain boot process 12.What is network bonding. Explain the steps? 13.What are the exit codes returned by FSCK? 14.What is LDOM? 15.Diff between block and character device?

2 Answers   Wipro,


what is samba, what is configuration file, how it will work?

3 Answers   Wipro,


How to create secured appeche web sever ?

1 Answers   HCL,


What are system calls used for process management in linux?

0 Answers  






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

4 Answers   Wipro,


what are Softirq's and how many major numbers be allocated in the linux kernel(2.4) ?

1 Answers  


what are the backup utilites on red hat linux 4.0?

4 Answers   Wipro,


what is cups and how to configure?

7 Answers   IBM,


how to configure sendmail server on red hat linux version 4 and what and all we Require?

3 Answers   Wipro,


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

3 Answers   NetApp,


what is iptabe on redhat linux?

3 Answers   CDAC,


Categories