简体   繁体   中英

How to specify a CPU core to run a program in Linux

I need to run two programs on the same core of a CPU. The second one always runs on another core because the first program uses 50% of the first core. How can I force Linux to run a program on a core?

schedtool -a 0x1 -e program1
schedtool -a 0x1 -e program2

See the schedtool manual for details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM