Galcon interview question

desing a scheduler (c++ )