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 the purpose of using critical sections?

0 Answers  


Tell me why does pre-emptive multi-threading used to solve the central controller problem?

0 Answers  


Are you familiar with design patterns? What design software have you used and in what situations?

0 Answers  


What is interaction semantics used in embedded systems?

0 Answers  


What value do daily builds, automated testing, and peer reviews add to a project? What disadvantages are there?

0 Answers  






How does the interrupt architecture works?

0 Answers  


Name three primary attributes of object-oriented design. Describe what they mean and why they're important.

0 Answers  


What is priority inheritance?

0 Answers  


What source control systems have you worked with?

0 Answers  


Why would you choose java in embedded systems?

0 Answers  


Accessing fixed memory locations

0 Answers  


Tell me what are the commonly found errors in embedded systems?

0 Answers  


Categories