Skip to content

PThread Priority Inheritance #999

Answered by timcanham
SterlingPeet asked this question in Q&A
Discussion options

You must be logged in to vote

Priority inheritance solves a particular deadlock problem in RTOSes, priority inversion:

https://en.wikipedia.org/wiki/Priority_inversion

If a low-priority task is holding a mutex in a priority inversion condition, it will temporarily raise the priority of of the lower priority task to free up the higher priority task. It will only do this if the mutex has that attribute enabled, which is why we always enable it in our code. In "regular" Linux userspace, the tasks are round-robined so one task can't hold the resource forever.

Are you thinking of removing the setting to solve a particular problem?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SterlingPeet
Comment options

Answer selected by SterlingPeet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants