Can we use semaphore or mutex or spin lock in interrupt
context in linux kernel ?

Answers were Sorted based on User's Feedback



Can we use semaphore or mutex or spin lock in interrupt context in linux kernel ?..

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

Can we use semaphore or mutex or spin lock in interrupt context in linux kernel ?..

Answer / jagannath

spinlock with irq saved is the best choice in interrupt
handler.

Is This Answer Correct ?    5 Yes 2 No

Can we use semaphore or mutex or spin lock in interrupt context in linux kernel ?..

Answer / baazicha

You can give a binary semaphore from ISR.

Is This Answer Correct ?    2 Yes 11 No

Post New Answer

More Embedded Systems AllOther Interview Questions

What is interrupt latency? How can you reduce it?

0 Answers  


What are the 4 types of inheritance relationship?

0 Answers  


Why are interfaces important?

0 Answers  


Why is java used in embedded systems?

0 Answers  


What are the most common errors you've found in embedded systems?

0 Answers  


what is a pure function in arm terminology?

0 Answers  


What is the function of watchdog timer in embedded system?

0 Answers  


What are the characteristics of embedded system?

0 Answers  


Explain what happens when recursion functions are declared inline?

0 Answers  


Is count down_to_zero loop better than count_up_loops?

0 Answers  


Tell me why is it better to use multi-threading polling then single threading model?

0 Answers  


Tell me about 3 times you failed.

0 Answers  


Categories