Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

how to configure http server on red hat linux4.0?

5 Answers   IBM,


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

1 Answers  


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

3 Answers   Wipro,


what is the difference between user APIs and kernel system calls ?

1 Answers   NetApp,


what is the diff b/w MUTEX and semaphore?

12 Answers   Sony, TCS,


What will happen when we invoke a system call and say with an example of invoking a system call ?read? for a device?

3 Answers   NetApp,


what are the backup utilites on red hat linux 4.0?

4 Answers   Wipro,


Explain process management system calls in linux?

0 Answers  


What are the signals we have in Linux

3 Answers   HCL, NetApp,


why the kernel panic error was appering?

13 Answers   Air2Web, Allianz,


what are different ways the context switch happens from user to kernel space or vice-versa ?

0 Answers   Alcatel,


What is the use of proc structure?

2 Answers   NetApp,


Categories