On Mon, 11 Apr 2022, Raul Miller wrote:

_SC_NPROCESSORS_ONLN

A mobile device may have n cores 'configured', but only 1 'online' at a
given point in time; the remainder are sleeping, but will be woken up if you provide work for them to do. So prefer _SC_NPROCESSORS_CONF.

OSX

sysconf works there too.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to