1. A method for controlling the execution of a first task and a second task over a system, comprising: comparing the priority of the first task and the second task; executing the first task for a first duration, wherein the first task has a higher priority than the second task; and after the first duration, suspending the execution of the first task and executing the second task for a second duration.