Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nicoburns
on Sept 13, 2021
|
parent
|
context
|
favorite
| on:
Resource efficient Thread Pools with Zig
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.
kevingadd
on Sept 13, 2021
|
next
[–]
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)
dundarious
on Sept 13, 2021
|
prev
[–]
On Linux it’s taskset, numactl, etc.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: