implemented realtime scheduling for all tasks