Home/Support/Support Forum/How to set that a particular thread always be executed by a specific core in multi-core Linux environment?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to set that a particular thread always be executed by a specific core in multi-core Linux environment?

0 votes
asked Jul 9, 2016 in Feedback/Wish List by abhik143 New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
I definitely don't know much on the subject but a quick Google search turned up the following which could be helpful.

http://www.glennklockwood.com/hpc-howtos/process-affinity.html

You can probably use that as a starting point for a more detailed search on the information you need. I've normally heard this feature referred to as processor/core affinity which might be a good keyword to search on.
answered Jul 15, 2016 by jlovinger Veteran of the Digi Community (421 points)
The following may also be interesting. Hopefully you can take it from here.

http://man7.org/linux/man-pages/man2/sched_setaffinity.2.html
...