简体   繁体   中英

How to assign a specific core in the execution of an R script

我想执行一个简单的R代码。是否可以在执行中分配特定的内核/处理器。如果可能,我该怎么办?

It's possible to assign processes to use specific cores in Windows. The easiest way to test this out is through Windows Task Manager -> Processes Tab -> Right click on a process -> Set Affinity -> Check the set of processors you want to use.

There are similar questions to this elsewhere ( https://serverfault.com/questions/571516/any-way-to-make-a-program-run-on-a-specific-core-on-launch , https://superuser.com/questions/309617/how-to-limit-a-process-to-a-single-cpu-core ).

Note that it's generally not advised that you force processes to run on specific cores.

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