Is it possible to set CPU affinity in boost threads ((i.e. setting each thread to run on a different CPU)? Is there any tutorial/documentation you can suggest on this? Googling does not return much info except the following thread where the specified example (boost-bind_processor.v1.tar.gz) is no longer present in the file server. Thanks.
Share
Just don’t. Most of the time when you think this will help things, it just makes them worse.
Every restriction you place on the system has a cost. The scheduler is very smart and the more restrictions you force on it, the worse it will perform. The scheduler will not move a thread from one core to another unless it has a good reason.