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...

What is mutex precisely used for?

Answer Posted / achal

The above is correct. To be more specific, a CPU might need
to access some hardware device say I2c interface. Now if 2
processes in running state try to acquire and use I2c for
some data transfer, it might create problems, when one of
them hasn't finished its operations with the device. So
whenever some process has to make use of I2C it should lock
upon the mutex object for I2c device. And after the
operation gets finished it unlocks the mutex. Now some
other process can use I2c by mutex lock.
Similarly mutex object can be used to safegaurd some other
device resources.

Is This Answer Correct ?    22 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is meant by a sandbox, why you would use one, and identify examples of sandboxes in the wild.

829


What is refactoring? Name three common refactorings.

995


Accessing fixed memory locations

830


What's risc architecture?

798


Mention what are buses used for communication in embedded system?

804


What kinds of problems can you hit with lockless model?

906


Explain interrupt latency and how can we decrease it?

769


What is dma in an embedded system?

876


What's your experience with technical documentation?

804


Explain the difference between mutexes vs semaphores?

804


Please explain can structures be passed to the functions by value?

734


Have you developed software testing procedures for new systems and performed qa, quality assurance, or audits?

772


Who are the gang of four? Why should you care?

832


what is meant by a forward reference in c?

765


Tell me how many types of ipc mechanism you know?

775