A static scheduling algorithm