Questions tagged [spinlock]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
208 views

How spin lock is implemented in Linux?

I'm thinking about how the feature "prevent from context switch" is achieved in Linux for a spinlock. A big picture / pseudocode is acceptable since I just what to know the logic behind it.
0
votes
1answer
74 views

Basic spinlock doubt

I read that in spinlock, process keeps on waiting for the lock continuously in a loop until it receives signal(lock) or release(lock) from other process. This causes busy waiting and hence CPU cycles ...
1
vote
1answer
681 views

how to monitor spinlocks

I'm wondering how I could monitor spinlocks. At my client, we have cpu soft lockup failure, for which, if I understand well, spinlock is a likely cause. Different team use that server for predictive ...
15
votes
3answers
34k views

what is the difference between spin locks and semaphores?

What are the basic differences between spin locks and semaphores in action?
7
votes
4answers
18k views

Why are spin locks good choices in Linux Kernel Design instead of something more common in userland code, such as semaphore or mutex?

I understand that Spinlocks are real waste in Linux Kernel Design. I would like to know why is it like spin locks are good choices in Linux Kernel Design instead of something more common in userland ...
30
votes
5answers
48k views

What is a spinlock in Linux?

I would like to know about Linux spinlocks in detail; could someone explain them to me?