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 |
Tell me what are the different types of customizations that is used with the “volatile” keyword?
What is isr? Can they be passed any parameter and can they return a value?
What kinds of problems can you hit with locking model? And a lockless model?
Explain whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?
Which parameters decide the size of data type for a processor?
Why would you choose java in embedded systems?
Can we use any function inside isr?
Tell me what are the different storage classes in c?
What kinds of problems can you hit with lockless model?
What type of scheduling is there in rtos?
How do you identify hardware errors?
Explain what is embedded system in a computer system?