Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Im tring to assign a core for boost::thread_group thread but how to assign is their is any API available to assign.

What I have tried:

i tried to create pthread_setaffinity_np but get_id() cannot able to assign to pthread
Posted
Updated 4-Jan-18 1:43am

1 solution

Here some insight: C++11 threads, affinity and hyperthreading - Eli Bendersky's website[^].
While boost lacks an API for that, there are libraries providing the functionality (see the "A note on portability" section).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900