This is the highest priority runnable task on the system and is the task the scheduler will run.
这就是系统中优先级最高的可执行进程,也是马上会被调度执行的进程。
Therefore, each runnable task chases the other to maintain a balance of execution across the set of runnable tasks.
因此,每个可运行的任务都会追赶其他任务以维持整个可运行任务集合的执行平衡。
The Runnable task performed by the service is the bulk of the code from Listing 5. I've added some additional checks to improve building the URLs for the next page.
该服务执行的Runnable任务是清单5中的大量代码。我添加了一些额外的检查,以改进构建下一个页面的URL的过程。
So, if each runnable task runs its sched_slice worth of time, it has spent sched_period time, and each task will have run an equal amount of time proportional to its weight.
因此,如果每个可运行任务运行与sched_slice等价的时间,那么将花费的时间为sched _ period,每个任务将运行与其权重成比例的时间量。
Now we cannot use Runnable as our task representation; we must create a new representation that allows exceptions to be thrown across the method invocation.
现在我们不能使用Runnable来表示执行的任务,而必须创建一种新的表示方法以允许在方法调用中抛出异常。
The framework is easy to use for most benchmarking needs: just package the target code into some type of task object (either a Callable or Runnable) and then make a single call to the benchmark class.
这个框架很容易满足大多数基准测试需求:只要把目标代码打包成特定类型的任务对象(Callable或Runnable),然后调用benchmark类。
Second, given that this task class is a Runnable, the result of the array access needs to be assigned to the state field (and state needs to be used in an overriding toString method) to prevent DCE.
第二,既然这个任务类是Runnable,为了防止DCE,必须把数组访问的结果赋值给state字段(以及覆盖的toString方法中需要使用的state)。
Sometimes throwing InterruptedException is not an option, such as when a task defined by Runnable calls an interruptible method.
有时候抛出InterruptedException并不合适,例如当由Runnable定义的任务调用一个可中断的方法时,就是如此。
If your task is a Runnable, make sure that the computation is used to calculate some internal state that is used by task's toString method (which must override the one from Object).
如果任务是Runnable,就要确保任务的toString方法(这个方法必须覆盖object对象的方法)使用的某个内部状态是用这个计算获得的。
The task accounts for its time with the CPU by adding its execution time to the virtual runtime and is then inserted back into the tree if runnable.
任务通过将其运行时间添加到虚拟运行时,说明其占用CPU的时间,然后如果可运行,再插回到树中。
So when a new task becomes runnable, there are strict requirements for its placement.
因此,当一个新任务变为可运行状态时,对其位置有严格的要求。
Dequeue_task: When a task is no longer runnable, this function is called to keep the corresponding scheduling entity out of the red-black tree. It decrements the nr_running variable.
dequeue _ task:当某个任务退出可运行状态时调用该函数,它将从红黑树中去掉对应的调度实体,并从nr_running变量中减1。
As Far as I Understand, scheduler latency is the time incurred in making the task runnable again.
据我了解,调度延迟是使任务运行时间再次发生。
As Far as I Understand, scheduler latency is the time incurred in making the task runnable again.
据我了解,调度延迟是使任务运行时间再次发生。
应用推荐