Thread: Thread library

  1. #1
    Registered User Mareq's Avatar
    Join Date
    Nov 2005
    Location
    Bratislava
    Posts
    7

    Thread library

    I am rewriting my multithreaded (POSIX threads) Linux application from pure C into C++. I want to encapsulate pthreads functionality into some library. I've tryed to write my own, but it needs a lot of time I do not have (maybe I'll write it after I learn some more stuff).

    So I've googled out some libraries (Boost threads, ZThreads, ...) offering this, but actually there are a lot of them and I do not know which one to choose.

    I've already asked this question on another forum, but nobody answered... Is there someone on this C-specialized forum, who has some experience with some of these libraries? Which one do you use? Thanks.

  2. #2
    Registered User
    Join Date
    Jan 2006
    Location
    Europe/Belgrade
    Posts
    78
    I had a similar question and the response was that there's no still good C++ library for threads, so pthreads and Win32 API are still best offer. Author of Boost threads abandoned the developement of the library, because it is not included in C++ standard.

  3. #3
    Registered User Mareq's Avatar
    Join Date
    Nov 2005
    Location
    Bratislava
    Posts
    7
    Quote Originally Posted by karas
    I had a similar question and the response was that there's no still good C++ library for threads, so pthreads and Win32 API are still best offer. Author of Boost threads abandoned the developement of the library, because it is not included in C++ standard.
    I'm programming under Linux, so you say, the best choice is to use standard pthreads library and write my own C++ library? (Is there some free online tutorials/howtos for this topic?)

  4. #4
    Registered User
    Join Date
    Jan 2006
    Location
    Europe/Belgrade
    Posts
    78
    That's the advice I've got from an experienced programmer, he's programming under Windows and Linux in C++.
    I learned from the book Advanced Linux Programming. The chapter for thread is very good written.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thread Prog in C language (seg fault)
    By kumars in forum C Programming
    Replies: 22
    Last Post: 10-09-2008, 01:17 PM
  2. user thread library
    By Eran in forum C Programming
    Replies: 4
    Last Post: 06-17-2008, 01:44 AM
  3. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  4. C++ Threading?
    By draggy in forum C++ Programming
    Replies: 5
    Last Post: 08-16-2005, 12:16 PM
  5. [code] Win32 Thread Object
    By Codeplug in forum Windows Programming
    Replies: 0
    Last Post: 06-03-2005, 03:55 PM