API for detection of multiple CPUs

From: apm (apm35_at_student.open.ac.uk)
Date: 10/28/03


Date: 28 Oct 2003 00:28:09 -0800

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



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)
  • 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: 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)

Quantcast