Hi !

Yes I know, but what I was looking for was a portable system call that could
be used from inside an application to detect the number of CPU's, how about
other UNIX systems, do they have a proc/cpuinfo to ?

Mikael

----- Original Message -----
From: "Derek Tattersall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 04, 2000 12:27 PM
Subject: Re: SMP question ?


> * Mikael Aronsson ([EMAIL PROTECTED]) [000904 03:16]:
> >
> > Hi !
> >
> > What is the best way to detect the number of CPU's ?, I guess I could
look in /proc/cpuinfo, but is there a better more portable way to do it ?
> >
> > Mikael
> >
> grep -c "processor" /proc/cpuinfo
> gives the number of processors.
>
> --
> Derek Tattersall [EMAIL PROTECTED]
>
>
>
> _______________________________________________
> Redhat-devel-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-devel-list



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to