Setting thread affinity

BoomiP 1 Reputation point

Hi All,

I am creating some number of threads based on the system processor count for doing repeating task such as file encryption. In this case do I need to set affinity for the threads so that each thread can run on each available processor instead of all of them contending for the same processor. Or I should leave it for the OS to take care the processor allotment for the threads?

Any idea or input greatly appreciated.

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,574 questions
0 comments No comments
{count} votes