- Forum
- Usenet
- COMP.OS.LINUX.DEVELOPMENT
-
Spinlocks and Semaphores
I have few queries, I think you can help me with them. Please do try.
1. The Linux kernel enforces the following policy: a process is not allowed to try to acquire a semaphore while it is already holding a spin lock. Why is it so and what will happen if we break this rule?
2. What are the problems that occurs when using spinlocks on a single processor system(preemptible kernel and a non-preemptible kernel)
3. What concurrency issues can arise when the up() (increment counter) and down() (decrement counter) functions of a semaphore are not executed atomically. How is it important?
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)