using C++ to simulate a scheduler which used different scheduling policies and be implementes as a discrete event simulation