How to specify the processor core to run the program on Linux

I need to run two programs on the same processor core. The second one always runs on a different core, because the first program uses 50% of the first core. How to make Linux run the program on the kernel?

+3
source share
1 answer
schedtool -a 0x1 -e program1
schedtool -a 0x1 -e program2

See the schedtool manual for more details .

+7
source

Source: https://habr.com/ru/post/1753705/


All Articles