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

What is difference between binary semaphore and mutex?

917


Tell me what are the qualifiers in c?

945


Mention what are the essential components of embedded system?

1043


What's the difference between locking and lockless (optimistic and pessimistic) concurrency models?

964


How to create a child process in linux?

1074


Tell me how are macros different from inline functions?

929


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

837


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

857


What software languages have you used to design, develop, and debug software application interfaces?

887


If you've integrated new software in an existing system, tell us how you evaluated and identified the requirements for this new technology.

968


What value do daily builds, automated testing, and peer reviews add to a project? What disadvantages are there?

864


What are the languages used in embedded system?

852


Tell me what is the need for an infinite loop in embedded systems?

895


Why is it better to use multi-threading polling instead of a single threading model?

1047


How are macros different from functions?

782