现在的CPU通常都是双核甚至四核了,系统通常会在各个core之间自行分配和调度,但有时候我们可能也想自己手工来限定,比如让chrome跑在core0上,而让gcc跑在core1上,有没有办法能做到呢?当然有,打开任务管理器,在你的目标process上点右键,选set affinity…然后就自由发挥吧.
ps,如果你是linux,那就试试taskset,比windows下点鼠标要方便点.
I sit at my window this morning where the world like a passer by stops for a moment, nods to me and goes.
现在的CPU通常都是双核甚至四核了,系统通常会在各个core之间自行分配和调度,但有时候我们可能也想自己手工来限定,比如让chrome跑在core0上,而让gcc跑在core1上,有没有办法能做到呢?当然有,打开任务管理器,在你的目标process上点右键,选set affinity…然后就自由发挥吧.
ps,如果你是linux,那就试试taskset,比windows下点鼠标要方便点.
Posted in 技术.
– 2010年03月19日
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.