开发者

Assign threads to run on a custom Core in Unix

开发者 https://www.devze.com 2022-12-13 19:39 出处:网络
Is it possible to run a particular thread/process on any core we want? Since multi-core systems are available today . Is it possible to assign two (mutually independent ) segments of code run on any

Is it possible to run a particular thread/process on any core we want? Since multi-core systems are available today . Is it possible to assign two (mutually independent ) segments of code run on any core we want to rather than wait for it to be assigned in a round robin fashion? This way we can truly reap the benefits of parallel processing.

Is there a system call in the Unix flavours that lets us assign t开发者_运维问答hreads to specific cores?


You can sometimes achieve this with utilizing processor affinity on linux systems. This is a detailed description of what can be done and how to do it.

0

精彩评论

暂无评论...
验证码 换一张
取 消