What is mutex precisely used for?
Answers were Sorted based on User's Feedback
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 |
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 |
In 8085 microprocessor READY signal does.which of the following is incorrect statements [a]It is input to the microprocessor [b] It sequences the instructions
Can you please explain the difference between mutexes vs semaphores?
Tell me significance of watchdog timer in embedded systems?
What is the purpose of a watchdog timer?
What are the differences between mocks and stubs/fakes and where you might use them.
Explain various uses of timers in embedded system?
What are the most common errors you've found in embedded systems and how have you resolved them?
What are the essential components of embedded system?
what is the difference between embedded systems and the system in which rtos is running?
What is the difference between testing and verification?
What are the types of embedded system?
Explain me what is the main function of multiplexed address/data bus?