Re: Tight loop processing
Re: Tight loop processing
- Subject: Re: Tight loop processing
- From: Bill Garrison <email@hidden>
- Date: Fri, 11 Apr 2008 08:08:47 -0400
On Apr 11, 2008, at 7:35 AM, Don Arnel wrote:
Actually, while reading up on NSThread I cam across NSOperation
which appears to spawn a new thread but is supposedly much cleaner
to work with. It definately does the job for me. Thanks everyone for
your help with this problem.
NSOperation doesn't spawn any threads on its own. If you add one to
an NSOperationQueue, the queue will spawn a thread and run your
operation in it.
NSOperations by themselves are just neat little objects for
partitioning work. They don't know anything about threads by
themselves. E.g. you could use an NSOperation subclass by itself to
spawn a process to do some work.
I think NSOperation is nifty, but that's just my opinion.
Bill
_______________________________________________
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