[Solved] Are pthread.h threads running in just one core
A newly created thread has no affinity, and will be shuffled around the process as deemed best by the system. If you need to pin it to a specific core, this answer provides details for setting affinity to a specific pthread. 1 solved Are pthread.h threads running in just one core