OS assignment to simulate CPU scheduling