OS Lab 4: Scheduling in xv6 (Round-Robin & Priority)
Published:
This post documents Lab 4 of the Operating Systems course, focusing on the scheduling mechanisms in the xv6 kernel.
The report includes:
- Code Analysis: A deep dive into
scheduler,yield,sleep, andwakeupfunctions in xv6 to understand the default Round-Robin scheduling. - Visualization: Statistical analysis of process states (Running, Runnable, Sleeping) under the default scheduler.
- Implementation: Developing a non-preemptive Priority-based Scheduling algorithm to replace the default one.
- Performance Comparison: Evaluating and comparing the average turnaround time between Round-Robin and Priority-based scheduling.
This article was originally published on my CSDN blog.
