005 · MIT 6.1810 — xv6 核心机制模拟器
| 项目 | 内容 |
|---|---|
| 学校 | MIT |
| 课程 | MIT 6.1810 Operating Systems Engineering(原 6.828) |
| 方向 | 操作系统 / Operating systems |
| 语言 | Python |
| 难度 | 硬核 / Advanced |
| 预计耗时 | 5–10 天 / 5–10 days |
为什么收录
xv6 实验让学生修改教学用 Unix 内核,是理解操作系统最经典的路径。本项目聚焦调度与伙伴分配器两个算法核心,做成自包含的模拟器。
The xv6 labs are the classic path to understanding operating systems. We focus on two algorithmic cores — scheduling and buddy allocation — as a self-contained simulator.
English: Keeping the algorithmic core while dropping QEMU/toolchain baggage makes these OS concepts accessible in a self-contained learning repo.
实测结果
- FCFS avg_wait=3.33;RR(q=2)=6.00;MLFQ=5.33(真实输出,见 05)
- 伙伴分配器:alloc(7)→0, alloc(8)→8, alloc(4)→16;free(8)+free(0) 后合并出 (0,16)
- 如实记录了 RR 平均等待高于 FCFS 的调度理论原因(非 bug)