write the logic of starting schedulers