API for multiple CPU detection?

API for multiple CPU detection?

Post by apm3 » Wed, 29 Oct 2003 17:29:05


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