Do you know what is priority inversion?

Submitted by: Muhammad
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.
Submitted by: Muhammad

Read Online Embedded Software Engineer Job Interview Questions And Answers