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 ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what is null pointer and what is its use?

835


Tell me what is the difference between hard real-time and soft real-time os?

853


Explain some of the commonly found errors in embedded systems?

815


What is an anti-aliasing filter?

889


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

837


Tell me about 3 times you failed.

995


What is the use of volatile keyword?

876


Explain what are the differences between analytical and computational modeling?

879


Tell me what is interaction semantics used in embedded systems?

912


You have two computers, and you want to get data from one to the other. How could you do it?

826


What are the uses of the keyword static?

856


How are variables mapped across to the various memories by the c compiler?

1135


Can you please explain the difference between mutexes vs semaphores?

827


Explain me what is the main function of multiplexed address/data bus?

818


What buses are used for communication in embedded system?

836