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

Explain how does combination of functions reduce memory requirements in embedded systems?

0 Answers  


wat are the different rtos available? wat is the difference beetween RTOS ans OS

8 Answers   LG Soft,


Have you designed ui, user interface?

0 Answers  


Explain what is the difference between mutexes and semaphores?

0 Answers  


What are the different types of customizations that is used with the “volatile” keyword?

0 Answers  






If your database was under a lot of strain, what are the first few things you might consider to speed it up?

0 Answers  


While writing interrupt handlers (ISR), which are points needed to be considered ?

5 Answers   Broadcom, nvidia,


Tell me what is microcontroller?

0 Answers  


How can you optimize the i/o performance?

0 Answers  


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

4 Answers   Wipro,


What is the function of simple thread poll in embedded system?

0 Answers  


Explain what are the uses of the keyword static?

0 Answers  


Categories