Introduce RunningQueue to change it without changing the currenttask variable (which would not be possible).
Priority Round Robin bases scheduling seems to work.