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 are the uses of the keyword static?
What is kernel paging?
Tell me how many types of ipc mechanism you know?
Explain the difference between testing and verification?
Mention how I/O devices are classified for embedded system?
Tell me what is null pointer and what is its use?
Tell me can static variables be declared in a header file?
In 8085 microprocessor READY signal does.which of the following is incorrect statements [a]It is input to the microprocessor [b] It sequences the instructions
Why is java mostly used in embedded systems?
What are the differences between stateless and stateful systems, and impacts of state on parallelism.
What is Difference between CAN and GMLAN
Describe a pattern that is not the factory pattern?