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 using critical sections?
Tell me why does pre-emptive multi-threading used to solve the central controller problem?
Are you familiar with design patterns? What design software have you used and in what situations?
What is interaction semantics used in embedded systems?
What value do daily builds, automated testing, and peer reviews add to a project? What disadvantages are there?
How does the interrupt architecture works?
Name three primary attributes of object-oriented design. Describe what they mean and why they're important.
What is priority inheritance?
What source control systems have you worked with?
Why would you choose java in embedded systems?
Accessing fixed memory locations
Tell me what are the commonly found errors in embedded systems?