gpt4 book ai didi

operating-system - 操作系统如何知道进程的执行时间

转载 作者:行者123 更新时间:2023-12-04 05:28:57 24 4
gpt4 key购买 nike

我正在重新审视操作系统 CPU 作业调度,突然一个问题出现在我的脑海中,操作系统如何在执行之前知道进程的执行时间,我的意思是在诸如 SJF(最短作业优先)之类的调度算法中,执行时间如何过程是先验计算的?

最佳答案

来自维基百科:
Another disadvantage of using shortest job next is that the total execution time of a job must be known before execution. While it is not possible to perfectly predict execution time, several methods can be used to estimate the execution time for a job, such as a weighted average of previous execution times.[1]
更多关于 http://en.wikipedia.org/wiki/Shortest_job_next

关于operating-system - 操作系统如何知道进程的执行时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12872370/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com