MIT6.S081 – Lab7 Multithreading | Process Scheduling

MIT6.S081 - Lab7 Multithreading | Process Scheduling

This article is a lab note for Lab7 of the MIT6.S081 Operating Systems course. The task is to simulate kernel process switching by implementing a user-level thread switching functionality. Additionally, I will introduce how xv6 achieves process switching by examining the source code. Lab7 address: https://pdos.csail.mit.edu/6.828/2020/labs/thread.html My lab records: https://github.com/yibaoshan/xv6-labs-2020/tree/thread Before starting the experiment, you … Read more