|
|
|
|
|
by temac
2363 days ago
|
|
A spinlock in the kernel typically only spins. You use it for the cases when you can't schedule... So it better will be for a short time only. But the concept of short time does not even exist deterministically in userspace, usually, because it can always be preempted. So don't use pure spinlocks in userspace, unless you really really know what you are doing (and that includes knowing how your kernel works in great details, in the context of how you use it). |
|