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 interrupt latency? How can you reduce it?
What are the 4 types of inheritance relationship?
Why are interfaces important?
Why is java used in embedded systems?
What are the most common errors you've found in embedded systems?
what is a pure function in arm terminology?
What is the function of watchdog timer in embedded system?
What are the characteristics of embedded system?
Explain what happens when recursion functions are declared inline?
Is count down_to_zero loop better than count_up_loops?
Tell me why is it better to use multi-threading polling then single threading model?
Tell me about 3 times you failed.