Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Why is it better to use multi-threading polling instead of a single threading model?

0 Answers  


What are the advantages and disadvantages of separation of concerns?

0 Answers  


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

0 Answers  


Significance of watchdog timer in embedded systems.

0 Answers  


What's risc architecture?

0 Answers  


What is the purpose of a watchdog timer?

0 Answers  


Explain what is embedded system in a computer system?

0 Answers  


What is kernel paging?

0 Answers  


What are recursive functions? Can we make them in line?

0 Answers  


What's the difference between asynchrony and concurrency?

0 Answers  


Explain me what is spin lock?

0 Answers  


What is interrupt latency? How can you reduce it?

0 Answers  


Categories