[Ecls-list] CPU count

Matthew Mondor mm_lists at pulsar-zone.net
Fri Mar 22 16:52:19 UTC 2013


On Fri, 22 Mar 2013 11:46:16 +0530
Vijay Mathew <vijay.the.lisper at gmail.com> wrote:

> Is there a function in ECL to find the number of processors?

Not that I know, although it's often a good idea to provide a
configuration knob such that the user of the software can decide how
many threads to use.

If we want to add such functionality, it's OS-specific, but it seems
that today several systems support sysconf(3) with _SC_NPROCESSORS_CONF
and _SC_NPROCESSORS_ONLN (I just verified on NetBSD and Linux though).
-- 
Matt




More information about the ecl-devel mailing list