• Spinlocks and Semaphores

    From sarthak.kelapure@gmail.com@21:1/5 to All on Tue Jan 8 09:36:49 2019
    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)