[erlang-questions] logical_processors_available unknown on mac
Thu Feb 18 14:05:04 CET 2016
On 18 February 2016 at 12:46, Alin Popa <alin.popa@REDACTED> wrote:
> Hmmmm, sure, I think it makes sense, but still, it works fine on
> Linux as I've tested.
> Also, not entirely sure what should I use instead of that on OSX,
> any idea?
Doesn't 'logical_processors' (ignoring _available and _online) suffice
for your use case?
If not, and assuming you're on Apple hardware, I'm afraid there's no
way to ask OS X about hot swappable CPUs, because there is no such
concept in OS X. Also, I'm not aware of current Apple hardware that
supports hot-swapping CPUs.
If you run OS X on non-Apple hardware, maybe a device driver (kext)
could access such info.
More information about the erlang-questions