Scheduling of coupled tasks