On Sat, 9 Apr 2022, Henry Rich wrote:

How many cores you use is up to you.  (I couldn't find an OS-independent way to decide).

windows:
SYSTEM_INFO info;
GetSystemInfo(&info);
return info.dwNumberOfProcessors;

unix: sysconf(_SC_NPROCESSORS_CONF)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to