[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: number of CPUs
- To: nyh(at-nospam)math.technion.ac.il (Nadav Har'El)
- Subject: Re: number of CPUs
- From: Yedidya Bar-david <didi(at-nospam)post.tau.ac.il>
- Date: Thu, 9 Nov 2000 12:45:54 +0200 (IST)
- Cc: linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <20001109115950.B21635@leeor.math.technion.ac.il> from "Nadav Har'El" at Nov 09, 2000 11:59:50 AM
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
Hi
Nadav Har'El wrote:
>
[snip]
>
> Alternatively, we should have a libary (say, liblinux.so) that has functions
> that use the /proc interface to get this information. But I don't believe
> such a library exists.
Actually, Debian has a package libproc, that exports a variable named
'smp_num_cpus'. I never used it, so I don't know how good or portable
between kernel versions it is, but it seems worth a try.
didi
>
>
> --
> Nadav Har'El | Thursday, Nov 9 2000, 11 Heshvan 5761
> nyh@math.technion.ac.il |-----------------------------------------
> Phone: +972-53-245868, ICQ 13349191 |Promises are like babies: fun to make,
> http://nadav.harel.org.il |but hell to deliver.
>
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
>
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il