• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tight loop processing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Tight loop processing (From: Don Arnel <email@hidden>)
 >Re: Tight loop processing (From: Brian Stern <email@hidden>)
 >Re: Tight loop processing (From: Wade Tregaskis <email@hidden>)
 >Re: Tight loop processing (From: Don Arnel <email@hidden>)
 >Re: Tight loop processing (From: Bill Garrison <email@hidden>)

  • Prev by Date: Re: struct problem
  • Next by Date: Re: NSApplicationMain arguments [SOLVED]
  • Previous by thread: Re: Tight loop processing
  • Next by thread: Re: Tight loop processing
  • Index(es):
    • Date
    • Thread