process - 优先老化作为进程调度策略。有哪些优点和缺点?

标签 process scheduling

我一直在对优先级调度算法进行一些研究,虽然我发现优先级老化是一个非常基本(并且看似合理)的策略,但我几乎找不到有关它的信息。有人可以让我知道实现算法的问题和优势吗?谢谢!

最佳答案

似乎优先级老化会根据任务运行的时间和/或任务消耗的资源量来改变任务的优先级(通常较低)。

IBM 对 有解释priority aging 在用于 Linux、Unix 和 Windows 的 DB2 版本 9.7 中。

优先老化的最大优势来自IBM的解释:

A simple approach that you can use to help short queries to run faster is to define a series of service classes with successively lower levels of resource priority and threshold actions that move activities between the service subclasses. Using this setup, you can decrease, or age, the priority of longer-running work over time and perhaps improve response times for shorter-running work without having detailed knowledge of the activities running on your data server.



最大的缺点是优先级老化比先进先出队列更难实现,并且可能不会提供任何响应时间改进。

关于process - 优先老化作为进程调度策略。有哪些优点和缺点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3155096/

相关文章:

.net - 如何避免以错误的顺序从 Process 类接收事件?

python - 有没有办法 "nice"Python脚本的方法

c++ - 查找线程之间的最小队列大小

windows - 构建调度应用程序需要研究哪些 Windows API?

java - 大规模时间触发事件处理

c - 无效指针类型转换为 pid_t 不正确

c - 在 C 中重定向子进程的输入和输出

android - 为什么我无法以编程方式在 Android 中看到所有正在运行的应用程序?

android - 进程名称是否与android中的包名称相同?

linux - linux调度进程还是线程?