Re: Getting the number of CPUs?
Re: Getting the number of CPUs?
- Subject: Re: Getting the number of CPUs?
- From: Jeff Hunter <email@hidden>
- Date: Tue, 07 Aug 2001 16:09:38 -0400
OmniFoundation provides the OFNumberOfProcessors() function. See the example
near the bottom of this page:
http://www.cocoadevcentral.com/tutorials/showpage.php?show=00000025.php
--
Jeff Hunter
email@hidden
>
Hi,
>
is there any Cocoa-y way of getting the number of CPUs on the host? I'm
>
aiming to use this as part of a thread-spawning decision process (so that
>
a single processor machine doesn't get twice as many threads as it needs
>
to do the job).