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

What is a inode?

1 Answers  


Explain the properties of a object oriented programming language.

1 Answers  


Design a circuit to detect when 3 and only 3 bits are set out of 8 bits.(eg. o0101100)

13 Answers   Qualcomm, RIM,


What are the functional requirements that are used in the embedded systems?

1 Answers  


Which parameters decide the size of data type for a processor?

1 Answers  


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

1 Answers  


What are the most common errors you've found in embedded systems and how have you resolved them?

1 Answers  


How do you identify hardware errors?

1 Answers  


Describe the structure and contents of a design document, or a set of design documents, for a multi-tiered web application.

1 Answers  


What is the significance of watchdog timer in es?

1 Answers  


What is null pointer and what is its use?

1 Answers  


How to implement a fourth order butter worth lp filter at 1 khz if sampling freuency is 8 khz?

1 Answers  


Categories