Priority Inheritance of Threads
- 更新时间2023-02-17
- 阅读时长1分钟
Priority Inheritance of Threads
When a lower-priority thread holds a shared resource needed by a higher-priority thread, the real-time controller implements priority inheritance by temporarily increasing the priority of the thread holding the shared resource so that the resource can return promptly to the higher-priority thread.
Priority inheritance helps prevent priority inversion, which is when threads of lower priority indirectly preempt threads of higher priority.
相关内容
- Determinism and Jitter in a Real-Time System
Determinism is the characteristic that describes how consistently a system executes tasks within a time constraint.
- Scheduling Behavior in Real-Time Operating Systems
The way a real-time operating system (RTOS) schedules tasks guarantees that high-priority tasks execute within precise time constraints. Understanding how scheduling works in an RTOS can help you set the right priorities for deterministic tasks in your application.
- Minimizing Jitter in a Deterministic Loop
The variation between the expected timing and the actual timing for a task is known as jitter. Minimize jitter in deterministic loops to ensure precise timing in your real-time application.