• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting the number of CPUs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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).


  • Prev by Date: problems with glyph y-axis flipping in an NSBezierPath
  • Next by Date: Anyone have a fix?: How to make NSButton not invert (gray) when tracking mouse?
  • Previous by thread: Re: Getting the number of CPUs?
  • Next by thread: Re: Getting the number of CPUs?
  • Index(es):
    • Date
    • Thread