CPU scheduling simulation