CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2010
    Posts
    11

    Choosing among the Linux options

    Hi,

    I'm looking for a comparison of the different existing solutions to multithreading on Linux with C++.
    I know that several libraries exist, but I have no idea of the main advantages and drawbacks of each one. Can anyone point me in the right direction?

    Cheers

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: Choosing among the Linux options

    Some of the more common ones....

    pthreads - Widely used, but C-based, so it isn't the most elegant for use with C++. Pretty simple though if you don't mind a few void*s.

    Boost Threads - A C++ based library so it's fully type-safe. Introduces a dependency on Boost though, which not everyone will like.

    gthreads - Part of glib. Basically a thin wrapper around pthreads, but some might find the interface more intuitive.

    C++1x standard threads - I don't think these are supported yet, but they soon will be, so they're something you need to consider.

  3. #3
    Join Date
    Apr 2010
    Posts
    11

    Re: Choosing among the Linux options

    Thanks, I'll have a look at those

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured