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 meant by a sandbox.
Tell me is count down_to_zero loop better than count_up_loops?
What are the most common errors you've found in embedded systems and how have you resolved them?
Why is java mostly used in embedded systems?
Explain the differences between analytical and computational modeling?
Tell me how does the interrupts handle by using the threads?
Which is the best way to write loops?
Is tasklets or workqueues or softirqs are scheduled by the scheduler?
What is the repository pattern? Why are patterns important?
What is mutex precisely used for?
Tell me how are macros different from inline functions?
What's so great about <cool web technology of the day>?