Embedded Software Engineer Question:

Download Job Interview Questions and Answers PDF

Do you know what is priority inversion?

Embedded Software Engineer Interview Question
Embedded Software Engineer Interview Question

Answer:

If two tasks share a resource, the one with higher priority will run first. However, if the lower-priority task is using the shared resource when the higher-priority task becomes ready, then the higher-priority task must wait for the lower-priority task to finish. In this scenario, even though the task has higher priority it needs to wait for the completion of the lower-priority task with the shared resource. This is called priority inversion.

Download Embedded Software Engineer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me whether we can use semaphore or mutex or spinlock in interrupt context in Linux Kernel?Tell me which parameters decide the size of data type for a processor?