The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
0answers
31 views

What does raw_spinlock mean? [on hold]

I was studying struct raw_spinlock which is in the /usr/src/linux/include/linux/spinlock_types.h was like this: typedef struct raw_spinlock { arch_spinlock_t raw_lock; #ifdef ...
11
votes
3answers
19k views

what is the difference between spin locks and semaphores?

What are the basic differences between spin locks and semaphores in action?
2
votes
3answers
8k 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 ...
20
votes
4answers
24k views

What is a spinlock in Linux?

I would like to know about spinlocks in detail? Could someone explain that to me?