Re: Tight loop processing
Re: Tight loop processing
- Subject: Re: Tight loop processing
- From: Don Arnel <email@hidden>
- Date: Sat, 12 Apr 2008 08:54:45 -0400
I realize NSOperation on it's own does not spawn treads. I was
referring to the broader use of it. Surely, you knew that!
On Apr 11, 2008, at 8:08 AM, Bill Garrison wrote:
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