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

Tell me what are the different types of customizations that is used with the “volatile” keyword?

0 Answers  


What is isr? Can they be passed any parameter and can they return a value?

0 Answers  


What kinds of problems can you hit with locking model? And a lockless model?

0 Answers  


Explain whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?

0 Answers  


Which parameters decide the size of data type for a processor?

0 Answers  


Why would you choose java in embedded systems?

0 Answers  


Can we use any function inside isr?

0 Answers  


Tell me what are the different storage classes in c?

0 Answers  


What kinds of problems can you hit with lockless model?

0 Answers  


What type of scheduling is there in rtos?

0 Answers  


How do you identify hardware errors?

0 Answers  


Explain what is embedded system in a computer system?

0 Answers  


Categories