Re: mulithreading, dual-core
Re: mulithreading, dual-core
- Subject: Re: mulithreading, dual-core
- From: Thomas Engelmeier <email@hidden>
- Date: Mon, 26 Feb 2007 16:12:15 +0100
Am 25.02.2007 um 23:47 schrieb Christopher Hunt:
For a command line C++ tool, you'll want to use pthreads, as someone
else explained. The basic operation of pthreads is pretty simple and
like most other similar implementations. There are a few very
important points to know:
You may also want to check out the boost library. It offers a cross
platform set thread classes that I think are modeled around
pthreads. It is also free. :-)
While I'm definitey a fan of boost, adding the threads abstraction
over an straightforward (pthreads) API comes with quite some
footprint if there's just multiple instances of one routine running
multithreaded (Read: just the requirement of a single lock for one
object).
- In shared development, colleagues already used to pthreads (low
level) have to read up the (high level) boost::threads documentation
- boost itself has quite some footprint to put into that projects
SCM. Striping boost into only the project relevant pieces is usually
not simply "OK, I just need boost::threads and boost::shared_ptr, so
I can get rid of all other directories"
YMMV, but it's a decision that should be carefully evaluated.
Regards,
Tom_E
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden