本篇对应 OSTEP Version 1.10 的 Preface 与 Introduction,逐段保留作者的叙述顺序、示例代码、终端输出和问题框。读完后应能回答:操作系统为什么要做 virtualization,它如何同时管理 CPU、memory、devices,以及为什么 concurrency 和…
2026-09-17
本篇对应 OSTEP Version 1.10 的 “The Abstraction: The Process”。核心结论:process 不是磁盘上的 program 文件,而是 OS 为一个 running program 维护的 machine state;OS 通过 time…
2026-09-17
本篇对应 OSTEP Version 1.10 的 “Interlude: Process API”。UNIX 用 创建近似副本,用 等待 child,用 替换当前 process 的 program;三者组合构成 shell 的基础。
2026-09-17
本篇对应 OSTEP Version 1.10 的 “Mechanism: Limited Direct Execution”。核心问题是:OS 如何让 program 尽可能直接运行在 CPU 上以获得性能,同时保留对 CPU、memory 和 I/O 的控制权。
2026-09-17
本篇对应 OSTEP Version 1.10 的 “Scheduling: Introduction”。它从 workload assumptions 和 scheduling metrics 出发,逐步推导 FIFO、SJF、STCF 与 Round Robin,并说明为什么 response…
2026-09-17
本篇对应 OSTEP Version 1.10 的 “Scheduling: The Multi-Level Feedback Queue”。MLFQ 试图在不知道 job 总运行时长的前提下,同时获得 SJF/STCF 的 turnaround performance 和 Round Robin 的…
2026-09-17
本篇对应 OSTEP Version 1.20 的 “Scheduling: Proportional Share”。与优化 turnaround/response time 不同,proportional-share scheduler 试图保证每个 job 获得指定比例的 CPU time。
2026-09-17
本篇对应 OSTEP Version 1.10 的 “Multiprocessor Scheduling (Advanced)”。单 CPU 的 scheduler 迁移到多 CPU 后,必须同时处理 cache coherence、synchronization、cache affinity、scalability…
2026-09-17
本篇对应 OSTEP Version 1.10 的 “Address Translation”。核心问题是:如何把每个 process 看到的 virtual address 高效、透明地转换为 physical address,同时保证 protection,并控制转换所需的 time 和 space…
2026-09-17
本篇对应 OSTEP Version 1.10 的 “Interlude: Memory API”。核心任务是把 C 中动态 memory 的 API 与 process address space 联系起来,并通过具体 bug 说明 allocation、lifetime 和 pointer ownership…
2026-09-17
第 1 / 7 页 · 共 62 篇