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

Why do we need virtual device drivers when we have physical device drivers?

0 Answers  


Show me a portfolio of all the applications you worked on, and tell me how you contributed to design them.

0 Answers  


Explain the difference between "set" logic, and "procedural" logic. When would you use each one and why?

0 Answers  


Advantages and disadvantages of using macro and inline functions?

0 Answers  


What does malloc do? What will happen if we have a statement like malloc(sizeof(0));

0 Answers  


What typecast is applied when we have a signed and an unsigned int in an expression?

0 Answers  


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

0 Answers  


How does the interrupts handle by using the threads?

0 Answers  


Discuss the differences between mocks and stubs/fakes and where you might use them (answers aren't that important here, just the discussion that would ensue).

0 Answers  


How does the addition of service orientation change systems? When is it appropriate to use?

0 Answers  


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

0 Answers  


What are the uses of the keyword static?

0 Answers  


Categories