Skip to content

Categories:

限定某个process运行在某个core上

现在的CPU通常都是双核甚至四核了,系统通常会在各个core之间自行分配和调度,但有时候我们可能也想自己手工来限定,比如让chrome跑在core0上,而让gcc跑在core1上,有没有办法能做到呢?当然有,打开任务管理器,在你的目标process上点右键,选set affinity…然后就自由发挥吧.

ps,如果你是linux,那就试试taskset,比windows下点鼠标要方便点.

Posted in 技术.

Tagged with , .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.