Dual core optimized!

Discussion in 'Mac Apps and Mac App Store' started by Jon'sLightBulbs, Mar 6, 2006.

  1. Jon'sLightBulbs macrumors 6502a

    Joined:
    Jan 31, 2005
    Location:
    Chicago
    #1
    How can you tell if an app is optimized to use both cores of a dual core processor (or 4 for a quad) besides searching through the publisher's documentation?

    My theory: if the top command in terminal ever reports that the app is using more than 100% of availible cpu cycles, the app must be optimized to use more than one proc. core.

    Example: Aperture routinely uses 150+ percent of my processor cycles. (dual core g5). Does this mean it must be optimized for dual core?
     
  2. risc macrumors 68030

    risc

    Joined:
    Jul 23, 2004
    Location:
    Melbourne, Australia
    #2
    If an app is using more than 100% CPU then yes it is smp aware.
     
  3. NoNameBrand macrumors 6502

    Joined:
    Nov 17, 2005
    Location:
    Halifax, Canada
    #3
    If the process has more than one thread (#TH in top), it can use more than one processor/core. Not all threads are equally demanding, so the process might be using less than 100% of a CPU's time (40% could be split 30%/10% or 20%/20% or whatever, across multiple processors/cores).
     
  4. weg macrumors 6502a

    weg

    Joined:
    Mar 29, 2004
    Location:
    nj
    #4
    It seems that GCC doesn't support OpenMP, so is the way to optimize applications actually "manual" creation of threads (or buy the Intel compiler ;-)). Hm.. then again.. OpenMP doesn't support Objective C, so it's probably not very important on a Mac, anyway.
     
  5. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #5
    Yes, you can use NSThread, posix pthreads, etc...
     

Share This Page