Embedded Systems Question: Download Embedded Systems PDF

Can we use semaphore or mutex or spin lock in interrupt context in linux kernel?

Tweet Share WhatsApp

Answer:

We cannot sleep in interrupt context so semaphores and mutex
can't be used.
Spinlocks can be used for locking in interrupt context.

Download Embedded Systems PDF Read All 18 Embedded Systems Questions
Previous QuestionNext Question
What is Page Fault or Page thrashing?DMA deals with which address (physical/virtual addresses)?