Like Tree1Likes
  • 1 Post By Elysia

Threads , how? Portable Threads Library?

This is a discussion on Threads , how? Portable Threads Library? within the C++ Programming forums, part of the General Programming Boards category; Hey Guys, I've been developing some c++ programs, but now i need threads, for some sounds. i've search but every ...

  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,163
    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%.

  3. #3
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,411
    An alternative, if you don't have C++11, is boost. First stop looking for portable solutions.
    Elkvis likes this.
    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
    2,266
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21