Skip to content

Comment on Resource efficient Thread Pools with Zigparent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.