Can we use semaphore or mutex or spin lock in interrupt
context in linux kernel ?
Answer Posted / jagannath
spinlock with irq saved is the best choice in interrupt
handler.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What's your experience with qa engineering?
What is the difference between a web server, web farm and web garden? How would your web application need to change for each?
What's the difference between unit test and integration test?
Can you have constant volatile variables?
Why does pre-emptive multi-threading used to solve the central controller problem?
Can we use printf inside isr?
Discuss the differences between mocks and stubs/fakes and where you might use them (answers aren't that important here, just the discussion that would ensue).
Explain the differences between analytical and computational modeling?
What are some examples of anti-patterns?
Tell me why is java mostly used in embedded systems?
What is the last programming book you read?
How can you reduce memory requirements in embedded systems?
What does malloc do? What will happen if we have a statement like malloc(sizeof(0));
Explain how to reduce interrupt latency?
What are the 4 types of inheritance relationship?