Embedded Software Engineer Question:
Tell me whether we can use semaphore or mutex or spinlock in interrupt context in Linux Kernel?
Answer:
Semaphore or Mutex cannot be used for interrupt context in Linux Kernel. While spinlocks can be used for locking in interrupt context.
Previous Question | Next Question |
Explain various uses of timers in embedded system? | Do you know what is priority inversion? |