Update os.cpp

added timeslice parameter for the sake of the dispatcher function-NICK