Re: API for detection of multiple CPUs

From: Haedn Thorn (lordhaedn1_at_nospam.cox.net)
Date: 10/28/03


Date: Tue, 28 Oct 2003 07:14:57 -0600

apm wrote:
> Does anyone know if there is an API for detecting how many CPUs are
> present? I am after a way of programmatically determining whether or
> not a spinlock could be used in preference to a pthread mutex.
>
> Many thanks,
>
> Andrew Marlow

'cat /proc/cpuinfo | grep processor'



Relevant Pages

  • Re: API for detection of multiple CPUs
    ... > Does anyone know if there is an API for detecting how many CPUs are ... I am after a way of programmatically determining whether or ...
    (comp.os.linux)
  • Re: API for detection of multiple CPUs
    ... > apm wrote: ... >> Does anyone know if there is an API for detecting how many CPUs are ...
    (comp.os.linux)
  • API for detection of multiple CPUs
    ... Does anyone know if there is an API for detecting how many CPUs are ... I am after a way of programmatically determining whether or ...
    (comp.os.linux)
  • Re: cpuset and affinity implementation
    ... I have implemented a new api similar to processors sets on solaris. ... allows you to assign processes to sets of cpus and dynamically change ... integrated with jail so you can restrict the cpus any jail is allowed to ... Root set - immutable, all cpus, may be root of jail in which case root ...
    (freebsd-current)
  • Re: cpuset and affinity implementation
    ... I have implemented a new api similar to processors sets on solaris. ... allows you to assign processes to sets of cpus and dynamically change those ... integrated with jail so you can restrict the cpus any jail is allowed to ... a big ULE patch I've been working on. ...
    (freebsd-current)