Skip to content

Commit

Permalink
Fixed a spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytaxii committed Feb 22, 2022
1 parent 59f72fb commit af25e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 文章/进程管理/任务调度.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* SCHED_IDLE:空闲时间才会跑的任务
* CFS:完全公平调度策略,较为特殊的一种策略。CFS 会为每一个任务安排一个虚拟运行时间 vruntime。如果一个任务在运行,随着一个个 CPU时钟tick 的到来,任务的 vruntime 将不断增大,而没有得到执行的任务的 vruntime 不变。由此,当调度的时候,vruntime较小的就拥有较高的优先级。 vruntime的实际计算方式和权重相关,由此保证了优先级高的按比例拥有更多的执行时间,从而达到完全公平。

## 三. 调度相关的架构体
## 三. 调度相关的结构体
  首先,我们需要一个结构体去执行调度策略,即sched_class。该类有几种实现

* stop_sched_class 优先级最高的任务会使用这种策略,会中断所有其他线程,且不会被其他任务打断;
Expand Down

0 comments on commit af25e66

Please sign in to comment.