Cross platform library like Grand Central for C?

Discussion in 'Mac Programming' started by Cromulent, Aug 25, 2009.

  1. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #1
    I'd love to use Grand Central but alas it is Mac OS X only. Does anyone know of a cross platform threading API that is higher level than POSIX threads but still maintains cross platform compatibility? I'm thinking of a C equivalent to Boost.Thread really.

    Edit: Having though about it I guess I might be on a loosing wicket with this one seeing as GCD is partly implemented in the OS itself rather than being a simple library. Shame.

    Still, any suggestions are always appreciated :).
     
  2. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #2
    I think this is C++ again, but Intel Threading Building Blocks?
     
  3. Cromulent thread starter macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #3
    Yep, C++ unfortunately. I found a couple of open source C libraries but unfortunately they were pretty dead plus they used a GPL license.

    Edit: I guess something like MPI could be used in the same manner?
     
  4. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #4
    MPI is a pretty blunt tool compared to GCD. It's really more for clusters as I understand it.
     
  5. Cromulent thread starter macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #5
    While it is predominately used for clusters and large supercomputers it certainly has uses for highly parallel programs.

    But you are right, I doubt it is the best tool for the job.
     

Share This Page