Multithreaded Cocoa Document Application?
Multithreaded Cocoa Document Application?
- Subject: Multithreaded Cocoa Document Application?
- From: "Rick Ekle" <email@hidden>
- Date: Thu, 23 Aug 2007 20:56:29 -0400
Does anyone have an example of how to write a Cocoa application so
that each document is handled in a separate thread? Either that or a
way to open a series of documents and have each open in a separate
process..
I'm trying to write an application that can open multiple files at
once and perform some potentially long processing on each. I'd like
to have each document open in a separate thread or process so that the
application can better take advantage of a multicore processor to
process multiple files simultaneously.
Any ideas?
Also, the NSThread class seems to simply launch threads. These
threads are launched but there is no way to know anything about them.
How do you monitor a thread and wait for it to exit? How do force a
thread to exit early? Would I have to resort to pthreads to get this
kind of functionality? NSThread seems kinda useless if you have no
way to communicate between threads..
Thanks for the help,
Rick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden