Can we use semaphore or mutex or spin lock in interrupt
context in linux kernel ?
Answer Posted / 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 |
Post New Answer View All Answers
Tell me what is null pointer and what is its use?
Tell me what is the difference between hard real-time and soft real-time os?
Explain some of the commonly found errors in embedded systems?
What is an anti-aliasing filter?
Whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?
Tell me about 3 times you failed.
What is the use of volatile keyword?
Explain what are the differences between analytical and computational modeling?
Tell me what is interaction semantics used in embedded systems?
You have two computers, and you want to get data from one to the other. How could you do it?
What are the uses of the keyword static?
How are variables mapped across to the various memories by the c compiler?
Can you please explain the difference between mutexes vs semaphores?
Explain me what is the main function of multiplexed address/data bus?
What buses are used for communication in embedded system?