Leaves in a red-black tree contain no information, but internal nodes represent one or more tasks that are runnable.
红黑树的叶子不包含信息,但是内部节点代表一个或多个可运行的任务。
The scheduler then, to be fair, picks the left-most node of the red-black tree to schedule next to maintain fairness.
为了公平,调度器然后选取红黑树最左端的节点调度为下一个以便保持公平性。
But rather than maintain the tasks in a run queue, as has been done in prior Linux schedulers, the CFS maintains a time-ordered red-black tree (see Figure 1).
但是与之前的Linux调度器不同,它没有将任务维护在运行队列中,CFS维护了一个以时间为顺序的红黑树(参见图1)。
应用推荐