Как изменить соответствие процессора в Linux с помощью Python в реальном времени? ⇐ Linux
-
Anonymous
Как изменить соответствие процессора в Linux с помощью Python в реальном времени?
I know I can use os.sched_setaffinity to set affinity, but it seems that I can't use it to change affinity in realtime. Below is my code:
First, I have a cpp program
// test.cpp #include #include #include void workload() { unsigned long long int sum = 0; for (long long int i = 0; i < 50000000000; ++i) { sum += i; } std::cout
Источник: https://stackoverflow.com/questions/781 ... n-realtime
I know I can use os.sched_setaffinity to set affinity, but it seems that I can't use it to change affinity in realtime. Below is my code:
First, I have a cpp program
// test.cpp #include #include #include void workload() { unsigned long long int sum = 0; for (long long int i = 0; i < 50000000000; ++i) { sum += i; } std::cout
Источник: https://stackoverflow.com/questions/781 ... n-realtime
Мобильная версия