 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
usenet@electricwords.org Guest
|
Posted: Tue Dec 13, 2005 11:04 pm Post subject: Threading libraries: what's currently preferred? |
|
|
I'm about to start a new project, and I'm selecting a threading library
to use. What is currently preferred? Ideally, I'd like to use something
that will allow as easy a transition as possible to whatever is adopted
as standard following TR2. I had planned to use Boost.Threads, but
there seems to be some quite vocal objection to that library from the
likes of Alexandrescu.
Suggestions, anyone?
Regards,
Dan.
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
Maciej Sobczak Guest
|
Posted: Wed Dec 14, 2005 12:54 pm Post subject: Re: Threading libraries: what's currently preferred? |
|
|
[email]usenet (AT) electricwords (DOT) org[/email] wrote:
| Quote: | I'm about to start a new project, and I'm selecting a threading library
to use. What is currently preferred? Ideally, I'd like to use something
that will allow as easy a transition as possible to whatever is adopted
as standard following TR2. I had planned to use Boost.Threads, but
there seems to be some quite vocal objection to that library from the
likes of Alexandrescu.
|
Today I would go for Boost.Threads anyway, unless you have some very
specific configuration needs that can arise, for example, in real-time
systems.
The fact that some authorities object to this library does not matter
much, since currently there is no library that would please everybody.
What really matters, with regard to future transition to something that
might be standardized, is the *way* you think about threads and
synchronization, not the class names or other syntax issues. In this
context, if you start your project today with Boost.Threads, I'm pretty
certain that it will not be very painful to migrate it in the future.
--
Maciej Sobczak : http://www.msobczak.com/
Programming : http://www.msobczak.com/prog/
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
Andrei Alexandrescu (See Guest
|
Posted: Wed Dec 14, 2005 7:28 pm Post subject: Re: Threading libraries: what's currently preferred? |
|
|
Maciej Sobczak wrote:
| Quote: | usenet (AT) electricwords (DOT) org wrote:
I'm about to start a new project, and I'm selecting a threading library
to use. What is currently preferred? Ideally, I'd like to use something
that will allow as easy a transition as possible to whatever is adopted
as standard following TR2. I had planned to use Boost.Threads, but
there seems to be some quite vocal objection to that library from the
likes of Alexandrescu.
Today I would go for Boost.Threads anyway, unless you have some very
specific configuration needs that can arise, for example, in real-time
systems.
The fact that some authorities object to this library does not matter
much, since currently there is no library that would please everybody.
|
I dislike being mentioned as an authority (heck, makes me feel old )).
Speaking of Boost.Threads, I haven't looked at it for a while, but I
recall there's been some interesting recent work being done on it.
Besides, it's the most likely place where people in the community will
invest efforts in.
Andrei
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
Axter Guest
|
Posted: Thu Dec 15, 2005 2:17 pm Post subject: Re: Threading libraries: what's currently preferred? |
|
|
[email]usenet (AT) electricwords (DOT) org[/email] wrote:
| Quote: | I'm about to start a new project, and I'm selecting a threading library
to use. What is currently preferred? Ideally, I'd like to use something
that will allow as easy a transition as possible to whatever is adopted
as standard following TR2. I had planned to use Boost.Threads, but
there seems to be some quite vocal objection to that library from the
likes of Alexandrescu.
|
You can consider ZThread as an alternative:
http://sourceforge.net/projects/zthread/
Unfortunately, I have not seen any articles that makes an objective
comparison among popular available free portable C++ thread libraries.
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
usenet@electricwords.org Guest
|
Posted: Thu Dec 15, 2005 11:21 pm Post subject: Re: Threading libraries: what's currently preferred? |
|
|
Actually, we've been using ZThread pretty much since it first came out.
It has a bad reputation here, because we had to fix quite a few bugs in
it (apparently -- before my time). I'm taking a look at the latest
version, though, as apparently it has quite a few changes.
Unfortunately, it isn't really maintained any more (last CVS changes
were 7 months ago) and it doesn't seem to have much community effort
behind it.
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
usenet@electricwords.org Guest
|
Posted: Thu Dec 15, 2005 11:24 pm Post subject: Re: Threading libraries: what's currently preferred? |
|
|
| Quote: | I dislike being mentioned as an authority
|
Ahh, c'mon, you know it gives you that warm, fuzzy feeling ;-)
Boost.Threads is still top of my list, but wasn't there the beginnings
of a new threading library in Boost? I can't find any reference to it
now, and I don't see anything like that in boost-sandbox. Maybe I
dreamed it. (I might be getting confused with Kevlin Henney's proposal
for TR2, I suppose.)
Dan.
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|