// the find
PKUFlyingPig/MIT6.S081-2020fall
MIT undergraduate operating system course
One student's complete solution set for MIT 6.S081 (Fall 2020), the undergraduate OS course built on xv6/RISC-V. It's organized as branches per lab rather than a single monorepo, with written reports in Chinese for each lab. Useful if you're stuck on a specific lab and want to see a working implementation alongside an explanation.
The branch-per-lab structure is clean — you can check out exactly what you need without sifting through unrelated changes. The README hints section is genuinely useful: it flags the non-obvious bugs the author hit (the nproc UNUSED state trap, the COW ref_count placement mistake) rather than just restating the lab instructions. The written reports, even in Chinese, pair with the code well enough to follow via machine translation. Including the xv6 book PDF directly in the repo is a nice touch for offline study.
This is a single student's solutions, not a reference implementation — the author explicitly admits some approaches are hacky (the buffer cache lab: 'I just copy the bcache 13 times to hack the lab'). The repo hasn't been touched since January 2021, so it targets the 2020 version of the course; the labs have changed since. Reports are in Chinese, which cuts off a large chunk of potential readers. There's no test output or grade confirmation, so you can't tell whether these solutions actually pass all the usertests.