10 lines
No EOL
457 B
Markdown
10 lines
No EOL
457 B
Markdown
|
|
What are the two common protocols used to solve the Priority Inversion problem?
|
|
|
|
---
|
|
|
|
🛡️
|
|
|
|
1. **Priority Inheritance Protocol**: The low-priority thread "inherits" the high-priority of the thread it is blocking until it releases the lock.
|
|
2. **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).
|
|
|