Add priorities to the RTOS scheduler.