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
Explain what is meant by a sandbox, why you would use one, and identify examples of sandboxes in the wild.
What is refactoring? Name three common refactorings.
Accessing fixed memory locations
What's risc architecture?
Mention what are buses used for communication in embedded system?
What kinds of problems can you hit with lockless model?
Explain interrupt latency and how can we decrease it?
What is dma in an embedded system?
What's your experience with technical documentation?
Explain the difference between mutexes vs semaphores?
Please explain can structures be passed to the functions by value?
Have you developed software testing procedures for new systems and performed qa, quality assurance, or audits?
Who are the gang of four? Why should you care?
what is meant by a forward reference in c?
Tell me how many types of ipc mechanism you know?