Multithreaded libraries for Objective-C

Excluding Cocoa (and it NSThread

), what multithreading libraries would you recommend?

The application engine must run on multiple platforms (Windows, Linux, MacOS, iPhone) and be multithreaded. An abstract library to compile against platform-specific MT libraries is possible, but imposes an additional level of overhead and complexity.

+2


source to share


3 answers


NSOperation works great. As an added bonus, you get a thread pool for free and can set up a chain of dependencies between operations.



+2


source


How about something in the scope of the C library? for example libapr: http://apr.apache.org/docs/apr/1.3/group__apr__os__thread.html

or glib? http://library.gnome.org/devel/glib/stable/glib-Threads.html



Hello

0


source


I would start with Grand Central, which was recently open-sourced: http://libdispatch.macosforge.org/

0


source







All Articles