bmwfire / EE468-PINTOS-Project-1

The official repository for the UH Manoa EE 468 PINTOS Project -- Project 1.
0 stars 2 forks source link

Priority Scheduling: Implement priority scheduling #2

Open dickensc opened 5 years ago

dickensc commented 5 years ago

Implement priority scheduling in Pintos. When a thread is added to the ready list that has a higher priority than the currently running thread, the current thread should immediately yield the processor to the new thread. Similarly, when threads are waiting for a lock, semaphore, or condition variable, the highest priority waiting thread should be awakened first. A thread may raise or lower its own priority at any time, but lowering its priority such that it no longer has the highest priority must cause it to immediately yield the CPU.