A Scheduler with a Dynamic Priority and its Influence on a Control System