某系统中有 3 个进程 P1、P2、P3,其到达时间(AT)和运行时间(BT)如下表所示。若采用抢占式调度算法,下列哪种算法的平均周转时间(周转时间 = 完成时间 - 到达时间)最小?
$$
\begin{array}{|c|c|c|}
\hline
\text{进程} & \text{到达时间(AT)} & \text{运行时间(BT)} \\
\hline
\text{P1} & 0 & 4 \\
\hline
\text{P2} & 1 & 1 \\
\hline
\text{P3} & 2 & 1 \\
\hline
\end{array}
$$
A. 先来先服务(FCFS)
B. 非抢占式短作业优先(SJF)
C. 抢占式短作业优先(SJF)
D. 静态优先级(优先级:P1>P2>P3)
登录后提交答案
暂无评论,来抢沙发