我一直在对优先级调度算法进行一些研究,虽然我发现优先级老化是一个非常基本(并且看似合理)的策略,但我几乎找不到有关它的信息。有人可以让我知道实现算法的问题和优势吗?谢谢!
最佳答案
似乎优先级老化会根据任务运行的时间和/或任务消耗的资源量来改变任务的优先级(通常较低)。
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/