Threading in C++

Apr 6, 2009 at 1:48pm
Hi all,

I am about to use threading in a C++ application for performance reasons. I have read that Boost library (www.boost.org) and commoncpp by gnu are popular. Does anyone have any pros. and cons for these to alternatives? And does anyone have any other alternative? Commercial licenced libraries is OK.

Also does anyone have a book to recommend in the subject, that is, threading in C++ under Linux?

I have some basic experience with posix threads in C using vxworks and some other realtime operating systems but threads in C++ under Linux is new to me.

Best regards Mikael

Apr 7, 2009 at 11:27pm
closed account (S6k9GNh0)
http://www.linuxselfhelp.com/HOWTO/C++Programming-HOWTO-18.html
Apr 12, 2009 at 8:36pm
I have used the Boost.Thread library and recommend it.
Apr 13, 2009 at 4:35am
you can use ACE threads also. ACE (Adaptive Communication Environment) by Douglas C. Schmidt.
Apr 14, 2009 at 10:14am
in linux u can use clone() system call , with apropriate flags set , u can even decide to what extend those two threads should share the memory...
Apr 14, 2009 at 7:30pm
I would suggest you stick to pthreads in linux. It has everything you need. Also, boost mutexes are pretty slow compared to pthread.
Topic archived. No new replies allowed.