CS444 HW5: Implementing a Preemptive Scheduler for Multitasking Kernel
VerifiedAdded on  2019/09/18
|2
|852
|280
Homework Assignment
AI Summary
This assignment focuses on extending a multitasking kernel to include a preemptive scheduler. The task involves converting the scheduler to be preemptive, setting up a system timer (PIT) to generate interrupts every 10 ms, and implementing a CPU quantum for each process. Students are required to track CPU usage and output characters for each process, and to implement debugging tools to monitor scheduler calls. The assignment includes testing the preemptive scheduler with existing programs and new CPU-intensive programs to ensure processes are preempted and receive fair CPU shares. Students must address potential race conditions, such as the lost update problem, and provide scripts demonstrating preemption and CPU allocation. The solution includes modifications to the process structure and detailed debugging output to verify the scheduler's functionality.
1 out of 2