Embedded Software Engineer Question:

Download Job Interview Questions and Answers PDF

Tell me whether we can use semaphore or mutex or spinlock in interrupt context in Linux Kernel?

Embedded Software Engineer Interview Question
Embedded Software Engineer Interview Question

Answer:

Semaphore or Mutex cannot be used for interrupt context in Linux Kernel. While spinlocks can be used for locking in interrupt context.

Download Embedded Software Engineer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain various uses of timers in embedded system?Do you know what is priority inversion?