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
Can we use printf inside isr?
Tell me what are the different types of customizations that is used with the “volatile” keyword?
Tell us what is the need for an infinite loop in embedded systems?
What is so great about
Explain some of the commonly found errors in embedded systems?
How are local and global variables are allocated by compiler.
Describe a pattern that is not the factory pattern?
Explain what is the need for an infinite loop in embedded systems?
What are real-time embedded systems?
Can we put breakpoint inside isr?
What are the 4 types of inheritance relationship?
Explain the difference between a microcontroller and an embedded system?
Can you name the differences between object-oriented and component-based design?
Do you know what is priority inheritance?
Mention what are buses used for communication in embedded system?