Linux Kernel preemption during spin lock, mutex lock

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LinuxPenseur
    New Member
    • Jun 2011
    • 1

    Linux Kernel preemption during spin lock, mutex lock

    Spin Lock
    I have studied that when a process running in the kernel space is holding a spin lock, it cannot be preempted unless it blocks, sleeps or completes the task. Is my understanding correct?

    Mutex Lock
    Does the process running in the kernel space and holding a mutex lock gets preempted in both the cases below:
    1. a high priority process comes or
    2. the process timeslice is exhausted ?

    -LinuxPenseur
Working...