
Question:An embedded real-time operating system uses a certain scheduling algorithm. When a task is nearing its deadline, the scheduling algorithm adjusts the priority of that task to the highest in the system, allowing it to acquire CPU resources for execution. What type of scheduling algorithm is this?.
Answer and Analysis:(For Reference Only)
Answer: C
Analysis:
An embedded real-time system is a dedicated system designed for a specific function, and its task scheduling algorithm is closely related to the system’s functionality. Typically, real-time systems have various scheduling algorithms. The priority scheduling algorithm assigns a relatively fixed priority order to each task, and the scheduler prioritizes higher priority tasks for execution in a time-ordered manner; the preemptive priority scheduling algorithm allows high-priority tasks to preempt low-priority tasks for execution; the latest deadline scheduling algorithm schedules tasks based on the time closest to their deadlines; the earliest deadline scheduling algorithm selects tasks based on the earliest deadline for scheduling.
👇 👇 👇