Processor Identification in Boost :: Thread API

Is it possible to set the affinity for the processor in forced threads ((that is, install each thread to run on a different processor)? Is there any tutorial / documentation that you can offer about this? Googling does not return a lot of information, except for the following topic, where the above example (boost-bind_processor.v1.tar.gz) is no longer present in the file server. Thank you.

http://lists.boost.org/boost-users/2009/02/45172.php

+4
source share
2 answers

Just don't. Most of the time, when you think it helps, it just makes them worse.

Each restriction that you place in the system has a cost. The scheduler is very smart, and the more restrictions you impose on it, the worse it will work. The scheduler will not move the thread from one core to another unless it has a good reason.

0
source

For .NET applications, you probably need to look at something called ProcessorAffinity .

MSDN 1 MSDN 2 Wiki

-2
source

All Articles