Using multiple threads with C++

Discussion in 'Mac Programming' started by vgoklani, Feb 20, 2007.

  1. macrumors regular

    vgoklani

    Joined:
    Jul 2, 2004
    #1
    Hi,

    I recently purchased a macbook Pro, and I would like to make use of the second CPU in my C/C++ programs. Could someone point me to a source for spawning threads using C/C++ on a mac? I do a lot of monte carlo simulations, and I would like to make use of the second cpu.
     
  2. macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #2
    Hi

    There is something called Berkeley UPC (Unified Parallel C) over on the Apple download page under development tools. I've not tried it but I'd be interested in your thoughts if you do. Other than that I guess 'man fork'!

    b e n
     
  3. macrumors 6502a

    Palad1

    Joined:
    Feb 24, 2004
    Location:
    London, UK

Share This Page