Schedules processes according to priority