全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Scheduling policies?

又称: scheduling policy · first come first served · shortest job first · shortest remaining time first · time slice

Definition 10.5 University Computer Science — Year 3 · 第 10 章 — The Kernel and CPU Scheduling

A scheduling policy chooses which ready job runs next, and for how long. First come first served runs the jobs to completion in their order of arrival. Shortest job first runs to completion the ready job with the smallest burst. Shortest remaining time first is its preemptive form: whenever a job arrives, the job with the least work left runs. Round robin runs the ready jobs in turn, each for at most a time slice qq, the quantum, then puts it at the back of the queue.

The timelines of . Shortest job first moves E, the shortest, before B, D and C; shortest remaining time first also interrupts A, at 1, and D, at 6. Round robin gives every job the processor within 9 units of its arrival, at the price of finishing A, B and C later than first come first served does.
The timelines of Output 10.4. Shortest job first moves E, the shortest, before B, D and C; shortest remaining time first also interrupts A, at 1, and D, at 6. Round robin gives every job the processor within 9 units of its arrival, at the price of finishing A, B and C later than first come first served does.
在原文中阅读 →