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

Explain the difference between a microcontroller and an embedded system?

950


Explain what is embedded system in a computer system?

828


What buses are used for communication in embedded system?

882


Tell me why cannot arrays be passed by values to functions?

869


Tell me what are real-time embedded systems?

1008


Describe the life-cycle of a software development (application design) process.

871


Explain me what is endianness of a system and how do different systems communicate with each other?

860


Explain me what is kernel paging?

853


What are the most common errors you've found in embedded systems?

898


Can you have constant volatile variables?

823


What is the need for having multibyte data input and output buffers in case of device ports?

936


What is the task of the pre-processor?

982


Tell me can a pointer be volatile?

949


Tell me what are buses used for communication in embedded system?

906


What source control systems have you worked with?

1061