Overview
video link : https://www.youtube.com/watch?v=myO2bs5LMak
Goal
PintOS uses FIFO scheduling. Modify PintOS scheduler for priority scheduling.
- sort the ready list by the thread priority
- sort the wait list for synchronization primitives (semaphore, condition variable)
- implement the preemption
- point : when the thread is put into the ready list (not everytime when the timer interrupt is called)
Files to modify
threads/thread.*
threads/synch.*
Overview
video link : https://www.youtube.com/watch?v=myO2bs5LMak
Goal
PintOSuses FIFO scheduling. ModifyPintOSscheduler for priority scheduling.Files to modify
threads/thread.*threads/synch.*