Есть ли способ обойти ограничения и установить 16 или все 24 ядра на 100%?
Код: Выделить всё
import multiprocessing
import time
def get_cpu_core_count():
return multiprocessing.cpu_count()
def stress_core():
while True:
pass
if __name__ == '__main__':
num_cores = int(input("Enter the number of CPU cores to stress: "))
processes = []
for _ in range(num_cores):
p = multiprocessing.Process(target=stress_core)
p.start()
processes.append(p)
try:
while True:
time.sleep(1)
except KeyboardInterrupt:
for p in processes:
p.terminate()
p.join()
image of the 24 cores with only 8 at 100%

Подробнее здесь: https://stackoverflow.com/questions/795 ... -cpu-cores