Why spinlocks are used?



Why spinlocks are used?..

Answer / Jeetendra Srivastava

Spinlocks are used to minimize the context-switch overhead in situations where contention for a resource is expected to be low or temporary. Instead of blocking the thread and putting it to sleep, a spinning thread continues to execute and periodically checks if the lock is available.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux General Interview Questions

How do I find and delete files in linux?

1 Answers  


Is there any relation between modprobe.conf file and network devices?

1 Answers  


What is the virtual desktop in linux?

1 Answers  


What are the significance of semaphores what are the different types of semaphores?

1 Answers  


how do you list and flush all ip tables in linux?

1 Answers   Arigo Infotech,


What do you understand by Linux Kernal? Is it legal to edit it?

1 Answers  


If a volume group named vg0 already exists and we need to extend this volume group up to 4gb. How will you do it?

1 Answers  


Does windows run on linux?

1 Answers  


How to connect to a remote server via ssh?

1 Answers  


Can I put linux on my laptop?

1 Answers  


Does linux run faster than windows?

1 Answers  


What is the difference between linux and redhat?

1 Answers  


Categories