Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mulithreading, dual-core




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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Re: mulithreading, dual-core (From: Christopher Hunt <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.