现代操作系统中典型的调度时间量
操作系统进程/线程调度量程的典型持续时间是多少?我意识到这可能会因调度算法、优先级、工作负载、硬件等而异,因此我期望答案带有条件/假设,或者是大概的。
我可以从通过 Google 找到的各种操作系统课堂笔记中找到一些似乎暗示了 16 毫秒量级的示例,但我不知道这些示例的现实依据如何。
What are typical durations of an operating system process/thread scheduling quantum? I realize that this can vary with the scheduling algorithm, priorities, workloads, hardware, etc., so I'm expecting answers to come with conditions/assumptions, or to be ballpark.
I can find examples that seem to suggest something on the order of 16 milliseconds from various OS class notes found via Google, but I have no idea how grounded in reality these examples are.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据这个问题的答案:如何知道linux调度程序时间片?
Linux 将根据延迟目标更改时间片,但默认为 0.75 毫秒到 6 毫秒之间。
根据此问题的答案: https://superuser.com/questions/1326252/changing-windows -thread-sheduler-timeslice
Windows 使用 20 毫秒到 120 毫秒之间的时间片,具体取决于 Windows 版本以及相关程序是否位于前台。
According to answers to this question: How to know linux scheduler time slice?
Linux will change the timeslice based on latency goals, but defaults to somewhere between 0.75 ms and 6 ms.
Acoording to answers to this question: https://superuser.com/questions/1326252/changing-windows-thread-sheduler-timeslice
Windows uses timeslices between 20 msec and 120 msec, depending on the version of windows and whether the program in question is in the foreground.
在抢占式多任务操作系统中允许进程不间断运行的时间段。
The period of time for which a process is allowed to run uninterrupted in a pre-emptive multitasking operating system.