Priority Scheduler

The majority function of the priority scheduler.  The set_priority function will be completed with the priority inversion feature.