题目内容
● 在一个CPU的计算机系统中,采用可剥夺式(也称抢占式)优先级的进程调度方案,且所有任务可以并行使用I/O设备。下表列出了三个任务T1、T2、T3的优先级、独立运行时占用CPU和I/O设备的时间。如果操作系统的开销忽略不计,这三个任务从同时启动到全部结束的总时间为 (9) ms,CPU的空闲时间共有 (10) ms。 <table style="border: currentColor; border-image: none; margin-left: 5.4pt; border-collapse: collapse;" border="1" cellspacing="0" cellpadding="0" _dj="MsoNormalTable"><tbody><tr style="height: 22.2pt;"><td width="72" style="padding: 0cm 5.4pt; border: 1pt solid windowtext; border-image: none; width: 54pt; height: 22.2pt;">任务</td><td width="72" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; padding: 0cm 5.4pt; width: 54pt; height: 22.2pt;">优先级</td><td width="324" valign="top" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; padding: 0cm 5.4pt; width: 243pt; height: 22.2pt;">每个任务独立运行时所需的时间</td></tr><tr style="height: 23.2pt;"><td width="72" style="border-width: medium 1pt 1pt; border-style: none solid solid; padding: 0cm 5.4pt; width: 54pt; height: 23.2pt;">T1</td><td width="72" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; padding: 0cm 5.4pt; width: 54pt; height: 23.2pt;">高</td><td width="324" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; padding: 0cm 5.4pt; width: 243pt; height: 23.2pt;" rowspan="3">对每个任务:占用CPU 10ms,I/O 13ms,再占用CPU 5ms</td></tr><tr style="height: 22.8pt;"><td width="72" style="border-width: medium 1pt 1pt; border-style: none solid solid; padding: 0cm 5.4pt; width: 54pt; height: 22.8pt;">T2</td><td width="72" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; padding: 0cm 5.4pt; width: 54pt; height: 22.8pt;">中</td></tr><tr style="height: 23.15pt;"><td width="72" style="border-width: medium 1pt 1pt; border-style: none solid solid; padding: 0cm 5.4pt; width: 54pt; height: 23.15pt;">T3</td><td width="72" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; padding: 0cm 5.4pt; width: 54pt; height: 23.15pt;">低</td></tr></tbody></table>