457 B
457 B
What are the two common protocols used to solve the Priority Inversion problem?
🛡️
- Priority Inheritance Protocol: The low-priority thread "inherits" the high-priority of the thread it is blocking until it releases the lock.
- Priority Ceiling (Priority Protect) Protocol: The priority of the thread holding the lock is elevated to a predefined "ceiling" value (the highest priority of any thread that might ever need that lock).