Re: system call for finding the number of cpus??

J.A. Magallon (jamagallon@able.es)
Tue, 9 Apr 2002 00:12:23 +0200


On 2002.04.08 "Kuppuswamy, Priyadarshini" wrote:
>I don't think that (sysconf(_SC_NPROCESSORS_CONF)) command works on linux. It works on Unix. I tried that. It returns 1 when there are 4 processors on linux.
>

Tried and works. get_nproc_conf and _SC_NPROCESSORS_CONF work the same.

-- 
J.A. Magallon                           #  Let the source be with you...        
mailto:jamagallon@able.es
Mandrake Linux release 8.3 (Cooker) for i586
Linux werewolf 2.4.19-pre6-jam1 #1 SMP Sun Apr 7 00:50:05 CEST 2002 i686
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/