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?

Answers were Sorted based on User's Feedback



What is mutex precisely used for?..

Answer / rohil

The mutex (mutually exclusion) variables are used thread
synchroniization and for protecting the shared memory(data
segment) when multiple writes occur

Is This Answer Correct ?    23 Yes 0 No

What is mutex precisely used for?..

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

More Embedded Systems AllOther Interview Questions

How does the interrupts handle by using the threads?

0 Answers  


List out various uses of timers in embedded system?

0 Answers  


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

0 Answers  


What is the difference between hardware design and software design?

0 Answers  


What are some alternate ways to store data other than a relational database? Why would you do that, and what are the trade-offs?

0 Answers  


Given time, cost, client satisfaction and best practices, how will you prioritize them for a project you are working on? Explain why.

0 Answers  


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

0 Answers  


Please explain the difference between mutexes vs semaphores?

0 Answers  


Tell me what are the different types of buses used by the embedded systems?

0 Answers  


What are the different types of buses used by the embedded systems?

0 Answers  


Hi Guru here.......my question is....... Is it necessary to start the execution of a program from the main() in C?

4 Answers  


Tell me what is the need for dmac in es?

0 Answers  


Categories