AFAIK, you can assign a thread to the processor core in Linux. (see this ). But, to my question, can I achieve this functionality using boost , and if possible, how? Please also not that the OS can decide which is best for me, but suppose I want to control this behavior in my design.
Boost is designed to be used as a cross-platform library, while the question you linked indicates a specific OS implementation, as far as I know, this is the only way to do what you ask.
Windows SetThreadAffinityMask API . , , .
The topic is called "thread affinity", you can find the answer by doing a search, as well as your exact version of the operating system.
Source: https://habr.com/ru/post/1789752/More articles:How to write "B" queries in WCF data services? - entity-frameworkCucumber and Capybara: Should use rendered.should, page.should or response.should? - responseQuick start to protect ASP.NET MVC - securityDifference between SAS PC and SAS Server - javaWhat DebuggerVisualizers already exist in VisualStudio or the .NET Framework? - .netИнтеграция С++ вместе с objective-c в проекте iOS - c++Open the data transfer process (sqlplus) in perl and get the information from the query? - sqlExport / import signatures in Wordpress - wordpressReading a binary 16-bit signed (big-endian) integer in Ruby - ruby | fooobar.comCan Calendar.GetDayOfWeek () return (DayOfWeek) 7? - c #All Articles