Prediction based scheduler