Can we use semaphore or mutex or spin lock in interrupt
context in linux kernel ?
Answers were Sorted based on User's Feedback
Answer / achilles
We cannot sleep in interrupt context so semaphores and mutex
can't be used.
Spinlocks can be used for locking in interrupt context.
| Is This Answer Correct ? | 31 Yes | 6 No |
Answer / jagannath
spinlock with irq saved is the best choice in interrupt
handler.
| Is This Answer Correct ? | 5 Yes | 2 No |
What is the purpose of the segment register?
Can you name the differences between object-oriented and component-based design?
Tell me can static variables be declared in a header file?
Tell me what is the need for having multibyte data input and output buffers in case of device ports?
Tell me what are the functional requirements that are used in the embedded systems?
What is the significance of watchdog timer in es?
Tell me what is a watchdog timer?
Explain the concept of separation of concerns?
Can we use any function inside isr?
What is the need for having multibyte data input and output buffers in case of device ports?
Tell me what is the function of dma controlled in embedded system?
What is mutex precisely used for?