num_cpus
num_cpus copied to clipboard
Fallback if the counts of num processors via affinity mask is 0
What exactly does it mean if the affinity mask was set to 0? Is the intent to try to say that you can't pick any CPU at all? It'd seem like that would mean 0 cpus (which really is 1 because the code is executing).
Ah, sorry, this means 0 cpus.
So, if the mask is trying to say "you have 0 cores to use", it seems we should respect that instead of saying "the mask is wrong, you actually have 32 cores!", right?
I'm sorry my late reply. My suggestion just brought from Ruby, we should do a deeper discussion.