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 rtos in an embedded system?
What type of software simulator and developer have you used?
What are real-time embedded systems?
How do you learn about the latest technology trends?
can a pointer be volatile ? Explain.
Tell me what is embedded system in a computer system?
What is the difference between asynchrony and concurrency?
Tell me what are the commonly found errors in embedded systems?
What is inversion of control? How does that relate to dependency injection?
What is Difference between CAN and GMLAN
Tell me what is rtos?
What are the rules followed by mutexes?