Hello, In 2026, is there any way to ensure that a thread runs on a particular CPU core and stays on that core? I've noticed that this question was asked a few times years ago and the answers were negative but I'm curious if the situation has changed. Thanks.
How to set the CPU affinity of a thread?
Hello, In 2026, is there any way to ensure that a thread runs on a particular CPU core and stays on that core?
No, not really. Our own testing/experience is that the overall system state from moment to moment is complicated enough that providing an API for this tends to create more problems than it solves.
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware