(5points)ThereexisttwoprocessesP1andP2inamultiprogrammingbatchsystem
P2entersintothesystem10mslaterthanP1,andtheirexecutingtraces,i
alternatingsequencesofCPUburstsandI/Obursts,areasfollows:P1:computing,80ms→I/Ooperation,100ms→computing,40msP2:computing,130ms→I/Ooperation,50ms→computing,50msItisassumedthattimecostsofCPUschedulingandprocessswitchareomitted,whatisthemaximalthroughputforcompletingthesetwoprocesses,andwhy
Answers:1
最大吞吐量=2/(80+130+50+50)=2/310=1/155个/ms(3points)2
当P1、P2的CPU计算和I/O操作最大程度并行执行时,2个进程总的执行时间最短,系统吞吐量达到最大,如下图所示;(2points)2
Inacomputersystem,theuserssubmittothesystemtheircomputationaltasksasjobs,andallthesejobsarethenstoredasthestandbyjobsonthedisk
Thejobscheduler(alsoknownaslong-termscheduler)selectsthestandbyjobsonthedisk,createsnewprocessesinmemoryforthem,andthenst