Operate System: Round Robin Scheduling

轮转调度算法解析
本文介绍了轮转(Round Robin, RR)调度算法的基本原理及特点。RR算法主要用于时间共享系统中,通过抢占的方式实现进程间的公平调度。每个进程被分配一个固定的时间片(quantum),一般设置为10到100毫秒之间,确保所有进程都能获得公平的CPU执行时间。

文章目录

Background

Round Robin(RR) scheduling algorithm is mainly designed for time-sharing systems. In Round Robin(RR) scheduling, preemption is added which enables the system to switch between processes.
Features

  • one of the oldest, easiest, and fairest algorithm, also a starvation-free algorithm: every process get a fair share of CPU time
  • A fixed time is allotted to each process, called a quantum, for execution.
  • the length of time quantum is generally from 10 to 100 milliseconds in length.

Process

lets set the quantum time to 5.
在这里插入图片描述在这里插入图片描述在这里插入图片描述

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值