系列文章:https://blog.csdn.net/Vince_/article/details/89054330

调度的入口

Timer interrupt is responsible for decrementing the running process’s timeslice count.When the count reaches zero, need_resched is set and the kernel runs the scheduler as soon as possible
在时钟中断中更新进程执行时间信息,如果时间片用完,则设置need_resched,在接下来的调度过程中换出正在执行的进程。

RTC(Real-Time Clock)

实时时钟,非易失性设备存储系统时间,在系统启动时,通过COMS连接设备到系统,读取对应的时间信息提供给系统设置。

System Timer

系统定时器由电子时钟以可编程频率实现,驱动系统时钟中断定期发生,也有部分架构通过减法器decrementer实现,通过计数器设定初始值,以固定频率减少直到为0,然后出发时钟中断。

The timer interrupt is broken into two pieces: an architecture-dependent and an architecture-independent
routine.
The architecture-dependent routine is registered as the interrupt handler for the system
timer and, thus, runs when the timer interrupt hits. Its exact job depends on the
given architecture, of course, but most handlers perform at least the following work:
1. Obtain the xtime_lock lock, which protects access to jiffies_64 and the wall
time value, xtime.
2. Acknowledge or reset the system timer as required.
3. Periodically save the updated wall time to the real time clock.
4. Call the architecture-independent timer routine, tick_periodic().

The architecture-independent routine, tick_periodic(), performs much more work:
1. Increment the jiffies_64 count by one. (This is safe, even on 32-bit architectures,
because the xtime_lock lock was previously obtained.)
2. Update resource usages, such as consumed system and user time, for the currently
running process.
3. Run any dynamic timers that have expired (discussed in the following section).
4. Execute scheduler_tick(), as discussed in Chapter 4.
5. Update the wall time, which is stored in xtime.
6. Calculate the infamous load average.

深入解读Linux进程调度系列(5)——调度的入口相关推荐

  1. Linux进程管理与调度-之-目录导航【转】

    转自:http://blog.csdn.net/gatieme/article/details/51456569 版权声明:本文为博主原创文章 && 转载请著名出处 @ http:// ...

  2. (6)Linux进程调度-实时调度器

    目录 背景 1. 概述 2. 数据结构 3. 流程分析 3.1 运行时统计数据 3.2 组调度 3.3 带宽控制 3.4 调度器函数分析 3.4.1 pick_next_task_rt 3.4.2 e ...

  3. Linux进程调度 - 实时调度器 LoyenWang

    背景 Read the fucking source code! --By 鲁迅 A picture is worth a thousand words. --By 高尔基 说明: Kernel版本: ...

  4. linux 2.6内核进程调度,Linux2.6内核进程调度系列--scheduler_tick()函数2.更新实时进程的时间片,...

    Linux2.6内核进程调度系列--scheduler_tick()函数2.更新实时进程的时间片, RT /** * 递减当前进程的时间片计数器,并检查是否已经用完时间片. * 由于进程的调度类型不同 ...

  5. Linux进程调度:完全公平调度器 Completely Fair Scheduler 内幕| linux-2.6

    https://www.ibm.com/developerworks/cn/linux/l-completely-fair-scheduler/index.html? 目录 Linux 调度器简史 C ...

  6. (5)Linux进程调度-CFS调度器

    目录 背景 1. 概述 2. 数据结构 2.1 调度类 2.2 rq/cfs_rq/task_struct/task_group/sched_entity 3. 流程分析 3.1 runtime与vr ...

  7. Linux进程调度器概述--Linux进程的管理与调度(十五)

    日期 内核版本 架构 作者 GitHub CSDN 2016-06-14 Linux-4.6 X86 & arm gatieme LinuxDeviceDrivers Linux进程管理与调度 ...

  8. Linux进程调度 - CFS调度器 LoyenWang

    背景 Read the fucking source code! --By 鲁迅 A picture is worth a thousand words. --By 高尔基 说明: Kernel版本: ...

  9. Linux进程调度-deadline调度器

    Linux内核中定义了5个调度器类,分别对应5个调度器,调度优先级顺序由高到低依次为:stop_sched_class.dl_sched_class.rt_sched_class.fair_sched ...

  10. linux进程调度之 FIFO 和 RR 调度策略

    转载 http://blog.chinaunix.net/uid-24774106-id-3379478.html  linux进程调度之 FIFO 和 RR 调度策略 2012-10-19 18:1 ...

最新文章

  1. group by 分组后 返回的是一个同属性的集合
  2. 11位院士专家建言基础研究
  3. python itertools.product_Python的itertools.product 方法
  4. linux获取互联网时间,linux中用shell获取时间,日期
  5. android contacts电话查询头像,android透过查询电话号码获取联系人头像
  6. 如何给Linux操作系统(CentOS 7为例)云服务器配置环境等一系列东西
  7. android 豆瓣客户端 视频
  8. UI组件-UIPickerView
  9. Spring Boot(1) 入门、自动配置
  10. shell脚本一行太长,使用\换行
  11. neovim安装dein.vim
  12. Tableau数据可视化案例
  13. 天语手机android 4.4.4,天语 touch 2 4.4.4 ROM刷机包 FIUI
  14. 五个金念什么_四个“金”字读什么?
  15. 一键安装 kX3552 ProFX312 UFX52 程序
  16. 终于我用JOL打破了你对java对象的所有想象
  17. 是时候和else关键字说再见了……
  18. Pause(Infra)容器
  19. Python用海龟绘制中国国旗
  20. SEO:百度和Google搜索优化区别

热门文章

  1. node.js express安装问题
  2. redis采用序列化方案存对象
  3. Mutes锁_递归锁_信号量semaphore
  4. [雪峰磁针石博客]软件测试专家工具包2性能测试
  5. 洛谷2142高精度减法(模板)
  6. [Oracle]ORA-600[kdBlkCheckError]LOB坏块处理
  7. 【转】 Android xml中 @和?区别,style和attr小结
  8. HttpClient配置
  9. mysql修改有外键约束的表结构
  10. 利用动态图层实现数据的实时显示