a toy program modeling job scheduling in a distributed system