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
Tell me what is the need for an infinite loop in embedded systems?
What are the essential components of embedded system?
Can we put breakpoint inside isr?
What's the difference between unit test and integration test?
Explain what is the need for an infinite loop in embedded systems?
What does malloc do? What will happen if we have a statement like malloc(sizeof(0));
Tell me what is microcontroller?
Explain the difference between "set" logic, and "procedural" logic. When would you use each one and why?
Why are patterns important?
Tell me can you have constant volatile variables?
What is pass by value and pass by reference? How are structure passed as arguments?
Why is it better to use multi-threading polling then single threading model?
What is priority inheritance?
What type of scheduling is there in rtos?
What is the function of dma controlled in embedded system?