You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add `priority_orig` into `struct thread` to store original priority.
We don't need to know the original priority except when we retrieve or
change priority, but just know the representative priority value either
if that value is donated or original.
Donation is not implemented yet and `thread_set_priority` is modified to
deal with donated priority as well as original priority that is already
implemented.
Donates priority recursively by `lock_donate()` and after get the lock,
`lock_retrieve()` retrieves the original priority or maximum priority of
donated priorities for locks that the thread is holding.
Note that list sorting in `sema_up()` is applied to reorder threads by
changed priority due to donations.
Donates priority recursively by `lock_donate()` and after get the lock,
`lock_retrieve()` retrieves the original priority or maximum priority of
donated priorities for locks that the thread is holding.
Note that list sorting in `sema_up()` is applied to reorder threads by
changed priority due to donations.
hangpark
changed the title
Implement priority donations
Implement priority donations for locks
Apr 1, 2017
Implement priority donations to avoid priority inversions.
The text was updated successfully, but these errors were encountered: