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
How can you reduce memory requirements in embedded systems?
Explain me what is the main function of multiplexed address/data bus?
Can we put breakpoint inside isr?
Is count down_to_zero loop better than count_up_loops?
Why are patterns important?
How does combination of functions reduce memory requirements in embedded systems?
What are the most common errors you've found in embedded systems and how have you resolved them?
What's yagni? Is this list of questions an example?
What are the differences between mocks and stubs/fakes and where you might use them.
What type of software simulator and developer have you used?
How does the addition of service orientation change systems? When is it appropriate to use?
What is your experience with technical documentation?
Explain what happens when recursion functions are declared inline?
What is the use of volatile keyword?
What is size of character, integer, integer pointer, character pointer?