| 1. |
What Is Priority Inversion? |
|
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. 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. |
|