Bottom line; do not block the main thread and thus do not block the main event loop.
Now you can create a stream. But this is actually not the right way to write parallel programs on Mac OS X.
NSOperation NSOperationQueue. , NSOperationQueue , concurrency (# , ..) , .
. .