[lsb-discuss] LSB-compliant way to get number of processors?

Alan Cox alan at lxorguk.ukuu.org.uk
Mon Aug 7 03:31:55 PDT 2006

Ar Llu, 2006-08-07 am 10:01 +0100, ysgrifennodd Dallman, John:
> > I've found two ways so far to ask Linux how many processors 
> > it has: get_nprocs() and sysconf(_SC_NPROCESSORS_ONLN), but 
> > neither of them seem to be allowed in LSB-compliant code. 
> Any offers? If we can't find a way to do this, Parasolid on 
> Linux is going to have to cease being LSB-compliant. This is 
> not a prospect I welcome, but delivering what the customer
> are actually asking for has to take priority over things 
> they aren't bothered about. 

sysconf really ought to be in the LSB for some of those queries. I'd
agree its a bug if it isnt

More information about the lsb-discuss mailing list