what is scheduler latency?

柔情痞子 提交于 2019-12-10 18:33:32

问题


This seems to be a basic question, but i couldn't find answer anywhere in googling it.

As Far As I Understand, scheduler latency is the time incurred in making the task runnable again. I mean, if there are 100 processes namely 1, 2, e.t.c, then they are executed let's say in order starting from 1. So the latency is the time that the process 1 is executed again. which means that the latency is the waiting time of the process as well as the waiting time of it when it is in runqueue ready to execute.

Or

i misunderstood whole point and sheduler latency is just nothing but the context switching time between the processes?


回答1:


Scheduling latency is the time that the system is inproductive because of scheduling tasks. It is system latency incurred because it has to spend time scheduling.

Specifically it consists of 2 elements:

  • The delay between a task waking up and actually running (the 'context switching time')
  • Time spent making scheduler decisions (the actual job of the scheduler, which consumes resources that cannot be used by real tasks anymore)


来源:https://stackoverflow.com/questions/16893797/what-is-scheduler-latency

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!