Comment on Resource efficient Thread Pools with ZigparentComments−nicoburns4yCan you limit the number of cores available to an application when you open it? I feel like there must be a way to do that.−kevingadd4yOn windows, no. You can use affinity to prevent the application from running on some of your cores but it will still spin up a ton of threads (which makes the situation even worse sometimes)−dundarious4yOn Linux it’s taskset, numactl, etc.
Comments
Can you limit the number of cores available to an application when you open it? I feel like there must be a way to do that.
On windows, no. You can use affinity to prevent the application from running on some of your cores but it will still spin up a ton of threads (which makes the situation even worse sometimes)
On Linux it’s taskset, numactl, etc.