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 are hard and soft real time systems?

0 Answers  


Why is java used in embedded systems?

0 Answers  


What is the significance of watchdog timer in es?

0 Answers  


What is size of character, integer, integer pointer, character pointer?

0 Answers  


What is the function of watchdog timer in embedded system?

0 Answers  






Why is java mostly used in embedded systems?

0 Answers  


Tell me what is the function of dma controlled in embedded system?

0 Answers  


What are the qualifiers in c?

0 Answers  


Explain interrupt latency and how can we decrease it?

0 Answers  


Can we use any function inside isr?

0 Answers  


What is meant by a sandbox.

0 Answers  


Please write a program to show the functionality of power-save super loop?

0 Answers  


Categories