What is priority inversion ? and What is the solution ?

Answer Posted / banavathvishnu

priority
Task A----> 3
Task B----> 2
Task C----> 1

If Task A is holding the semaphore and executing and mean
while Task C occurs and if it is waiting for same Semaphore
Task A is holding, Task C has to wait untill Task A is done
with the resources and release semaphore.

Mean while if Task B is occured which doesnot require the
semaphore, then Task A will be in Ready state and Task B
will execute, after Task B is done, control goes to Task A,
till Task A completes its work Task C even though has
highest priority it has to wait for the semaphore to
release.

This is a problem in RTOS and can be resolved using
Priority Inheritance

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category