调度器的工作非常简单:它在优先级最高的队列中选择一个任务来执行。
The job of the scheduler is simple: choose the task on the highest priority list to execute.
为了防止任务独占cpu从而会饿死其他需要访问CPU的任务,Linux 2.6版本的调度器可以动态修改任务的优先级。
To prevent tasks from hogging the CPU and thus starving other tasks that need CPU access, the Linux 2.6 scheduler can dynamically alter a task's priority.
决定基于每一个任务的就绪,它们的优先级关系,和特殊调度算法的实现。
This decision is based on the readiness of each task, their relative priorities, and the specific scheduling algorithm implemented.
应用推荐