Thread: Threads , how? Portable Threads Library?

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Question Threads , how? Portable Threads Library?

    Hey Guys,

    I've been developing some c++ programs, but now i need threads, for some sounds. i've search but every result take me to a different library's content, i would like to know a source for threads in differents platforms. Just give me the direction, i'll climb the mountain

    Thanks in advance

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    If you have a compiler and library that is compliant with C++-11, look into the standard thread facilities.

    If you don't have such a compiler and library, look up ACE (Adaptive Communication Environment). Among other things, it supports thread management, across various platforms.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    An alternative, if you don't have C++11, is boost. First stop looking for portable solutions.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by Elysia View Post
    An alternative, if you don't have C++11, is boost. First stop looking for portable solutions.
    to expand on this, a particular threading API may support multiple platforms, but it's unlikely that you'll find one solution that works everywhere. even boost and pthreads have their limitations.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Library for pool, sockets, threads
    By Mortissus in forum C++ Programming
    Replies: 13
    Last Post: 07-14-2007, 07:41 AM
  2. Replies: 3
    Last Post: 09-01-2005, 11:47 AM
  3. What's a portable graphics library?
    By dwks in forum Game Programming
    Replies: 2
    Last Post: 07-06-2005, 03:13 AM
  4. Portable Audio Library
    By CornedBee in forum C++ Programming
    Replies: 2
    Last Post: 05-19-2005, 02:09 AM
  5. a point of threads to create multiple threads
    By v3dant in forum C Programming
    Replies: 3
    Last Post: 10-06-2004, 09:48 AM