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 are hard and soft real time systems?
Why is java used in embedded systems?
What is the significance of watchdog timer in es?
What is size of character, integer, integer pointer, character pointer?
What is the function of watchdog timer in embedded system?
Why is java mostly used in embedded systems?
Tell me what is the function of dma controlled in embedded system?
What are the qualifiers in c?
Explain interrupt latency and how can we decrease it?
Can we use any function inside isr?
What is meant by a sandbox.
Please write a program to show the functionality of power-save super loop?