Mikael Aronsson wrote:
> 
> 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 ?

** this same question came up in the aix group "comp.unix.aix" and there was
a reasonable number of appends to the question.  Looks like there isn't a real
unix way of looking at this level of hardware.  Try dejenews to find some of the
responses.
> 
> 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

-- 
Norman Levin



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

Reply via email to