def get_cpu_count(): cpu_count = psutil.cpu_count(logical=False) return (cpu_count, psutil.cpu_count(logical=True) - cpu_count)