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

Mention how I/O devices are classified for embedded system?

547


How many types of ipc mechanism you know?

432


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

450


Tell me why does pre-emptive multi-threading used to solve the central controller problem?

460


Explain what are the uses of the keyword static?

451






What is an anti-aliasing filter?

499


What do you do to stay abreast of the latest technologies and tools?

476


If a system goes blank, how do you debug it?

1393


What is interrupt latency and how can we decrease it?

447


Can we put breakpoint inside isr?

416


Describe the life-cycle of a software development (application design) process.

419


What are the languages used in embedded system?

445


What is the purpose of the segment register?

432


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

449


How does input/output bus functions?

457