Mastering Threads on MacOS X(drdobbs.com)
drdobbs.com
Mastering Threads on MacOS X
http://drdobbs.com/parallel/232602177
3 comments
This article is pretty terrifying:
It is strange the article makes no mention of grand central dispatch. It makes threading easy even for the most inexperienced developer.
Or NSOperation/NSOperationQueue (which are using GCD under the hood).
I recommend using boost.thread. It's cross-platform, and simpler than pthread.
I should mention that the current boost.thread (v.1.49.0) doesn't provide a simple way to change the priority or scheduling of a thread.
You have to do it thru the underlying system-specific handle obtained by boost::thread::native_handle().
You have to do it thru the underlying system-specific handle obtained by boost::thread::native_handle().