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 |
Why is it better to use multi-threading polling instead of a single threading model?
What are the advantages and disadvantages of separation of concerns?
Tell me why does pre-emptive multi-threading used to solve the central controller problem?
Significance of watchdog timer in embedded systems.
What's risc architecture?
What is the purpose of a watchdog timer?
Explain what is embedded system in a computer system?
What is kernel paging?
What are recursive functions? Can we make them in line?
What's the difference between asynchrony and concurrency?
Explain me what is spin lock?
What is interrupt latency? How can you reduce it?