Linux进程调度

调度定义 wiki上的关于scheduler的定义: In computing, scheduling is the method by which work is assigned to resources that complete the work. The work may be virtual computation elements such as threads, processes or data flows, which are in turn scheduled onto hardware resources such as processors, network links or expansion cards. 在计算机领域里,调度是一种将任务分配给完成任务的资源的方法。 任务可能是虚拟计算元素,例如线程,进程或数据流,这些虚拟计算元素又被安排在硬件资源(例如处理器,网络链接或扩展卡)上。 任务的分类: 对于要调度的任务分类: 按照依赖资源: CPU-bound: 任务处理效率受CPU处理速度的影响; I/O-bound: 任务处理效率受I/O处理速度的影响; 按照执行特点: Interactive: 交互式,如shell. Batch: 后台服务式,不需要与用户交互的 ,如数据库引擎. Real-Time: 及时响应式. 调度目标 所有系统 ...

2019-10-03 · 18 min · 3664 words