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 top half & bottom half of a kernel?

760


What is watchdog timer?

847


What are the different types of embedded systems?

811


What do you do to stay abreast of the latest technologies and tools?

835


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

780


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

798


What is a 'volatile' variable?

798


Tell me why embedded system is useful?

788


What is difference between binary semaphore and mutex?

865


What elements of oo design are most prone to abuse? How would you mitigate that?

931


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

810


what is meant by a forward reference in c?

770


Tell me what is the function of dma controlled in embedded system?

800


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

799


Tell me can include files be nested?

782