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
> [EMAIL PROTECTED]             |-----------------------------------------
> 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 [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to