def get_num_cpus(): """ Returns the number of CPUs on the emulated system :return: The number of CPUs on the emulated system :rtype: int """ import c_api #If this function call fails, it will raise an exception. #Given that the exception is self explanatory, we just let it propagate upwards return c_api.get_num_cpus()
def get_num_cpus(): """ Returns the number of CPUs on the emulated system :return: The number of CPUs on the emulated system :rtype: int """ import c_api # If this function call fails, it will raise an exception. # Given that the exception is self explanatory, we just let it propagate # upwards return c_api.get_num_cpus()